topologicpy 0.6.2__py3-none-any.whl → 0.6.3__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.
- topologicpy/Graph.py +2 -2
- topologicpy/Plotly.py +34 -2
- topologicpy/Topology.py +1 -1
- topologicpy/version.py +1 -1
- {topologicpy-0.6.2.dist-info → topologicpy-0.6.3.dist-info}/METADATA +1 -1
- {topologicpy-0.6.2.dist-info → topologicpy-0.6.3.dist-info}/RECORD +9 -9
- {topologicpy-0.6.2.dist-info → topologicpy-0.6.3.dist-info}/LICENSE +0 -0
- {topologicpy-0.6.2.dist-info → topologicpy-0.6.3.dist-info}/WHEEL +0 -0
- {topologicpy-0.6.2.dist-info → topologicpy-0.6.3.dist-info}/top_level.txt +0 -0
topologicpy/Graph.py
CHANGED
@@ -7330,7 +7330,7 @@ class Graph:
|
|
7330
7330
|
return shortestPaths
|
7331
7331
|
|
7332
7332
|
@staticmethod
|
7333
|
-
def Show(graph, vertexColor="black", vertexSize=6, vertexLabelKey=None, vertexGroupKey=None, vertexGroups=[], showVertices=True, showVertexLegend=False, edgeColor="black", edgeWidth=1, edgeLabelKey=None, edgeGroupKey=None, edgeGroups=[], showEdges=True, showEdgeLegend=False, colorScale='viridis', renderer=
|
7333
|
+
def Show(graph, vertexColor="black", vertexSize=6, vertexLabelKey=None, vertexGroupKey=None, vertexGroups=[], showVertices=True, showVertexLegend=False, edgeColor="black", edgeWidth=1, edgeLabelKey=None, edgeGroupKey=None, edgeGroups=[], showEdges=True, showEdgeLegend=False, colorScale='viridis', renderer=None,
|
7334
7334
|
width=950, height=500, xAxis=False, yAxis=False, zAxis=False, axisSize=1, backgroundColor='rgba(0,0,0,0)', marginLeft=0, marginRight=0, marginTop=20, marginBottom=0,
|
7335
7335
|
camera=[-1.25, -1.25, 1.25], center=[0, 0, 0], up=[0, 0, 1], projection="perspective", tolerance=0.0001):
|
7336
7336
|
"""
|
@@ -7381,7 +7381,7 @@ class Graph:
|
|
7381
7381
|
colorScale : str , optional
|
7382
7382
|
The desired type of plotly color scales to use (e.g. "Viridis", "Plasma"). The default is "Viridis". For a full list of names, see https://plotly.com/python/builtin-colorscales/.
|
7383
7383
|
renderer : str , optional
|
7384
|
-
The desired
|
7384
|
+
The desired renderer. See Plotly.Renderers(). If set to None, the code will attempt to discover the most suitable renderer. The default is None.
|
7385
7385
|
width : int , optional
|
7386
7386
|
The width in pixels of the figure. The default value is 950.
|
7387
7387
|
height : int , optional
|
topologicpy/Plotly.py
CHANGED
@@ -1923,7 +1923,7 @@ class Plotly:
|
|
1923
1923
|
return figure
|
1924
1924
|
|
1925
1925
|
@staticmethod
|
1926
|
-
def Show(figure, camera=[-1.25, -1.25, 1.25], center=[0, 0, 0], up=[0, 0, 1], renderer=
|
1926
|
+
def Show(figure, camera=[-1.25, -1.25, 1.25], center=[0, 0, 0], up=[0, 0, 1], renderer=None, projection="perspective"):
|
1927
1927
|
"""
|
1928
1928
|
Shows the input figure.
|
1929
1929
|
|
@@ -1938,7 +1938,7 @@ class Plotly:
|
|
1938
1938
|
up : list , optional
|
1939
1939
|
The desired up vector. The default is [0, 0, 1].
|
1940
1940
|
renderer : str , optional
|
1941
|
-
The desired
|
1941
|
+
The desired renderer. See Plotly.Renderers(). If set to None, the code will attempt to discover the most suitable renderer. The default is None.
|
1942
1942
|
projection : str, optional
|
1943
1943
|
The desired type of projection. The options are "orthographic" or "perspective". It is case insensitive. The default is "perspective"
|
1944
1944
|
|
@@ -1954,6 +1954,8 @@ class Plotly:
|
|
1954
1954
|
if not isinstance(figure, plotly.graph_objs._figure.Figure):
|
1955
1955
|
print("Plotly.Show - Error: The input is not a figure. Returning None.")
|
1956
1956
|
return None
|
1957
|
+
if renderer == None:
|
1958
|
+
renderer = Plotly.Renderer()
|
1957
1959
|
if not renderer.lower() in Plotly.Renderers():
|
1958
1960
|
print("Plotly.Show - Error: The input renderer is not in the approved list of renderers. Returning None.")
|
1959
1961
|
return None
|
@@ -1965,6 +1967,36 @@ class Plotly:
|
|
1965
1967
|
figure.show(renderer=renderer)
|
1966
1968
|
return None
|
1967
1969
|
|
1970
|
+
@staticmethod
|
1971
|
+
def Renderer():
|
1972
|
+
"""
|
1973
|
+
Return the renderer most suitable for the environment in which the script is running.
|
1974
|
+
|
1975
|
+
Parameters
|
1976
|
+
----------
|
1977
|
+
|
1978
|
+
Returns
|
1979
|
+
-------
|
1980
|
+
str
|
1981
|
+
The most suitable renderer type for the environment in which the script is running.
|
1982
|
+
Currently, this is limited to:
|
1983
|
+
- "vscode" if running in Visual Studio Code
|
1984
|
+
- "colab" if running in Google Colab
|
1985
|
+
- "iframe" if running in jupyter notebook or jupyterlab
|
1986
|
+
- "browser" if running in anything else
|
1987
|
+
"""
|
1988
|
+
import sys
|
1989
|
+
import os
|
1990
|
+
|
1991
|
+
if 'VSCODE_PID' in os.environ:
|
1992
|
+
return 'vscode'
|
1993
|
+
elif "google.colab" in sys.modules:
|
1994
|
+
return "colab"
|
1995
|
+
elif "ipykernel" in sys.modules:
|
1996
|
+
return "iframe" #works for jupyter notebook and jupyterlab
|
1997
|
+
else:
|
1998
|
+
return "browser"
|
1999
|
+
|
1968
2000
|
@staticmethod
|
1969
2001
|
def Renderers():
|
1970
2002
|
"""
|
topologicpy/Topology.py
CHANGED
@@ -5929,7 +5929,7 @@ class Topology():
|
|
5929
5929
|
projection : str , optional
|
5930
5930
|
The desired type of projection. The options are "orthographic" or "perspective". It is case insensitive. The default is "perspective"
|
5931
5931
|
renderer : str , optional
|
5932
|
-
The desired renderer. See Plotly.Renderers(). The default is
|
5932
|
+
The desired renderer. See Plotly.Renderers(). If set to None, the code will attempt to discover the most suitable renderer. The default is None.
|
5933
5933
|
intensityKey : str , optional
|
5934
5934
|
If not None, the dictionary of each vertex is searched for the value associated with the intensity key. This value is then used to color-code the vertex based on the colorScale. The default is None.
|
5935
5935
|
intensities : list , optional
|
topologicpy/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '0.6.
|
1
|
+
__version__ = '0.6.3'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: topologicpy
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.3
|
4
4
|
Summary: An Advanced Spatial Modelling and Analysis Software Library for Architecture, Engineering, and Construction.
|
5
5
|
Author-email: Wassim Jabi <wassim.jabi@gmail.com>
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
@@ -9,25 +9,25 @@ topologicpy/Dictionary.py,sha256=R7Hb9-LTEgRyaRjxRn8NwBS1Hhkpcqe2QmHmKBxpr54,262
|
|
9
9
|
topologicpy/Edge.py,sha256=TEWb-zxZx57Fdzvdf92Y72MXi380NAvRCb8HS4YPtRU,49110
|
10
10
|
topologicpy/EnergyModel.py,sha256=z83MPP641Sy8uTwH5lvfc0K90-d6BBCOnCebEMO152k,52759
|
11
11
|
topologicpy/Face.py,sha256=QcuICkzSuj4HDYQKH1jQl3X721pFIB1xd8S58x9HwNU,88676
|
12
|
-
topologicpy/Graph.py,sha256=
|
12
|
+
topologicpy/Graph.py,sha256=0DaK1ampqyvY8W2PZyqU14DahEZkJXtWGddHZ7PDyng,365121
|
13
13
|
topologicpy/Grid.py,sha256=8ARLeBUnEMQEwB2Xale928rZWeUBKYgerkmbvoSgnrs,17054
|
14
14
|
topologicpy/Helper.py,sha256=07V9IFu5ilMpvAdZVhIbdBOjBJSRTtJ0BfR1IoRaRXU,17743
|
15
15
|
topologicpy/Honeybee.py,sha256=rw9l4M6ZeeywlK6SAH66bi1vjXC2AwACUk4o8GF7-T8,19913
|
16
16
|
topologicpy/Matrix.py,sha256=ynP4jEMZZC78tZ5Re8dVf3CheEOGnVVFn83_Zl7kUj8,8086
|
17
17
|
topologicpy/Neo4j.py,sha256=VZYkA53gWKpR8LUHzzrOJoaak4Fud3gz4ZaDih1PqNc,18835
|
18
|
-
topologicpy/Plotly.py,sha256=
|
18
|
+
topologicpy/Plotly.py,sha256=SD7UUsmF_8aoZTJr4pWkzbOqs-QnZiNJwK513bVZr3c,96060
|
19
19
|
topologicpy/Polyskel.py,sha256=MYHKFOQBlUNqoUhAdOcKRIHpSk0dWWVrZgXK34NkvFM,15936
|
20
20
|
topologicpy/Shell.py,sha256=rnlnMRxY-KxJPpzr4oXy9m1I1QRQj1qhY8UXBgH8Pu8,74563
|
21
21
|
topologicpy/Speckle.py,sha256=rUS6PCaxIjEF5_fUruxvMH47FMKg-ohcoU0qAUb-yNM,14267
|
22
22
|
topologicpy/Sun.py,sha256=jUokWlwlRaPFa3wC2-flIpE9gBae0YYSP73N_41VsNQ,36723
|
23
|
-
topologicpy/Topology.py,sha256=
|
23
|
+
topologicpy/Topology.py,sha256=Kq2ith3UpiKGGAkLMieMUzj7R5MeJkjIFmvM05Bi9TM,305004
|
24
24
|
topologicpy/Vector.py,sha256=apFuFOmi0WC3QWJ6O5LfLUyVvGOYWTTCTm26g3dKQrQ,29589
|
25
25
|
topologicpy/Vertex.py,sha256=fHp2BarCGWiuJeMarDuLfSKGEqSFOulh7bd22siVl5A,64925
|
26
26
|
topologicpy/Wire.py,sha256=sBYVsIj9QxEXOvNtjDqFaO2N2r1ZlairTn_HSW9rOiQ,128857
|
27
27
|
topologicpy/__init__.py,sha256=D7ky87CAQMiS2KE6YLvcTLkTgA2PY7rASe6Z23pjp9k,872
|
28
|
-
topologicpy/version.py,sha256=
|
29
|
-
topologicpy-0.6.
|
30
|
-
topologicpy-0.6.
|
31
|
-
topologicpy-0.6.
|
32
|
-
topologicpy-0.6.
|
33
|
-
topologicpy-0.6.
|
28
|
+
topologicpy/version.py,sha256=0ICX8PeSmWoiPyIEViMxRYkvCjQE1KvQPJp9o52KRjw,22
|
29
|
+
topologicpy-0.6.3.dist-info/LICENSE,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
|
30
|
+
topologicpy-0.6.3.dist-info/METADATA,sha256=M0vA662BFgcuvTG5D29My1Q5MFjfC1eDRRm-zHCahGk,46950
|
31
|
+
topologicpy-0.6.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
32
|
+
topologicpy-0.6.3.dist-info/top_level.txt,sha256=J30bDzW92Ob7hw3zA8V34Jlp-vvsfIkGzkr8sqvb4Uw,12
|
33
|
+
topologicpy-0.6.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|