xslope 0.1.4__py3-none-any.whl → 0.1.5__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.
xslope/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.1.4"
2
+ __version__ = "0.1.5"
3
3
 
4
4
 
xslope/mesh.py CHANGED
@@ -26,8 +26,13 @@ def _get_gmsh():
26
26
  _gmsh = gmsh
27
27
  except (ImportError, OSError) as e:
28
28
  error_msg = str(e)
29
+ error_repr = repr(e)
29
30
  # Check for OpenGL library issues (common in Colab/headless environments)
30
- if "libGL" in error_msg or "libGLU" in error_msg:
31
+ # Check both str() and repr() to catch all variations, and check exception args
32
+ error_text = error_msg + " " + error_repr
33
+ if hasattr(e, 'args') and e.args:
34
+ error_text += " " + " ".join(str(arg) for arg in e.args)
35
+ if ("libGL" in error_text or "libGLU" in error_text):
31
36
  help_msg = (
32
37
  "gmsh is required for mesh generation but could not be imported due to missing OpenGL libraries. "
33
38
  "This is common in headless environments like Google Colab.\n\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: xslope
3
- Version: 0.1.4
3
+ Version: 0.1.5
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,10 +1,10 @@
1
1
  xslope/__init__.py,sha256=ZygAIkX6Nbjag1czWdQa-yP-GM1mBE_9ss21Xh__JFc,34
2
- xslope/_version.py,sha256=5WMoURIyHBAnr3EP0Ac4qT29sZwYntJRH76TnaKj_hA,50
2
+ xslope/_version.py,sha256=m--aui80RX-2veIS6xYj8NeTcDQvEfbRibez2Th5nKQ,50
3
3
  xslope/advanced.py,sha256=35k_ekQJ-mQJ1wHnoIHMc5TVfYn-2EPCJyHz827Cpbc,18281
4
4
  xslope/fem.py,sha256=K4_Pq06HFBpRkN3JwtXF2zw_AMnCkXvj0ggrlRFMQQw,115731
5
5
  xslope/fileio.py,sha256=DnFUYmJedjKXOuVPZUfTRxGfTjiIz8KyHkRDK7ddQg0,28840
6
6
  xslope/global_config.py,sha256=Cj8mbPidIuj5Ty-5cZM-c8H12kNvyHsk5_ofNGez-3M,2253
7
- xslope/mesh.py,sha256=zf2wrpa89vOYHIh8UHaiyweoNZi0QXlM99HdRHNYm0w,118442
7
+ xslope/mesh.py,sha256=t3rD3H59epXeH-7RR_PDK7QUg13DRwl3qMRVERAhuv0,118744
8
8
  xslope/plot.py,sha256=rr1D-6KzYyJtq51o4yLyaFkowBa1LtygIk9rtA3GxgQ,54592
9
9
  xslope/plot_fem.py,sha256=al9zjqjxWKooLl4SAds77Zz-j9cjD4TJGygyU9QK5vo,71111
10
10
  xslope/plot_seep.py,sha256=3wbKp85cmK_6EniFnK9x-FaZtYBZ3KZbRn9U1GsInmk,28775
@@ -12,9 +12,9 @@ xslope/search.py,sha256=dvgKn8JCobuvyD7fClF5lcbeHESCvV8gZ_U_lQnYRok,16867
12
12
  xslope/seep.py,sha256=zVX8NJOp8e6VJ6y99YLkmOh_RPQFly9Z9UI3tka6yQQ,85765
13
13
  xslope/slice.py,sha256=QHawTk7XPLziHoN_ZS0jrEPYKlhPT62caUc_q-_EGjs,45236
14
14
  xslope/solve.py,sha256=j7N66QBjBpDAo-aizTiP8auwd5Ey1SiYAYeySaMVzkw,48554
15
- xslope-0.1.4.dist-info/LICENSE,sha256=NU5J88FUai_4Ixu5DqOQukA-gcXAyX8pXLhIg8OB3AM,10969
16
- xslope-0.1.4.dist-info/METADATA,sha256=TedYvfYHiF-KRrqs-wIW16n9_tMliyu9LlC2lP4IAFY,2027
17
- xslope-0.1.4.dist-info/NOTICE,sha256=E-sbN0MWwvJC27Z-2_G4VUHIx4IsfvLDTmOstvY4-OQ,530
18
- xslope-0.1.4.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
19
- xslope-0.1.4.dist-info/top_level.txt,sha256=5qHbWJ1R2pdTNIainFyrVtFk8R1tRcwIn0kzTuwuV1Q,7
20
- xslope-0.1.4.dist-info/RECORD,,
15
+ xslope-0.1.5.dist-info/LICENSE,sha256=NU5J88FUai_4Ixu5DqOQukA-gcXAyX8pXLhIg8OB3AM,10969
16
+ xslope-0.1.5.dist-info/METADATA,sha256=-s6Lcc-tEGy2KJhBcP5oZTOlRXjnLO9bq4D3Mx0uLIA,2027
17
+ xslope-0.1.5.dist-info/NOTICE,sha256=E-sbN0MWwvJC27Z-2_G4VUHIx4IsfvLDTmOstvY4-OQ,530
18
+ xslope-0.1.5.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
19
+ xslope-0.1.5.dist-info/top_level.txt,sha256=5qHbWJ1R2pdTNIainFyrVtFk8R1tRcwIn0kzTuwuV1Q,7
20
+ xslope-0.1.5.dist-info/RECORD,,
File without changes