ras-commander 0.68.0__py3-none-any.whl → 0.70.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ras_commander/RasPlan.py CHANGED
@@ -249,7 +249,19 @@ class RasPlan:
249
249
  raise FileNotFoundError(f"Plan file not found: {plan_number}")
250
250
 
251
251
  try:
252
- RasUtils.update_file(plan_file_path, RasPlan._update_unsteady_in_file, new_unsteady_flow_number)
252
+ # Read the plan file
253
+ with open(plan_file_path, 'r') as f:
254
+ lines = f.readlines()
255
+
256
+ # Update the Flow File line
257
+ for i, line in enumerate(lines):
258
+ if line.startswith("Flow File="):
259
+ lines[i] = f"Flow File=u{new_unsteady_flow_number}\n"
260
+ break
261
+
262
+ # Write back to the plan file
263
+ with open(plan_file_path, 'w') as f:
264
+ f.writelines(lines)
253
265
 
254
266
  # Update all dataframes
255
267
  ras_obj.plan_df = ras_obj.get_plan_entries()
ras_commander/__init__.py CHANGED
@@ -10,7 +10,7 @@ try:
10
10
  __version__ = version("ras-commander")
11
11
  except PackageNotFoundError:
12
12
  # package is not installed
13
- __version__ = "0.68.0"
13
+ __version__ = "0.70.0"
14
14
 
15
15
  # Set up logging
16
16
  setup_logging()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ras-commander
3
- Version: 0.68.0
3
+ Version: 0.70.0
4
4
  Summary: A Python library for automating HEC-RAS 6.x operations
5
5
  Home-page: https://github.com/gpt-cmdr/ras-commander
6
6
  Author: William M. Katzenmeyer, P.E., C.F.M.
@@ -21,14 +21,14 @@ ras_commander/RasExamples.py,sha256=6IZ96LcAsk5LYFehdD0zDW5wyZWxQa6OQu2N9upxWXA,
21
21
  ras_commander/RasGeo.py,sha256=M0sVNKlWmmbve8iMXLWq25WgbxqLWBo7_1oDg_rALzU,5607
22
22
  ras_commander/RasGpt.py,sha256=N_7p2nucWrBBXdB2k2ZKvOeOdXNmFD9dIY3W7_5i5nw,1206
23
23
  ras_commander/RasMapper.py,sha256=LO_blvQnd4pwkEU8A30-RoE-CYIoU3s_fNLHBoM8ljw,613
24
- ras_commander/RasPlan.py,sha256=0THxeB9ldeDuS4of2ruYG7Abbc5jz2729y5qOHntMuI,61664
24
+ ras_commander/RasPlan.py,sha256=ObcKlgduZx0ObENXJN96gvMxoNg7xkb6uVIvJf610YE,62051
25
25
  ras_commander/RasPrj.py,sha256=uJ8jHq_Y5-ZnQW6nWhTuHFfaDGuMrJo1HQRvd1QwINQ,50228
26
26
  ras_commander/RasToGo.py,sha256=TKujfaV1xQhFaOddF4g2ogGy6ky-CLlfelSMPD2J3Nk,1223
27
27
  ras_commander/RasUnsteady.py,sha256=KfCXAag-_bPwwS3JbPZH-s4hbaoHACO0mlRnGrzbFgA,32092
28
28
  ras_commander/RasUtils.py,sha256=0fm4IIs0LH1dgDj3pGd66mR82DhWLEkRKUvIo2M_5X0,35886
29
- ras_commander/__init__.py,sha256=dVjDtqWMWjV2x17oJEEZQWwyvpqxJJM9s9_zHe0SJXY,2001
30
- ras_commander-0.68.0.dist-info/LICENSE,sha256=_pbd6qHnlsz1iQ-ozDW_49r86BZT6CRwO2iBtw0iN6M,457
31
- ras_commander-0.68.0.dist-info/METADATA,sha256=4VhVogHKCjgJb-nGJgsiQ9O3nI0jUBAAx5D_Xd8SJcw,26233
32
- ras_commander-0.68.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
33
- ras_commander-0.68.0.dist-info/top_level.txt,sha256=i76S7eKLFC8doKcXDl3aiOr9RwT06G8adI6YuKbQDaA,14
34
- ras_commander-0.68.0.dist-info/RECORD,,
29
+ ras_commander/__init__.py,sha256=EL2bxtTEwGf_6TgdtEShz2e0sqvBJfVuYUqS80E4J1k,2001
30
+ ras_commander-0.70.0.dist-info/LICENSE,sha256=_pbd6qHnlsz1iQ-ozDW_49r86BZT6CRwO2iBtw0iN6M,457
31
+ ras_commander-0.70.0.dist-info/METADATA,sha256=UPe7c6q-3kBUNdtZ7gfUag6ymE_wWaCbq9wvxwM0HzA,26233
32
+ ras_commander-0.70.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
33
+ ras_commander-0.70.0.dist-info/top_level.txt,sha256=i76S7eKLFC8doKcXDl3aiOr9RwT06G8adI6YuKbQDaA,14
34
+ ras_commander-0.70.0.dist-info/RECORD,,