Skip to content

Commit

Permalink
Merge pull request #4 from BuczynskiRafal/review
Browse files Browse the repository at this point in the history
new methods for "width"
  • Loading branch information
BuczynskiRafal authored Nov 1, 2023
2 parents 8ad322d + c39ac61 commit 7907f72
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file modified RCG.exe
Binary file not shown.
1 change: 1 addition & 0 deletions gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ def run_simulation(self):

if __name__ == "__main__":
root = tk.Tk()
root.iconbitmap("gui\icon.png")
app = RcgApp(root)
root.mainloop()
Binary file added gui/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion rcg/inp_manage/inp.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ def _add_subcatchment(self, subcatchment_id: str, catchment_values: Tuple[float,
"Outlet": outlet,
"Area": catchment_values[0],
"PercImperv": catchment_values[1].impervious_result,
"Width": math.sqrt((float(catchment_values[0]) * 10_000)),
# "Width": math.sqrt((float(catchment_values[0]) * 10_000)),
"Width": (float(catchment_values[0]) * 10_000) / (math.sqrt(float(catchment_values[0]) * 10_000) * math.sqrt(2)),
"PercSlope": catchment_values[1].slope_result,
"CurbLength": 0,
}
Expand Down

0 comments on commit 7907f72

Please sign in to comment.