topologicpy 0.3.7__py3-none-any.whl → 0.3.8__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/EnergyModel.py +376 -341
- topologicpy/Honeybee.py +11 -5
- topologicpy/Plotly.py +111 -24
- topologicpy/Topology.py +34 -3
- topologicpy/__init__.py +1 -1
- {topologicpy-0.3.7.dist-info → topologicpy-0.3.8.dist-info}/METADATA +1 -1
- {topologicpy-0.3.7.dist-info → topologicpy-0.3.8.dist-info}/RECORD +10 -10
- {topologicpy-0.3.7.dist-info → topologicpy-0.3.8.dist-info}/LICENSE +0 -0
- {topologicpy-0.3.7.dist-info → topologicpy-0.3.8.dist-info}/WHEEL +0 -0
- {topologicpy-0.3.7.dist-info → topologicpy-0.3.8.dist-info}/top_level.txt +0 -0
topologicpy/Honeybee.py
CHANGED
|
@@ -98,7 +98,7 @@ class Honeybee:
|
|
|
98
98
|
|
|
99
99
|
@staticmethod
|
|
100
100
|
def ModelByTopology(tpBuilding,
|
|
101
|
-
tpShadingFacesCluster=None,
|
|
101
|
+
tpShadingFacesCluster = None,
|
|
102
102
|
buildingName = "Generic_Building",
|
|
103
103
|
defaultProgramIdentifier = "Generic Office Program",
|
|
104
104
|
defaultConstructionSetIdentifier = "Default Generic Construction Set",
|
|
@@ -106,12 +106,18 @@ class Honeybee:
|
|
|
106
106
|
heatingSetpoint = 20.0,
|
|
107
107
|
humidifyingSetpoint = 30.0,
|
|
108
108
|
dehumidifyingSetpoint = 55.0,
|
|
109
|
-
roomNameKey = "
|
|
110
|
-
roomTypeKey = "
|
|
111
|
-
apertureTypeKey = "
|
|
109
|
+
roomNameKey = "TOPOLOGIC_name",
|
|
110
|
+
roomTypeKey = "TOPOLOGIC_type",
|
|
111
|
+
apertureTypeKey = "TOPOLOGIC_type",
|
|
112
112
|
addSensorGrid = False):
|
|
113
113
|
"""
|
|
114
|
-
Creates an HB Model from the input Topology
|
|
114
|
+
Creates an HB Model from the input Topology.
|
|
115
|
+
|
|
116
|
+
Parameters
|
|
117
|
+
----------
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
Returns
|
|
115
121
|
-------
|
|
116
122
|
HBModel
|
|
117
123
|
The created HB Model
|
topologicpy/Plotly.py
CHANGED
|
@@ -13,6 +13,81 @@ from topologicpy.Topology import Topology
|
|
|
13
13
|
import numpy as np
|
|
14
14
|
|
|
15
15
|
class Plotly:
|
|
16
|
+
@staticmethod
|
|
17
|
+
def AddColorBar(figure, values=[], nTicks=5, xPosition=-0.15, width=15, outlineWidth=0, title="", subTitle="", units="", colorScale="viridis", mantissa=4):
|
|
18
|
+
"""
|
|
19
|
+
Adds a color bar to the input figure
|
|
20
|
+
|
|
21
|
+
Parameters
|
|
22
|
+
----------
|
|
23
|
+
figure : plotly.graph_objs._figure.Figure
|
|
24
|
+
The input plotly figure.
|
|
25
|
+
values : list , optional
|
|
26
|
+
The input list of values to use for the color bar. The default is [].
|
|
27
|
+
nTicks : int , optional
|
|
28
|
+
The number of ticks to use on the color bar. The default is 5.
|
|
29
|
+
xPosition : float , optional
|
|
30
|
+
The x location of the color bar. The default is -0.15.
|
|
31
|
+
width : int , optional
|
|
32
|
+
The width in pixels of the color bar. The default is 15
|
|
33
|
+
outlineWidth : int , optional
|
|
34
|
+
The width in pixels of the outline of the color bar. The default is 0.
|
|
35
|
+
title : str , optional
|
|
36
|
+
The title of the color bar. The default is "".
|
|
37
|
+
subTitle : str , optional
|
|
38
|
+
The subtitle of the color bar. The default is "".
|
|
39
|
+
units: str , optional
|
|
40
|
+
The units used in the color bar. The default is ""
|
|
41
|
+
colorScale : str , optional
|
|
42
|
+
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/.
|
|
43
|
+
mantissa : int , optional
|
|
44
|
+
The desired length of the mantissa for the values listed on the color bar. The default is 4.
|
|
45
|
+
Returns
|
|
46
|
+
-------
|
|
47
|
+
plotly.graph_objs._figure.Figure
|
|
48
|
+
The input figure with the color bar added.
|
|
49
|
+
|
|
50
|
+
"""
|
|
51
|
+
if not isinstance(figure, plotly.graph_objs._figure.Figure):
|
|
52
|
+
return None
|
|
53
|
+
if units:
|
|
54
|
+
units = "Units: "+units
|
|
55
|
+
minValue = min(values)
|
|
56
|
+
maxValue = max(values)
|
|
57
|
+
step = (maxValue - minValue)/float(nTicks-1)
|
|
58
|
+
r = [round(minValue+i*step, mantissa) for i in range(nTicks)]
|
|
59
|
+
r[-1] = round(maxValue, mantissa)
|
|
60
|
+
# Define the minimum and maximum range of the colorbar
|
|
61
|
+
rs = [str(x) for x in r]
|
|
62
|
+
|
|
63
|
+
# Define the colorbar as a trace with no data, x or y coordinates
|
|
64
|
+
colorbar_trace = go.Scatter(
|
|
65
|
+
x=[0],
|
|
66
|
+
y=[0],
|
|
67
|
+
mode="markers",
|
|
68
|
+
showlegend=False,
|
|
69
|
+
marker=dict(
|
|
70
|
+
size=0,
|
|
71
|
+
colorscale=colorScale, # choose the colorscale
|
|
72
|
+
cmin=minValue,
|
|
73
|
+
cmax=maxValue,
|
|
74
|
+
color=['rgba(0,0,0,0)'],
|
|
75
|
+
colorbar=dict(
|
|
76
|
+
x=xPosition,
|
|
77
|
+
title="<b>"+title+"</b><br>"+subTitle+"<br>"+units, # title of the colorbar
|
|
78
|
+
ticks="outside", # position of the ticks
|
|
79
|
+
tickvals=r, # values of the ticks
|
|
80
|
+
ticktext=rs, # text of the ticks
|
|
81
|
+
tickmode="array",
|
|
82
|
+
thickness=width,
|
|
83
|
+
outlinewidth=outlineWidth,
|
|
84
|
+
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
)
|
|
88
|
+
figure.add_trace(colorbar_trace)
|
|
89
|
+
return figure
|
|
90
|
+
|
|
16
91
|
@staticmethod
|
|
17
92
|
def Colors():
|
|
18
93
|
"""
|
|
@@ -283,7 +358,7 @@ class Plotly:
|
|
|
283
358
|
return data
|
|
284
359
|
|
|
285
360
|
@staticmethod
|
|
286
|
-
def DataByTopology(topology, vertexLabelKey=None, vertexGroupKey=None, edgeLabelKey=None, edgeGroupKey=None, faceLabelKey=None, faceGroupKey=None, vertexGroups=[], edgeGroups=[], faceGroups=[], faceColor="white", faceOpacity=0.5, edgeColor="black", edgeWidth=1, vertexColor="black", vertexSize=1.1, showFaces=True, showEdges=True, showVertices=True, vertexLabel="Topology Vertices", edgeLabel="Topology Edges", faceLabel="Topology Faces", vertexLegendGroup=1, edgeLegendGroup=2, faceLegendGroup=3, vertexLegendRank=1, edgeLegendRank=2, faceLegendRank=3, showVertexLegend=
|
|
361
|
+
def DataByTopology(topology, vertexLabelKey=None, vertexGroupKey=None, edgeLabelKey=None, edgeGroupKey=None, faceLabelKey=None, faceGroupKey=None, vertexGroups=[], edgeGroups=[], faceGroups=[], faceColor="white", faceOpacity=0.5, edgeColor="black", edgeWidth=1, vertexColor="black", vertexSize=1.1, showFaces=True, showEdges=True, showVertices=True, vertexLabel="Topology Vertices", edgeLabel="Topology Edges", faceLabel="Topology Faces", vertexLegendGroup=1, edgeLegendGroup=2, faceLegendGroup=3, vertexLegendRank=1, edgeLegendRank=2, faceLegendRank=3, showVertexLegend=False, showEdgeLegend=False, showFaceLegend=False, intensityKey=None, colorScale="Viridis", showScale=True, scaleTitle="Untitled"):
|
|
287
362
|
"""
|
|
288
363
|
Creates plotly face, edge, and vertex data.
|
|
289
364
|
|
|
@@ -316,8 +391,7 @@ class Plotly:
|
|
|
316
391
|
vertexLegendRank : int , optional
|
|
317
392
|
The legend rank order of the vertices of this topology. The default is 1.
|
|
318
393
|
showVertexLegend : bool, optional
|
|
319
|
-
If set to True, the legend for the vertices of this topology is shown. Otherwise, it isn't. The default is
|
|
320
|
-
|
|
394
|
+
If set to True, the legend for the vertices of this topology is shown. Otherwise, it isn't. The default is False.
|
|
321
395
|
edgeGroupKey : str , optional
|
|
322
396
|
The dictionary key to use to display the edge group. The default is None.
|
|
323
397
|
edgeGroups : list , optional
|
|
@@ -332,7 +406,6 @@ class Plotly:
|
|
|
332
406
|
The default is "black".
|
|
333
407
|
edgeWidth : float , optional
|
|
334
408
|
The desired thickness of the output edges. The default is 1.
|
|
335
|
-
|
|
336
409
|
edgeLabel : str , optional
|
|
337
410
|
The legend label string used to identify edges. The default is "Topology Edges".
|
|
338
411
|
edgeLabelKey : str , optional
|
|
@@ -342,7 +415,7 @@ class Plotly:
|
|
|
342
415
|
edgeLegendRank : int , optional
|
|
343
416
|
The legend rank order of the edges of this topology. The default is 2.
|
|
344
417
|
showEdgeLegend : bool, optional
|
|
345
|
-
If set to True, the legend for the edges of this topology is shown. Otherwise, it isn't. The default is
|
|
418
|
+
If set to True, the legend for the edges of this topology is shown. Otherwise, it isn't. The default is False.
|
|
346
419
|
showEdges : bool , optional
|
|
347
420
|
If set to True the edges will be drawn. Otherwise, they will not be drawn. The default is True.
|
|
348
421
|
faceLabelKey : str , optional
|
|
@@ -370,7 +443,7 @@ class Plotly:
|
|
|
370
443
|
faceLegendRank : int , optional
|
|
371
444
|
The legend rank order of the faces of this topology. The default is 3.
|
|
372
445
|
showFaceLegend : bool, optional
|
|
373
|
-
If set to True, the legend for the faces of this topology is shown. Otherwise, it isn't. The default is
|
|
446
|
+
If set to True, the legend for the faces of this topology is shown. Otherwise, it isn't. The default is False.
|
|
374
447
|
intensityKey: str, optional
|
|
375
448
|
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.
|
|
376
449
|
colorScale : str , optional
|
|
@@ -504,7 +577,8 @@ class Plotly:
|
|
|
504
577
|
hoverinfo='text')
|
|
505
578
|
|
|
506
579
|
|
|
507
|
-
def faceData(vertices, faces, dictionaries=None, faceColor="white", faceOpacity=0.5, faceLabelKey=None, faceGroupKey=None, faceGroups=[], faceLabel="Topology Faces", legendGroup=3, legendRank=3, showLegend=True, intensities=None, colorScale="Viridis", showScale="False",
|
|
580
|
+
def faceData(vertices, faces, dictionaries=None, faceColor="white", faceOpacity=0.5, faceLabelKey=None, faceGroupKey=None, faceGroups=[], faceLabel="Topology Faces", legendGroup=3, legendRank=3, showLegend=True, intensities=None, colorScale="Viridis", showScale="False", scaleTitle="Untitled"):
|
|
581
|
+
from topologicpy.Color import Color
|
|
508
582
|
x = []
|
|
509
583
|
y = []
|
|
510
584
|
z = []
|
|
@@ -517,7 +591,15 @@ class Plotly:
|
|
|
517
591
|
k = []
|
|
518
592
|
f_labels = []
|
|
519
593
|
f_groupList = []
|
|
594
|
+
minGroup = 0
|
|
595
|
+
maxGroup = 100
|
|
520
596
|
if faceLabelKey or faceGroupKey:
|
|
597
|
+
if faceGroups:
|
|
598
|
+
minGroup = min(faceGroups)
|
|
599
|
+
maxGroup = max(faceGroups)
|
|
600
|
+
else:
|
|
601
|
+
minGroup = 0
|
|
602
|
+
maxGroup = 1
|
|
521
603
|
for m, f in enumerate(faces):
|
|
522
604
|
i.append(f[0])
|
|
523
605
|
j.append(f[1])
|
|
@@ -532,11 +614,13 @@ class Plotly:
|
|
|
532
614
|
except:
|
|
533
615
|
f_label = ""
|
|
534
616
|
try:
|
|
535
|
-
f_group =
|
|
617
|
+
f_group = Dictionary.ValueAtKey(d, key=faceGroupKey) or None
|
|
536
618
|
except:
|
|
537
|
-
f_group =
|
|
619
|
+
f_group = None
|
|
538
620
|
try:
|
|
539
|
-
|
|
621
|
+
f_color = Color.ByValueInRange(f_group, minValue=minGroup, maxValue=maxGroup, colorScale=colorScale)
|
|
622
|
+
colorString = "rgb("+str(f_color[0])+","+str(f_color[1])+","+str(f_color[2])+")"
|
|
623
|
+
f_groupList.append(colorString)
|
|
540
624
|
except:
|
|
541
625
|
f_groupList.append(len(faceGroups))
|
|
542
626
|
if not f_label == "" and not f_group == "":
|
|
@@ -549,12 +633,10 @@ class Plotly:
|
|
|
549
633
|
k.append(f[2])
|
|
550
634
|
|
|
551
635
|
if len(list(set(f_groupList))) < 2:
|
|
552
|
-
|
|
636
|
+
f_groupList = None
|
|
553
637
|
if len(f_labels) < 1:
|
|
554
638
|
f_labels = ""
|
|
555
|
-
|
|
556
|
-
colorBarTitle = " "
|
|
557
|
-
return go.Mesh3d(
|
|
639
|
+
trace = go.Mesh3d(
|
|
558
640
|
x=x,
|
|
559
641
|
y=y,
|
|
560
642
|
z=z,
|
|
@@ -565,18 +647,22 @@ class Plotly:
|
|
|
565
647
|
showlegend = showLegend,
|
|
566
648
|
legendgroup = legendGroup,
|
|
567
649
|
legendrank = legendRank,
|
|
568
|
-
color =
|
|
650
|
+
color = faceColor,
|
|
651
|
+
facecolor = f_groupList,
|
|
569
652
|
colorscale = colorScale,
|
|
570
|
-
colorbar
|
|
653
|
+
#colorbar=dict(x=-0.15, thickness=15, outlinewidth=0, title= "<b>"+scaleTitle+"</b>"),
|
|
654
|
+
#colorbar = {"x":-0.15, "title": "<b>"+scaleTitle+"</b>"},
|
|
571
655
|
intensity = intensities,
|
|
572
656
|
opacity = faceOpacity,
|
|
573
657
|
hoverinfo = 'text',
|
|
574
658
|
text=f_labels,
|
|
575
659
|
hovertext = f_labels,
|
|
576
660
|
flatshading = True,
|
|
577
|
-
showscale =
|
|
661
|
+
showscale = False,
|
|
578
662
|
lighting = {"facenormalsepsilon": 0},
|
|
579
663
|
)
|
|
664
|
+
return trace
|
|
665
|
+
|
|
580
666
|
from topologicpy.Cluster import Cluster
|
|
581
667
|
from topologicpy.Topology import Topology
|
|
582
668
|
from topologicpy.Dictionary import Dictionary
|
|
@@ -652,7 +738,7 @@ class Plotly:
|
|
|
652
738
|
i = Vertex.Index(vertex=w_v, vertices=tp_verts, tolerance=0.01)
|
|
653
739
|
temp_f.append(i)
|
|
654
740
|
faces.append(temp_f)
|
|
655
|
-
data.append(faceData(vertices, faces, dictionaries=f_dictionaries, faceColor=faceColor, faceOpacity=faceOpacity, faceLabelKey=faceLabelKey, faceGroupKey=faceGroupKey, faceGroups=faceGroups, faceLabel=faceLabel, legendGroup=faceLegendGroup, legendRank=faceLegendRank, showLegend=showFaceLegend, intensities=intensities, colorScale=colorScale, showScale=showScale,
|
|
741
|
+
data.append(faceData(vertices, faces, dictionaries=f_dictionaries, faceColor=faceColor, faceOpacity=faceOpacity, faceLabelKey=faceLabelKey, faceGroupKey=faceGroupKey, faceGroups=faceGroups, faceLabel=faceLabel, legendGroup=faceLegendGroup, legendRank=faceLegendRank, showLegend=showFaceLegend, intensities=intensities, colorScale=colorScale, showScale=showScale, scaleTitle=scaleTitle))
|
|
656
742
|
return data
|
|
657
743
|
|
|
658
744
|
|
|
@@ -968,11 +1054,11 @@ class Plotly:
|
|
|
968
1054
|
import plotly.express as px
|
|
969
1055
|
|
|
970
1056
|
if chartType.lower() == "line":
|
|
971
|
-
|
|
1057
|
+
figure = px.line(dataFrame, x=labels[0], y=labels[1:], title=title, markers=useMarkers)
|
|
972
1058
|
elif chartType.lower() == "bar":
|
|
973
|
-
|
|
1059
|
+
figure = px.bar(dataFrame, x=labels[0], y=labels[1:], title=title)
|
|
974
1060
|
elif chartType.lower() == "scatter":
|
|
975
|
-
|
|
1061
|
+
figure = px.scatter(dataFrame, x=labels[0], y=labels[1:], title=title)
|
|
976
1062
|
else:
|
|
977
1063
|
raise NotImplementedError
|
|
978
1064
|
|
|
@@ -986,8 +1072,8 @@ class Plotly:
|
|
|
986
1072
|
"plot_bgcolor": backgroundColor,
|
|
987
1073
|
"margin":dict(l=marginLeft, r=marginRight, t=marginTop, b=marginBottom)
|
|
988
1074
|
}
|
|
989
|
-
|
|
990
|
-
return
|
|
1075
|
+
figure.update_layout(layout)
|
|
1076
|
+
return figure
|
|
991
1077
|
|
|
992
1078
|
|
|
993
1079
|
@staticmethod
|
|
@@ -1076,7 +1162,8 @@ class Plotly:
|
|
|
1076
1162
|
plot_bgcolor=backgroundColor,
|
|
1077
1163
|
margin=dict(l=marginLeft, r=marginRight, t=marginTop, b=marginBottom),
|
|
1078
1164
|
)
|
|
1079
|
-
|
|
1165
|
+
figure.update_xaxes(showgrid=False, zeroline=False, visible=False)
|
|
1166
|
+
figure.update_yaxes(showgrid=False, zeroline=False, visible=False)
|
|
1080
1167
|
return figure
|
|
1081
1168
|
|
|
1082
1169
|
@staticmethod
|
topologicpy/Topology.py
CHANGED
|
@@ -4555,7 +4555,16 @@ class Topology():
|
|
|
4555
4555
|
|
|
4556
4556
|
|
|
4557
4557
|
@staticmethod
|
|
4558
|
-
def Show(topology, vertexLabelKey=None, vertexGroupKey=None, edgeLabelKey=None,
|
|
4558
|
+
def Show(topology, vertexLabelKey=None, vertexGroupKey=None, edgeLabelKey=None,
|
|
4559
|
+
edgeGroupKey=None, faceLabelKey=None, faceGroupKey=None, vertexGroups=[],
|
|
4560
|
+
edgeGroups=[], faceGroups=[], faceColor='white', faceOpacity=0.5,
|
|
4561
|
+
edgeColor='black', edgeWidth=1, vertexColor='black', vertexSize=1.1,
|
|
4562
|
+
showFaces=True, showEdges=True, showVertices=True, width=950, height=500,
|
|
4563
|
+
xAxis=False, yAxis=False, zAxis=False, axisSize=1, backgroundColor='rgba(0,0,0,0)',
|
|
4564
|
+
marginLeft=0, marginRight=0, marginTop=20, marginBottom=0, camera=[1.25, 1.25, 1.25],
|
|
4565
|
+
target=[0, 0, 0], up=[0, 0, 1], renderer="notebook", intensityKey=None, showScale=False,
|
|
4566
|
+
values=[], nTicks=5, xPosition=-0.15, colorbarWidth=15, outlineWidth=0, title="",
|
|
4567
|
+
subTitle="", units="", colorScale="viridis", mantissa=4):
|
|
4559
4568
|
"""
|
|
4560
4569
|
Shows the input topology on screen.
|
|
4561
4570
|
|
|
@@ -4651,10 +4660,30 @@ class Topology():
|
|
|
4651
4660
|
The desired up vector. The default is [0,0,1].
|
|
4652
4661
|
renderer : str , optional
|
|
4653
4662
|
The desired renderer. See Plotly.Renderers(). The default is "notebook".
|
|
4654
|
-
intensityKey: str, optional
|
|
4663
|
+
intensityKey : str , optional
|
|
4655
4664
|
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.
|
|
4665
|
+
showScale : bool , optional
|
|
4666
|
+
If set to True, the colorbar is shown. The default is False.
|
|
4667
|
+
values : list , optional
|
|
4668
|
+
The input list of values to use for the colorbar. The default is [].
|
|
4669
|
+
nTicks : int , optional
|
|
4670
|
+
The number of ticks to use on the colorbar. The default is 5.
|
|
4671
|
+
xPosition : float , optional
|
|
4672
|
+
The x location of the colorbar. The default is -0.15.
|
|
4673
|
+
colorbarWidth : int , optional
|
|
4674
|
+
The width in pixels of the colorbar. The default is 15
|
|
4675
|
+
outlineWidth : int , optional
|
|
4676
|
+
The width in pixels of the outline of the colorbar. The default is 0.
|
|
4677
|
+
title : str , optional
|
|
4678
|
+
The title of the colorbar. The default is "".
|
|
4679
|
+
subTitle : str , optional
|
|
4680
|
+
The subtitle of the colorbar. The default is "".
|
|
4681
|
+
units: str , optional
|
|
4682
|
+
The units used in the colorbar. The default is ""
|
|
4656
4683
|
colorScale : str , optional
|
|
4657
|
-
The desired type of plotly color scales to use (e.g. "
|
|
4684
|
+
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/.
|
|
4685
|
+
mantissa : int , optional
|
|
4686
|
+
The desired length of the mantissa for the values listed on the colorbar. The default is 4.
|
|
4658
4687
|
|
|
4659
4688
|
Returns
|
|
4660
4689
|
-------
|
|
@@ -4666,6 +4695,8 @@ class Topology():
|
|
|
4666
4695
|
return None
|
|
4667
4696
|
data = Plotly.DataByTopology(topology=topology, vertexLabelKey=vertexLabelKey, vertexGroupKey=vertexGroupKey, edgeLabelKey=edgeLabelKey, edgeGroupKey=edgeGroupKey, faceLabelKey=faceLabelKey, faceGroupKey=faceGroupKey, vertexGroups=vertexGroups, edgeGroups=edgeGroups, faceGroups=faceGroups, faceColor=faceColor, faceOpacity=faceOpacity, edgeColor=edgeColor, edgeWidth=edgeWidth, vertexColor=vertexColor, vertexSize=vertexSize, showFaces=showFaces, showEdges=showEdges, showVertices=showVertices, intensityKey=intensityKey, colorScale=colorScale, showScale=showScale)
|
|
4668
4697
|
figure = Plotly.FigureByData(data=data, width=width, height=height, xAxis=xAxis, yAxis=yAxis, zAxis=zAxis, axisSize=axisSize, backgroundColor=backgroundColor, marginLeft=marginLeft, marginRight=marginRight, marginTop=marginTop, marginBottom=marginBottom)
|
|
4698
|
+
if showScale:
|
|
4699
|
+
figure = Plotly.AddColorBar(figure, values=values, nTicks=nTicks, xPosition=xPosition, width=colorbarWidth, outlineWidth=outlineWidth, title=title, subTitle=subTitle, units=units, colorScale=colorScale, mantissa=mantissa)
|
|
4669
4700
|
Plotly.Show(figure=figure, renderer=renderer, camera=camera, target=target, up=up)
|
|
4670
4701
|
|
|
4671
4702
|
@staticmethod
|
topologicpy/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: topologicpy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
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
|
Project-URL: Homepage, https://github.com/wassimj/TopologicPy
|
|
@@ -7,26 +7,26 @@ topologicpy/Context.py,sha256=cPxfxUScXcJVafSTnCTCNpRzBGSbu90D5i6uu26S5us,1643
|
|
|
7
7
|
topologicpy/DGL.py,sha256=VfzV-GJDLdV--g6ninlvPQprI3SRlAzS21rjHz0UtPc,116268
|
|
8
8
|
topologicpy/Dictionary.py,sha256=SMM0wQPySr1AvUX97AQpn1tca5mkkicRN-sUMSR7c_M,17016
|
|
9
9
|
topologicpy/Edge.py,sha256=Q3Y6VsptyRl99pENBiy2uzVQpoqP59JbS1rdxqhgwUE,30629
|
|
10
|
-
topologicpy/EnergyModel.py,sha256=
|
|
10
|
+
topologicpy/EnergyModel.py,sha256=xzs6om5G2EX1fDK1QP_Jt4dfy7cOJjmVe_PIdNcwrwo,43052
|
|
11
11
|
topologicpy/Face.py,sha256=nR_63MUylvBhIyvN3il_Cv-YGpuqaMHqLTIZVCiQeb0,70847
|
|
12
12
|
topologicpy/Graph.py,sha256=RlKQKq650yV7UrmK08TNfF-MUGXt0-jayNrbRKOx7tg,141560
|
|
13
13
|
topologicpy/Graph_Export.py,sha256=SetKzyvHg4IU7dwZC1MiI187CUO3gHhRPsQzEBDldUY,35612
|
|
14
14
|
topologicpy/Grid.py,sha256=rArW8J3vkhWt8dx9NDzCSyu4oMowUpsly7rEhsLPFII,16449
|
|
15
15
|
topologicpy/Helper.py,sha256=51sDsc_bIXa90JKG58yUDl0ocdOmJOtsanS4txMeQiQ,5243
|
|
16
|
-
topologicpy/Honeybee.py,sha256=
|
|
16
|
+
topologicpy/Honeybee.py,sha256=eQW9-yEsTwAJ54hR-MEkrZL9ZwHHjYpedVrCliiDmfI,16563
|
|
17
17
|
topologicpy/Matrix.py,sha256=GHd_o714eEWbTOhRM5X-fXcgsV5yYJJSj6xFdnkwC14,7625
|
|
18
18
|
topologicpy/Neo4jGraph.py,sha256=_5Mqnwx98EWDA_gfGD93SlivdELSXUhcQ7WjqXLVi_I,10771
|
|
19
|
-
topologicpy/Plotly.py,sha256=
|
|
19
|
+
topologicpy/Plotly.py,sha256=N0rqqQP5UQW7dK5dBcyt7DNazbbpeji-3X-BWvGOLmk,59760
|
|
20
20
|
topologicpy/Process.py,sha256=YyPYq9HdzIwyEMog7gF_jIBskD_vVWAzTrVS8mcEwOc,53710
|
|
21
21
|
topologicpy/SQL.py,sha256=6pdbdBAkpNi0VbIat996Swna-qQ-Osm31Kq6YCTEOH8,1892
|
|
22
22
|
topologicpy/Shell.py,sha256=GpxdM0AZe-6jLy8gXlHTOq_Ztz-ADeydmLC973uXkg0,49804
|
|
23
23
|
topologicpy/Speckle.py,sha256=65IHXjuNhHAusy4kPp70wlPF8QueSPJ-85v6dPc0uo4,11548
|
|
24
|
-
topologicpy/Topology.py,sha256=
|
|
24
|
+
topologicpy/Topology.py,sha256=apVYWz9EgayCXZxV-aleraL-SugOSmKFQaByNvw4k7M,225008
|
|
25
25
|
topologicpy/UnitTest.py,sha256=JBgLkWaJQd4Ee1XSyLVojEbRJKcxj-DbeVSxoeHmiOs,1380
|
|
26
26
|
topologicpy/Vector.py,sha256=ZhtiBYythQmWmRVDGxXI0m5-7S3qUK_G_xxuiKVYjog,14536
|
|
27
27
|
topologicpy/Vertex.py,sha256=W17pLLtyMyV5b0t8lwvm2-YFk3XJDmdmc_sX4mqaKkQ,25186
|
|
28
28
|
topologicpy/Wire.py,sha256=PL38qNu3I-nJlPy7jT0gcdaP5VvaQsEmgeUnQ5s0-_E,85473
|
|
29
|
-
topologicpy/__init__.py,sha256=
|
|
29
|
+
topologicpy/__init__.py,sha256=Mi3CSxbRJU00_iESEOmorQapW8zvtDain_J8bp3genk,641
|
|
30
30
|
topologicpy/bin/linux/topologic/__init__.py,sha256=qdj8gyp_GtYre27ZdFiVdLzLViOgX62woBZLTy9K91c,58
|
|
31
31
|
topologicpy/bin/linux/topologic/topologic.cpython-310-x86_64-linux-gnu.so,sha256=uvar01STZ8qu1c8fRmtYdVnK8evxBv305QScASXY9go,1852112
|
|
32
32
|
topologicpy/bin/linux/topologic/topologic.cpython-311-x86_64-linux-gnu.so,sha256=42yjVWetFu_qn6-eZcDxgd_A8SQN_wHqkdw91txKt9U,1852112
|
|
@@ -69,8 +69,8 @@ topologicpy/bin/windows/topologic/topologic.cp310-win_amd64.pyd,sha256=F0sPLuMpD
|
|
|
69
69
|
topologicpy/bin/windows/topologic/topologic.cp311-win_amd64.pyd,sha256=aBAJQj3OmJ58MOAF1ZIFybL_5fFK7FNR9hrIps6b6pc,1551872
|
|
70
70
|
topologicpy/bin/windows/topologic/topologic.cp38-win_amd64.pyd,sha256=aLgNf54nbJmGc7Tdmkuy-V0m6B9zLxabIbpRwAy7cBA,1551360
|
|
71
71
|
topologicpy/bin/windows/topologic/topologic.cp39-win_amd64.pyd,sha256=_8cp205hiRxkFHtzQQOweA4DhCPk8caH4kTVLWGQeVw,1411584
|
|
72
|
-
topologicpy-0.3.
|
|
73
|
-
topologicpy-0.3.
|
|
74
|
-
topologicpy-0.3.
|
|
75
|
-
topologicpy-0.3.
|
|
76
|
-
topologicpy-0.3.
|
|
72
|
+
topologicpy-0.3.8.dist-info/LICENSE,sha256=RUmXeeqj63bBySLJjEfhwb9OE7M8h9K6HuOBF3ASVyI,35697
|
|
73
|
+
topologicpy-0.3.8.dist-info/METADATA,sha256=vhsSxI0omXHBfS7YXn2LJ9biDCzB5pS-Kja-928-yzY,7210
|
|
74
|
+
topologicpy-0.3.8.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
75
|
+
topologicpy-0.3.8.dist-info/top_level.txt,sha256=J30bDzW92Ob7hw3zA8V34Jlp-vvsfIkGzkr8sqvb4Uw,12
|
|
76
|
+
topologicpy-0.3.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|