xslope 0.1.12__tar.gz → 0.1.14__tar.gz

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.
Files changed (27) hide show
  1. {xslope-0.1.12/xslope.egg-info → xslope-0.1.14}/PKG-INFO +1 -1
  2. {xslope-0.1.12 → xslope-0.1.14}/xslope/_version.py +1 -1
  3. {xslope-0.1.12 → xslope-0.1.14}/xslope/advanced.py +3 -3
  4. {xslope-0.1.12 → xslope-0.1.14}/xslope/fem.py +3 -3
  5. {xslope-0.1.12 → xslope-0.1.14}/xslope/fileio.py +427 -240
  6. {xslope-0.1.12 → xslope-0.1.14}/xslope/mesh.py +80 -27
  7. {xslope-0.1.12 → xslope-0.1.14}/xslope/plot.py +194 -47
  8. {xslope-0.1.12 → xslope-0.1.14}/xslope/plot_seep.py +7 -7
  9. {xslope-0.1.12 → xslope-0.1.14}/xslope/seep.py +9 -9
  10. {xslope-0.1.12 → xslope-0.1.14}/xslope/slice.py +31 -9
  11. {xslope-0.1.12 → xslope-0.1.14}/xslope/solve.py +20 -8
  12. {xslope-0.1.12 → xslope-0.1.14/xslope.egg-info}/PKG-INFO +1 -1
  13. {xslope-0.1.12 → xslope-0.1.14}/LICENSE +0 -0
  14. {xslope-0.1.12 → xslope-0.1.14}/MANIFEST.in +0 -0
  15. {xslope-0.1.12 → xslope-0.1.14}/NOTICE +0 -0
  16. {xslope-0.1.12 → xslope-0.1.14}/README.md +0 -0
  17. {xslope-0.1.12 → xslope-0.1.14}/pyproject.toml +0 -0
  18. {xslope-0.1.12 → xslope-0.1.14}/setup.cfg +0 -0
  19. {xslope-0.1.12 → xslope-0.1.14}/xslope/__init__.py +0 -0
  20. {xslope-0.1.12 → xslope-0.1.14}/xslope/global_config.py +0 -0
  21. {xslope-0.1.12 → xslope-0.1.14}/xslope/mesh copy.py +0 -0
  22. {xslope-0.1.12 → xslope-0.1.14}/xslope/plot_fem.py +0 -0
  23. {xslope-0.1.12 → xslope-0.1.14}/xslope/search.py +0 -0
  24. {xslope-0.1.12 → xslope-0.1.14}/xslope.egg-info/SOURCES.txt +0 -0
  25. {xslope-0.1.12 → xslope-0.1.14}/xslope.egg-info/dependency_links.txt +0 -0
  26. {xslope-0.1.12 → xslope-0.1.14}/xslope.egg-info/requires.txt +0 -0
  27. {xslope-0.1.12 → xslope-0.1.14}/xslope.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: xslope
3
- Version: 0.1.12
3
+ Version: 0.1.14
4
4
  Summary: Slope stability analysis (limit equilibrium and FEM) in Python.
5
5
  Author: Norman L. Jones
6
6
  Project-URL: Homepage, https://github.com/njones61/xslope
@@ -1,4 +1,4 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.1.12"
2
+ __version__ = "0.1.14"
3
3
 
4
4
 
@@ -23,7 +23,7 @@ def rapid_drawdown(df, method_name, debug_level=1):
23
23
  Performs rapid drawdown analysis using a three-stage approach.
24
24
 
25
25
  Parameters:
26
- df : pandas.DataFrame
26
+ df: pandas.DataFrame
27
27
  Slice data with all required columns including rapid drawdown specific data:
28
28
  - c, phi: current strength parameters
29
29
  - c1, phi1: original strength parameters (for stage 3)
@@ -32,9 +32,9 @@ def rapid_drawdown(df, method_name, debug_level=1):
32
32
  - u2: pore pressure for lowered pool (stage 2)
33
33
  - dload, d_x, d_y: distributed loads (stage 1)
34
34
  - dload2, d_x2, d_y2: distributed loads for lowered pool (stage 2)
35
- method_name : str
35
+ method_name: str
36
36
  The method name to use ('oms', 'bishop', 'spencer', etc.)
37
- debug_level : int
37
+ debug_level: int
38
38
  0: no output, 1: print FS at each stage, >1: detailed debug info
39
39
 
40
40
  Returns:
@@ -204,8 +204,8 @@ def build_fem_data(slope_data, mesh=None):
204
204
  elif "profile_lines" in slope_data:
205
205
  # Check if one of the profile lines is designated as piezo
206
206
  for line in slope_data["profile_lines"]:
207
- if hasattr(line, 'type') and line.type == 'piezo':
208
- piezo_line_coords = line
207
+ if line.get('type') == 'piezo':
208
+ piezo_line_coords = line['coords']
209
209
  break
210
210
 
211
211
  if piezo_line_coords:
@@ -226,7 +226,7 @@ def build_fem_data(slope_data, mesh=None):
226
226
  u[i] = 0.0
227
227
 
228
228
  elif pp_option == "seep":
229
- # Use existing seepage solution
229
+ # Use existing seep solution
230
230
  if "seepage_solution" in slope_data:
231
231
  seepage_solution = slope_data["seepage_solution"]
232
232
  if isinstance(seepage_solution, np.ndarray) and len(seepage_solution) == n_nodes: