topologicpy 0.7.54__py3-none-any.whl → 0.7.56__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/Cell.py +1 -6
- topologicpy/CellComplex.py +1 -6
- topologicpy/Dictionary.py +7 -3
- topologicpy/EnergyModel.py +6 -8
- topologicpy/Graph.py +160 -112
- topologicpy/Honeybee.py +2 -3
- topologicpy/Neo4j.py +285 -341
- topologicpy/Plotly.py +13 -10
- topologicpy/Topology.py +19 -488
- topologicpy/version.py +1 -1
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.56.dist-info}/METADATA +1 -1
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.56.dist-info}/RECORD +15 -15
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.56.dist-info}/WHEEL +1 -1
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.56.dist-info}/LICENSE +0 -0
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.56.dist-info}/top_level.txt +0 -0
topologicpy/Cell.py
CHANGED
@@ -969,12 +969,7 @@ class Cell():
|
|
969
969
|
return code
|
970
970
|
|
971
971
|
def getApertures(topology):
|
972
|
-
|
973
|
-
apertures = Topology.Apertures(topology)
|
974
|
-
if isinstance(apertures, list):
|
975
|
-
for aperture in apertures:
|
976
|
-
apTopologies.append(Aperture.Topology(aperture))
|
977
|
-
return apTopologies
|
972
|
+
return Topology.Apertures(topology)
|
978
973
|
|
979
974
|
if not Topology.IsInstance(cell, "Cell"):
|
980
975
|
print("Cell.Decompose - Error: The input cell parameter is not a valid topologic cell. Returning None.")
|
topologicpy/CellComplex.py
CHANGED
@@ -493,12 +493,7 @@ class CellComplex():
|
|
493
493
|
return code
|
494
494
|
|
495
495
|
def getApertures(topology):
|
496
|
-
|
497
|
-
apTopologies = []
|
498
|
-
apertures = Topology.Apertures(topology)
|
499
|
-
for aperture in apertures:
|
500
|
-
apTopologies.append(Aperture.Topology(aperture))
|
501
|
-
return apTopologies
|
496
|
+
return Topology.Apertures(topology)
|
502
497
|
|
503
498
|
if not Topology.IsInstance(cellComplex, "CellComplex"):
|
504
499
|
print("CellComplex.Decompose - Error: The input cellcomplex parameter is not a valid topologic cellcomplex. Returning None.")
|
topologicpy/Dictionary.py
CHANGED
@@ -625,7 +625,7 @@ class Dictionary():
|
|
625
625
|
return None
|
626
626
|
|
627
627
|
@staticmethod
|
628
|
-
def ValueAtKey(dictionary, key):
|
628
|
+
def ValueAtKey(dictionary, key, silent=False):
|
629
629
|
"""
|
630
630
|
Returns the value of the input key in the input dictionary.
|
631
631
|
|
@@ -635,6 +635,8 @@ class Dictionary():
|
|
635
635
|
The input dictionary.
|
636
636
|
key : string
|
637
637
|
The input key.
|
638
|
+
silent : bool , optional
|
639
|
+
If set to True, no error and warning messages are printed. Otherwise, they are. The default is False.
|
638
640
|
|
639
641
|
Returns
|
640
642
|
-------
|
@@ -645,10 +647,12 @@ class Dictionary():
|
|
645
647
|
from topologicpy.Topology import Topology
|
646
648
|
|
647
649
|
if not Topology.IsInstance(dictionary, "Dictionary") and not isinstance(dictionary, dict):
|
648
|
-
|
650
|
+
if not silent == True:
|
651
|
+
print("Dictionary.ValueAtKey - Error: The input dictionary parameter is not a valid topologic or python dictionary. Returning None.")
|
649
652
|
return None
|
650
653
|
if not isinstance(key, str):
|
651
|
-
|
654
|
+
if not silent == True:
|
655
|
+
print("Dictionary.ValueAtKey - Error: The input key parameter is not a valid str. Returning None.")
|
652
656
|
return None
|
653
657
|
if isinstance(dictionary, dict):
|
654
658
|
attr = dictionary[key]
|
topologicpy/EnergyModel.py
CHANGED
@@ -382,12 +382,11 @@ class EnergyModel:
|
|
382
382
|
osSurface.setName(osSpace.name().get() + "_ExternalVerticalFace_" + str(faceNumber))
|
383
383
|
# Check for exterior apertures
|
384
384
|
faceDictionary = buildingFace.GetDictionary()
|
385
|
-
apertures = []
|
386
|
-
|
385
|
+
#apertures = []
|
386
|
+
apertures = Topology.Apertures(buildingFace)
|
387
387
|
if len(apertures) > 0:
|
388
|
-
for
|
388
|
+
for apertureFace in apertures:
|
389
389
|
osSubSurfacePoints = []
|
390
|
-
apertureFace = Aperture.Topology(aperture)
|
391
390
|
for vertex in Topology.SubTopologies(apertureFace.ExternalBoundary(), "Vertex"):
|
392
391
|
osSubSurfacePoints.append(openstudio.Point3d(Vertex.X(vertex, mantissa=mantissa), Vertex.Y(vertex, mantissa=mantissa), Vertex.Z(vertex, mantissa=mantissa)))
|
393
392
|
osSubSurface = openstudio.model.SubSurface(osSubSurfacePoints, osModel)
|
@@ -420,12 +419,11 @@ class EnergyModel:
|
|
420
419
|
osSurface.setName(osSpace.name().get() + "_InternalVerticalFace_" + str(faceNumber))
|
421
420
|
# Check for interior apertures
|
422
421
|
faceDictionary = buildingFace.GetDictionary()
|
423
|
-
apertures = []
|
424
|
-
|
422
|
+
#apertures = []
|
423
|
+
apertures = Topology.Apertures(buildingFace)
|
425
424
|
if len(apertures) > 0:
|
426
|
-
for
|
425
|
+
for apertureFace in apertures:
|
427
426
|
osSubSurfacePoints = []
|
428
|
-
apertureFace = Aperture.Topology(aperture)
|
429
427
|
for vertex in Topology.SubTopologies(apertureFace.ExternalBoundary(), "Vertex"):
|
430
428
|
osSubSurfacePoints.append(openstudio.Point3d(Vertex.X(vertex, mantissa=mantissa), Vertex.Y(vertex, mantissa=mantissa), Vertex.Z(vertex.Z, mantissa=mantissa)))
|
431
429
|
osSubSurface = openstudio.model.SubSurface(osSubSurfacePoints, osModel)
|