Skip to content

Commit

Permalink
chore: fix types for MATReader columns
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Apr 20, 2020
1 parent 92828d2 commit 626dc30
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions powersimdata/input/mat_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,23 @@ def column_type_provider():
col_type_sub = [
'str', 'int', 'float', 'float', 'str']
col_type_bus = [
'int', 'int', 'float', 'float', 'int', 'float', 'int', 'float', 'float',
'float', 'int', 'float', 'float', 'float', 'int', 'int', 'int']
'int', 'int', 'float', 'float', 'float', 'float', 'int', 'float',
'float', 'float', 'int', 'float', 'float', 'float', 'float', 'float',
'float']
col_type_bus2sub = ['int', 'str']
col_type_branch = [
'int', 'int', 'float', 'float', 'float', 'float', 'int', 'int', 'float',
'float', 'int', 'int', 'int', 'float', 'float', 'float', 'float',
'int', 'int', 'int', 'int']
'int', 'int', 'float', 'float', 'float', 'float', 'float', 'float',
'float', 'float', 'int', 'float', 'float', 'float', 'float', 'float',
'float', 'float', 'float', 'float', 'float']
col_type_dcline = [
'int', 'int', 'int', 'int', 'float', 'float', 'float', 'float', 'float',
'int', 'int', 'float', 'float', 'float', 'float', 'int', 'int', 'int',
'int', 'int', 'int', 'int', 'int']
'int', 'int', 'int', 'float', 'float', 'float', 'float', 'float',
'float', 'float', 'float', 'float', 'float', 'float', 'float', 'float',
'float', 'float', 'float', 'float', 'float', 'float', 'float']
col_type_plant = [
'int', 'float', 'float', 'float', 'float', 'float', 'float', 'int',
'float', 'float', 'int', 'int', 'int', 'int', 'int', 'int', 'int',
'int', 'int', 'int', 'float', 'int', 'int', 'int', 'int']
'float', 'float', 'float', 'float', 'float', 'float', 'float', 'float',
'float', 'float', 'float', 'float', 'float', 'float', 'float', 'float',
'float']
col_type_heat_rate_curve = ['float', 'float', 'float']
col_type = {
'sub': col_type_sub,
Expand Down

0 comments on commit 626dc30

Please sign in to comment.