Replies: 1 comment
-
Hey @bowguy! First, thanks for identifying an issue in the docs. The reason you aren't seeing any references to the storage elements in your model when calling Now, after using the correct reference to That said, if you do want all of the columns from all INP and RPT sections passed when initializing the Nodes object, you can simply do this: nodes = Nodes(
model=model,
inp_sections=['junctions', 'storage', 'outfalls'],
rpt_sections=['Node Depth Summary', 'Node Inflow Summary'],
)
nodes.dataframe
I'll fix the docs ASAP to correct the Aside from that, will adjusting or omitting the |
Beta Was this translation helpful? Give feedback.
-
I cannot get the correct information for storage elements in swmmio. Using the example:
_from swmmio import Model, Nodes
m = Model("coolest-model.inp")
pass custom init arguments into the Nodes object instead of using default settings referenced by m.nodes()
nodes = Nodes(
model=m,
inp_sections=['junctions', 'storages', 'outfalls'],
rpt_sections=['Node Depth Summary', 'Node Inflow Summary'],
columns=[ 'InvertElev', 'MaxDepth', 'InitDepth', 'SurchargeDepth', 'MaxTotalInflow', 'coords']
)
#write to a csv
nodes.to_csv('/path/mynodes.csv')
The resultant mynodes.csv has no references to any storage notes. You must change the line:
inp_sections=['junctions', 'storages', 'outfalls'],
to
inp_sections=['junctions', 'storage', 'outfalls'],
After that change, the file has some numbers for the storage nodes but only for InverElev and coords.
Beta Was this translation helpful? Give feedback.
All reactions