-
I cannot get the correct information for storage elements in swmmio. Using the example: _from swmmio import Model, Nodes pass custom init arguments into the Nodes object instead of using default settings referenced by m.nodes()nodes = Nodes( The resultant mynodes.csv has no references to any storage notes. You must change the line: 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.
Replies: 1 comment 3 replies
-
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.
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
Nodes()
with the argumentinp_sections=['junctions', 'storages', 'outfalls']
is because, as you correctly identified,storages
should in fact bestorage
.Now, after using the correct reference to
storage
, the reason you're only seeing data for theInverElev
andcoords
is because of the list passed to the optionalcolumns
argument. Thecolumns
argument is used to slice out a subset of columns that would otherwise be returned by theNodes
object. This is useful if you know you need data from several sections of INPs and RTPs, but don…