struct_utils 0.0.4__tar.gz → 0.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: struct_utils
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: Development package consisting of many small utility functions, mainly oriented towards structural engineering. Currently structured for personal use, hit me up if there is interest in further development of additional or extended functionality. Published functions should be feature complete. USERS ASSUME FULL RISK AND RESPONSIBILITY FOR VERIFYING THAT THE RESULTS ARE ACCURATE AND APPROPRIATE FOR THEIR APPLICATION.
5
5
  License: MIT License
6
6
 
@@ -1,6 +1,8 @@
1
1
  [project]
2
2
  name = "struct_utils"
3
- version = "0.0.4"
3
+ version = "0.0.6"
4
+ #version = "0.0.001" #test
5
+
4
6
  description = "Development package consisting of many small utility functions, mainly oriented towards structural engineering. Currently structured for personal use, hit me up if there is interest in further development of additional or extended functionality. Published functions should be feature complete. USERS ASSUME FULL RISK AND RESPONSIBILITY FOR VERIFYING THAT THE RESULTS ARE ACCURATE AND APPROPRIATE FOR THEIR APPLICATION."
5
7
  readme = "README.md"
6
8
  license = { file = "LICENSE.txt" }
@@ -22,7 +24,6 @@ classifiers = [
22
24
  "Programming Language :: Python :: 3.11",
23
25
  "Programming Language :: Python :: 3.12",
24
26
  "Programming Language :: Python :: 3.13",
25
-
26
27
  "License :: OSI Approved :: MIT License",
27
28
  "Operating System :: OS Independent",
28
29
  ]
@@ -350,11 +350,11 @@ def plot_bolt_pattern_3d(
350
350
 
351
351
  Arrow colour convention
352
352
  -----------------------
353
- Blue shear resultant (in-plane)
354
- Green axial tension (+Z)
355
- Red axial compression (Z)
356
- Orange resultant force vector
357
- Purple applied load arrows
353
+ Blue - shear resultant (in-plane)
354
+ Green - axial tension (+Z)
355
+ Red - axial compression (-Z)
356
+ Orange - resultant force vector
357
+ Purple - applied load arrows
358
358
 
359
359
  Parameters
360
360
  ----------
@@ -275,8 +275,17 @@ def _write_html(path, analyst="", system=""):
275
275
  print(f" [margin_table] HTML saved → {os.path.abspath(path)}")
276
276
 
277
277
  # ── Public entry point ────────────────────────────────────────────────────────
278
- def print_table(analyst="", system="", html_path="margin_table.html"):
278
+ def print_table(analyst="", system="", save_dir=None, filename="margin_table"):
279
279
  """Print console table and write margin_table.html alongside it."""
280
+ filename += ".html"
281
+ import inspect
282
+ import os
283
+ if os.path.isabs(filename):
284
+ html_path = filename
285
+ else:
286
+ folder = save_dir if save_dir is not None else os.path.dirname(os.path.abspath(inspect.stack()[1].filename))
287
+ os.makedirs(folder, exist_ok=True)
288
+ html_path = os.path.join(folder, filename)
280
289
  _print_console(analyst, system)
281
290
  _write_html(html_path, analyst, system)
282
291
 
File without changes
File without changes