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.
- {py_pilecore-0.7.0/src/py_pilecore.egg-info → py_pilecore-0.7.1}/PKG-INFO +1 -1
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/pyproject.toml +1 -1
- {py_pilecore-0.7.0 → py_pilecore-0.7.1/src/py_pilecore.egg-info}/PKG-INFO +1 -1
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/_version.py +1 -1
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/utils.py +3 -2
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/LICENSE +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/README.md +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/setup.cfg +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/SOURCES.txt +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/dependency_links.txt +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/requires.txt +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/py_pilecore.egg-info/top_level.txt +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/api.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/common.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/rectangle.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/round.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/main.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/materials.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/main.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/type.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/exceptions.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/grouper_properties.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/multi_cpt.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/input/soil_properties.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/plot_utils.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/cases_multi_cpt_results.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/grouper_result.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/load_settlement.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/multi_cpt_results.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/post_processing.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/result_definitions.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/single_cpt_results.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/results/soil_properties.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/utils.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/__init__.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/figure_cpt_group_results_versus_ptls.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/figure_cpt_results_plan_view.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/figure_cpt_results_versus_ptls.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_group_results.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_results.py +0 -0
- {py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_results_plan_view.py +0 -0
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/__init__.py
RENAMED
|
File without changes
|
{py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/common.py
RENAMED
|
File without changes
|
{py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/rectangle.py
RENAMED
|
File without changes
|
{py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/common/piles/geometry/components/round.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/interactive_figures/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pilecore-0.7.0 → py_pilecore-0.7.1}/src/pypilecore/viewers/viewer_cpt_results_plan_view.py
RENAMED
|
File without changes
|