topologicpy 0.7.55__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/Dictionary.py +7 -3
- topologicpy/Graph.py +88 -88
- topologicpy/Neo4j.py +285 -341
- topologicpy/Plotly.py +13 -10
- topologicpy/version.py +1 -1
- {topologicpy-0.7.55.dist-info → topologicpy-0.7.56.dist-info}/METADATA +1 -1
- {topologicpy-0.7.55.dist-info → topologicpy-0.7.56.dist-info}/RECORD +10 -10
- {topologicpy-0.7.55.dist-info → topologicpy-0.7.56.dist-info}/WHEEL +1 -1
- {topologicpy-0.7.55.dist-info → topologicpy-0.7.56.dist-info}/LICENSE +0 -0
- {topologicpy-0.7.55.dist-info → topologicpy-0.7.56.dist-info}/top_level.txt +0 -0
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]
|