ras-commander 0.75.0__py3-none-any.whl → 0.76.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/RasPrj.py CHANGED
@@ -1324,7 +1324,8 @@ def init_ras_project(ras_project_folder, ras_version=None, ras_object=None):
1324
1324
 
1325
1325
  # Look for .pXX files in project folder
1326
1326
  logger.info(f"Searching for plan files in {project_folder}")
1327
- plan_files = list(project_folder.glob(f"{project_folder.stem}.p[0-9][0-9]"))
1327
+ # Search for any file with .p01 through .p99 extension, regardless of base name
1328
+ plan_files = list(project_folder.glob("*.p[0-9][0-9]"))
1328
1329
 
1329
1330
  if not plan_files:
1330
1331
  logger.info(f"No plan files found in {project_folder}")
@@ -1345,6 +1346,10 @@ def init_ras_project(ras_project_folder, ras_version=None, ras_object=None):
1345
1346
  version = line.split("=")[1].strip()
1346
1347
  logger.info(f"Found Program Version={version} in {plan_file.name}")
1347
1348
 
1349
+ # Replace 00 in version string if present
1350
+ if "00" in version:
1351
+ version = version.replace("00", "0")
1352
+
1348
1353
  # Try to get RAS executable for this version
1349
1354
  test_exe_path = get_ras_exe(version)
1350
1355
  logger.info(f"Checking RAS executable path: {test_exe_path}")
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.75.0"
13
+ __version__ = "0.76.0"
14
14
 
15
15
  # Set up logging
16
16
  setup_logging()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ras-commander
3
- Version: 0.75.0
3
+ Version: 0.76.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,12 +21,12 @@ ras_commander/RasExamples.py,sha256=6IZ96LcAsk5LYFehdD0zDW5wyZWxQa6OQu2N9upxWXA,
21
21
  ras_commander/RasGeo.py,sha256=CQ1VjJ4uWWyXC9KsoVStbhlRf_5AiDm8yWvtDM3l4ac,21675
22
22
  ras_commander/RasMap.py,sha256=4cVzaaQure-CXdXB1BY29iE20S00eldUqoL96PvJPbw,10635
23
23
  ras_commander/RasPlan.py,sha256=GhAeUSvWRuBcYcOtBCo-qZGUefEWOlhw4ASJQHTGWzU,63872
24
- ras_commander/RasPrj.py,sha256=G8AL6No0unxYLc1y0uQgcFLXeZ2TK3RO1WZmsZqAz7c,61281
24
+ ras_commander/RasPrj.py,sha256=XbFWp8Du7mJNSBdeZNqzSQAnKJXXhlIlNAiC4pXCEmY,61532
25
25
  ras_commander/RasUnsteady.py,sha256=TO08CT2GC4G5rcXO_Wbia2t4PhiWRu9-nC9F0IW7Gyo,37187
26
26
  ras_commander/RasUtils.py,sha256=0fm4IIs0LH1dgDj3pGd66mR82DhWLEkRKUvIo2M_5X0,35886
27
- ras_commander/__init__.py,sha256=8QLpMI_g0OsRBnap8u71IviaH6cgWfq40xd8IbIavWw,2039
28
- ras_commander-0.75.0.dist-info/licenses/LICENSE,sha256=_pbd6qHnlsz1iQ-ozDW_49r86BZT6CRwO2iBtw0iN6M,457
29
- ras_commander-0.75.0.dist-info/METADATA,sha256=o57ambIJOv_f_XYOccu5_3uhaNIZuGIAnxWDFf_8EJc,27365
30
- ras_commander-0.75.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
31
- ras_commander-0.75.0.dist-info/top_level.txt,sha256=i76S7eKLFC8doKcXDl3aiOr9RwT06G8adI6YuKbQDaA,14
32
- ras_commander-0.75.0.dist-info/RECORD,,
27
+ ras_commander/__init__.py,sha256=oWD97fwXTwfQ0l3-W3tj65l_fWmd453CWL-TBnK9-Ho,2039
28
+ ras_commander-0.76.0.dist-info/licenses/LICENSE,sha256=_pbd6qHnlsz1iQ-ozDW_49r86BZT6CRwO2iBtw0iN6M,457
29
+ ras_commander-0.76.0.dist-info/METADATA,sha256=eEQ2bJt_VyNXNW0OXC-yNXn4QVXPQy2apc9WY7YKtaY,27365
30
+ ras_commander-0.76.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
31
+ ras_commander-0.76.0.dist-info/top_level.txt,sha256=i76S7eKLFC8doKcXDl3aiOr9RwT06G8adI6YuKbQDaA,14
32
+ ras_commander-0.76.0.dist-info/RECORD,,