py-pilecore 0.7.0__tar.gz → 0.7.1__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.

Potentially problematic release.


This version of py-pilecore might be problematic. Click here for more details.

Files changed (49) hide show
  1. {py_pilecore-0.7.0/src/py_pilecore.egg-info → py_pilecore-0.7.1}/PKG-INFO +1 -1
  2. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/pyproject.toml +1 -1
  3. {py_pilecore-0.7.0 → py_pilecore-0.7.1/src/py_pilecore.egg-info}/PKG-INFO +1 -1
  4. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/_version.py +1 -1
  5. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/utils.py +3 -2
  6. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/LICENSE +0 -0
  7. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/README.md +0 -0
  8. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/setup.cfg +0 -0
  9. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/SOURCES.txt +0 -0
  10. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/dependency_links.txt +0 -0
  11. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/requires.txt +0 -0
  12. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/top_level.txt +0 -0
  13. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/__init__.py +0 -0
  14. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/api.py +0 -0
  15. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/__init__.py +0 -0
  16. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/__init__.py +0 -0
  17. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/__init__.py +0 -0
  18. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/__init__.py +0 -0
  19. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/common.py +0 -0
  20. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/rectangle.py +0 -0
  21. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/round.py +0 -0
  22. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/main.py +0 -0
  23. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/materials.py +0 -0
  24. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/main.py +0 -0
  25. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/type.py +0 -0
  26. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/exceptions.py +0 -0
  27. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/__init__.py +0 -0
  28. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/grouper_properties.py +0 -0
  29. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/multi_cpt.py +0 -0
  30. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/soil_properties.py +0 -0
  31. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/plot_utils.py +0 -0
  32. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/__init__.py +0 -0
  33. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/cases_multi_cpt_results.py +0 -0
  34. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/grouper_result.py +0 -0
  35. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/load_settlement.py +0 -0
  36. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/multi_cpt_results.py +0 -0
  37. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/post_processing.py +0 -0
  38. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/result_definitions.py +0 -0
  39. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/single_cpt_results.py +0 -0
  40. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/soil_properties.py +0 -0
  41. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/utils.py +0 -0
  42. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/__init__.py +0 -0
  43. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/__init__.py +0 -0
  44. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/figure_cpt_group_results_versus_ptls.py +0 -0
  45. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/figure_cpt_results_plan_view.py +0 -0
  46. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/figure_cpt_results_versus_ptls.py +0 -0
  47. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_group_results.py +0 -0
  48. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_results.py +0 -0
  49. {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_results_plan_view.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-pilecore
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Public python SDK for the CEMS PileCore web-API.
5
5
  License: MIT License
6
6
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "py-pilecore"
7
- version = "0.7.0"
7
+ version = "0.7.1"
8
8
  description = "Public python SDK for the CEMS PileCore web-API."
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-pilecore
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Public python SDK for the CEMS PileCore web-API.
5
5
  License: MIT License
6
6
 
@@ -4,4 +4,4 @@ try:
4
4
  __version__ = version("py-pilecore")
5
5
  # during CI
6
6
  except PackageNotFoundError:
7
- __version__ = "0.7.0"
7
+ __version__ = "0.7.1"
@@ -1,5 +1,6 @@
1
1
  from typing import Any
2
2
 
3
+ import numpy as np
3
4
  import plotly
4
5
 
5
6
 
@@ -19,14 +20,14 @@ def get_continuous_color(colorscale: Any, intermed: float) -> Any:
19
20
  colorscale = plotly.colors.make_colorscale(viridis_colors, scale=scale)
20
21
 
21
22
  :param colorscale: A plotly continuous colorscale defined with RGB string colors.
22
- :param intermed: value in the range [0, 1]
23
+ :param intermed: value in the range [0, 1]. If `intermed` is NaN, it returns the first color in the colorscale.
23
24
  :return: color in rgb string format
24
25
  :rtype: str
25
26
  """
26
27
  if len(colorscale) < 1:
27
28
  raise ValueError("colorscale must have at least one color")
28
29
 
29
- if intermed <= 0 or len(colorscale) == 1:
30
+ if intermed <= 0 or len(colorscale) == 1 or np.isnan(intermed):
30
31
  return colorscale[0][1]
31
32
  if intermed >= 1:
32
33
  return colorscale[-1][1]
File without changes
File without changes
File without changes