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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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()
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.

1 participant