ras-commander 0.57.0__py3-none-any.whl → 0.58.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/RasExamples.py +12 -3
- {ras_commander-0.57.0.dist-info → ras_commander-0.58.0.dist-info}/METADATA +4 -14
- {ras_commander-0.57.0.dist-info → ras_commander-0.58.0.dist-info}/RECORD +6 -6
- {ras_commander-0.57.0.dist-info → ras_commander-0.58.0.dist-info}/LICENSE +0 -0
- {ras_commander-0.57.0.dist-info → ras_commander-0.58.0.dist-info}/WHEEL +0 -0
- {ras_commander-0.57.0.dist-info → ras_commander-0.58.0.dist-info}/top_level.txt +0 -0
ras_commander/RasExamples.py
CHANGED
@@ -122,8 +122,16 @@ class RasExamples:
|
|
122
122
|
self._save_to_csv()
|
123
123
|
|
124
124
|
@classmethod
|
125
|
-
def extract_project(cls, project_names: Union[str, List[str]]):
|
126
|
-
"""Extract one or more specific HEC-RAS projects from the zip file.
|
125
|
+
def extract_project(cls, project_names: Union[str, List[str]]) -> Union[Path, List[Path]]:
|
126
|
+
"""Extract one or more specific HEC-RAS projects from the zip file.
|
127
|
+
|
128
|
+
Args:
|
129
|
+
project_names: Single project name as string or list of project names
|
130
|
+
|
131
|
+
Returns:
|
132
|
+
Path: Single Path object if one project extracted
|
133
|
+
List[Path]: List of Path objects if multiple projects extracted
|
134
|
+
"""
|
127
135
|
logger.debug(f"Extracting projects: {project_names}")
|
128
136
|
|
129
137
|
# Initialize if needed
|
@@ -178,7 +186,8 @@ class RasExamples:
|
|
178
186
|
except Exception as e:
|
179
187
|
logger.error(f"An error occurred while extracting project '{project_name}': {str(e)}")
|
180
188
|
|
181
|
-
return
|
189
|
+
# Return single path if only one project was extracted, otherwise return list
|
190
|
+
return extracted_paths[0] if len(project_names) == 1 else extracted_paths
|
182
191
|
|
183
192
|
@classmethod
|
184
193
|
def _find_zip_file(cls):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ras-commander
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.58.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.
|
@@ -34,16 +34,10 @@ Dynamic: summary
|
|
34
34
|
|
35
35
|
RAS Commander is a Python library for automating HEC-RAS operations, providing a set of tools to interact with HEC-RAS project files, execute simulations, and manage project data. This library was initially conceptualized in the Australian Water School course "AI Tools for Modelling Innovation", and subsequently expanded to cover the basic functionality of the HECRASController COM32 interface using open-source python libraries. This library uses a Test Driven Development strategy, leveraging the publicly-available HEC-RAS Example projects to create repeatable demonstration examples. The "Commmander" moniker is inspired by the "Command Line is All You Need" approach to HEC-RAS automation that was first implemented in the HEC-Commander Tools repository.
|
36
36
|
|
37
|
-
##
|
38
|
-
William Katzenmeyer, P.E., C.F.M.
|
37
|
+
## Repository Author:
|
38
|
+
(William Katzenmeyer, P.E., C.F.M.)[https://engineeringwithllms.info]
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
Aaron Nichols, P.E., C.F.M.
|
43
|
-
|
44
|
-
(Additional Contributors Here)
|
45
|
-
|
46
|
-
## Don't Ask Me, Ask ChatGPT!
|
40
|
+
## Don't Ask Me, Ask GPT!
|
47
41
|
|
48
42
|
This repository has several methods of interaction with Large Language Models and LLM-Assisted Coding built right in:
|
49
43
|
|
@@ -160,8 +154,6 @@ results = RasCmdr.compute_parallel(
|
|
160
154
|
RasPlan.set_geom("01", "02")
|
161
155
|
```
|
162
156
|
|
163
|
-
Certainly! I'll provide you with an updated Key Components section and Project Organization diagram based on the current structure of the ras-commander library.
|
164
|
-
|
165
157
|
#### Key Components
|
166
158
|
|
167
159
|
- `RasPrj`: Manages HEC-RAS projects, handling initialization and data loading
|
@@ -267,8 +259,6 @@ Example usage:
|
|
267
259
|
from ras_commander import RasExamples
|
268
260
|
|
269
261
|
```
|
270
|
-
ras_examples = RasExamples()
|
271
|
-
ras_examples.get_example_projects() # Downloads example projects if not already present
|
272
262
|
categories = ras_examples.list_categories()
|
273
263
|
projects = ras_examples.list_projects("Steady Flow")
|
274
264
|
extracted_paths = ras_examples.extract_project(["Bald Eagle Creek", "Muncie"])
|
@@ -17,7 +17,7 @@ ras_commander/HdfUtils.py,sha256=VkIKAXBrLwTlk2VtXSO-W3RU-NHpfHbE1QcZUZgl-t8,152
|
|
17
17
|
ras_commander/HdfXsec.py,sha256=flREnFFrIZu4SSKGRQeX9w3SS49q0UWPJnq4zO7DbUM,27342
|
18
18
|
ras_commander/LoggingConfig.py,sha256=gWe5K5XTmMQpSczsTysAqpC9my24i_IyM8dvD85fxYg,2704
|
19
19
|
ras_commander/RasCmdr.py,sha256=2i9gR5koFfBLwvhYAbNgQFNKKUKqxD1Hf6T9SN9sx-s,26558
|
20
|
-
ras_commander/RasExamples.py,sha256=
|
20
|
+
ras_commander/RasExamples.py,sha256=6IZ96LcAsk5LYFehdD0zDW5wyZWxQa6OQu2N9upxWXA,17536
|
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=A7xupixCmgXFiSfQs3oWBMBstrO8XcxieMeZWKTcbPQ,3271
|
@@ -27,8 +27,8 @@ 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=P2-aBL61kdRINsjnBpstZVD6VVc7hI_D3RUXqr6ldmc,34863
|
29
29
|
ras_commander/__init__.py,sha256=mceEWRQJkDBi1o3zVg7DpG2qMrMnKHwwuK3GwyxoVr4,2132
|
30
|
-
ras_commander-0.
|
31
|
-
ras_commander-0.
|
32
|
-
ras_commander-0.
|
33
|
-
ras_commander-0.
|
34
|
-
ras_commander-0.
|
30
|
+
ras_commander-0.58.0.dist-info/LICENSE,sha256=_pbd6qHnlsz1iQ-ozDW_49r86BZT6CRwO2iBtw0iN6M,457
|
31
|
+
ras_commander-0.58.0.dist-info/METADATA,sha256=aKq0yFZkuylnSHsK_BRqyie9X30WA9rThWeZQN7X2Ek,22149
|
32
|
+
ras_commander-0.58.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
33
|
+
ras_commander-0.58.0.dist-info/top_level.txt,sha256=i76S7eKLFC8doKcXDl3aiOr9RwT06G8adI6YuKbQDaA,14
|
34
|
+
ras_commander-0.58.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|