Skip to content

to_excel update for ids #118 from dt#67

Merged
Mariosmsk merged 3 commits into
OpenWaterAnalytics:devfrom
ichrys03:to_excelfix
Jan 9, 2025
Merged

to_excel update for ids #118 from dt#67
Mariosmsk merged 3 commits into
OpenWaterAnalytics:devfrom
ichrys03:to_excelfix

Conversation

@ichrys03

Copy link
Copy Markdown
Contributor

minimum example :
from epyt import epanet

d = epanet("Net1.inp")
x = d.getComputedTimeSeries()

nodeid = d.getNodeNameID()
linkid = d.getLinkNameID()

x.to_excel("case1",node_id_list = nodeid, link_id_list = linkid, both = True) #both id and index
x.to_excel("case2",node_id_list = nodeid, link_id_list = linkid, both = False) #only id
x.to_excel("case3") #default only index
d.unload()

minimum example of the cases:
from epyt import epanet

d = epanet("Net1.inp")
x = d.getComputedQualityTimeSeries()
x = d.getComputedTimeSeries()

nodeid = d.getNodeNameID()
linkid = d.getLinkNameID()

x.to_excel("case1",node_id_list = nodeid, link_id_list = linkid, both = True)
x.to_excel("case2",node_id_list = nodeid, link_id_list = linkid, both = False)
x.to_excel("case3")
d.unload()

@Mariosmsk Mariosmsk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Ioanni @ichrys03, looks good!

@Mariosmsk
Mariosmsk merged commit d7b11e9 into OpenWaterAnalytics:dev Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants