Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
inp_reader_project.py and inp_writer_project.py -- small fixes to acc…
Browse files Browse the repository at this point in the history
…omodate modified green ampt infiltration parms
  • Loading branch information
PaulDudaRESPEC committed Jan 16, 2020
1 parent f92816d commit eaae25e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/swmm/inp_reader_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def read_section(self, project, section_name, section_text):
if section_name_upper == project.infiltration.SECTION_NAME.upper():
self.check_valid_subcatchment_id(project, 'INFILTRATION', section_text)
infiltration = project.options.infiltration.upper()
if infiltration == "HORTON":
if infiltration.startswith("HORTON") or infiltration.startswith("MODIFIED_HORTON"):
self.read_infiltration = SectionReaderAsList(section_name, HortonInfiltrationReader)
elif infiltration.startswith("GREEN"):
elif infiltration.startswith("GREEN") or infiltration.startswith("MODIFIED_GREEN"):
self.read_infiltration = SectionReaderAsList(section_name, GreenAmptInfiltrationReader)
elif infiltration.startswith("CURVE"):
self.read_infiltration = SectionReaderAsList(section_name, CurveNumberInfiltrationReader)
Expand Down
2 changes: 1 addition & 1 deletion src/core/swmm/inp_writer_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def as_text(self, project):
"[INFILTRATION]", HortonInfiltrationWriter,
";;Subcatchment \tMaxRate \tMinRate \tDecay \tDryTime \tMaxInfiltration\n"
";;--------------\t----------\t----------\t----------\t----------\t----------")
elif infiltration.startswith("GREEN"):
elif infiltration.startswith("GREEN") or infiltration.startswith("MODIFIED_GREEN"):
self.write_infiltration = SectionWriterAsList(
"[INFILTRATION]", GreenAmptInfiltrationWriter,
";;Subcatchment \tSuction \tKsat \tIMD \n"
Expand Down

0 comments on commit eaae25e

Please sign in to comment.