Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to_excel update for ids #118 from dt #67

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

ichrys03
Copy link
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()
Copy link
Member

@Mariosmsk Mariosmsk left a comment

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