Skip to content

Commit

Permalink
some fixes in examples and update version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Apr 19, 2024
1 parent bb7e2fb commit 3849a45
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion epyt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
__author__ = """Marios S. Kyriakou"""
__email__ = "[email protected]"
__version__ = "1.0.9-beta.9"
__version__ = "1.1.0"
__msxversion__ = "2.0.0"
__copyright__ = """Copyright 2022, KIOS Research and Innovation Center of Excellence (KIOS CoE),
University of Cyprus (www.kios.org.cy)."""
Expand Down
4 changes: 2 additions & 2 deletions epyt/examples/python/EX6_load_two_inp_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from epyt import epanet

# Load networks
d1 = epanet('Net1.inp')
d2 = epanet('Net2.inp')
d1 = epanet('Net1.inp', ph=True)
d2 = epanet('Net2.inp', ph=True)

# Close any open figures
d1.plot_close()
Expand Down
4 changes: 2 additions & 2 deletions epyt/examples/python/EX_to_excel_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
""" ------------------- excel ---------------------------- """
# Create a .xlsx excel file and save all the values of each attribute
# in seperate sheet
comp_values.to_excel("to_excel_seperate_values_example")
# comp_values.to_excel("to_excel_seperate_values_example")

# Create a .xlsx excel file and save all the values in a sheet
comp_values.to_excel("to_excel_all_values_example", allValues=True)
# comp_values.to_excel("to_excel_all_values_example", allValues=True)

# Create a .xlsx excel file and select multiple attributes to be
# displayed in seperate sheets
Expand Down
4 changes: 2 additions & 2 deletions epyt/examples/python/Toolkit_EX4_Network_Building.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Create an empty INP file
testinp = 'TESTING.inp'
d = epanet(testinp, 'CREATE')
d = epanet(testinp, 'CREATE', ph=True)

# Initialize epanet flow units
d.initializeEPANET(d.ToolkitConstants.EN_GPM, d.ToolkitConstants.EN_HW)
Expand Down Expand Up @@ -69,7 +69,7 @@

# Save the project for future use
d.saveInputFile(testinp)
d = epanet(testinp)
d = epanet(testinp, ph=True)
d.plot()
d.plot_show()
d.deleteProject()

0 comments on commit 3849a45

Please sign in to comment.