zepben.ewb 1.1.0b7__py3-none-any.whl → 1.1.0b9__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.
- zepben/ewb/database/sqlite/common/base_database_reader.py +7 -3
- zepben/ewb/model/cim/iec61970/base/wires/conductor.py +1 -1
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b9.dist-info}/METADATA +1 -1
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b9.dist-info}/RECORD +7 -7
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b9.dist-info}/WHEEL +0 -0
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b9.dist-info}/licenses/LICENSE +0 -0
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b9.dist-info}/top_level.txt +0 -0
|
@@ -84,16 +84,20 @@ class BaseDatabaseReader(ABC):
|
|
|
84
84
|
|
|
85
85
|
return True
|
|
86
86
|
|
|
87
|
-
async def load(self) -> bool:
|
|
87
|
+
async def load(self, perform_after_read_processing: bool = True) -> bool:
|
|
88
88
|
"""
|
|
89
|
-
|
|
89
|
+
Read the database.
|
|
90
|
+
|
|
91
|
+
:param perform_after_read_processing: An optional "opt-out" control for performing the "after read processing".
|
|
92
|
+
|
|
93
|
+
:return: `True` if the database was successfully read, otherwise `False`.
|
|
90
94
|
"""
|
|
91
95
|
try:
|
|
92
96
|
if self._has_been_used:
|
|
93
97
|
raise ValueError("You can only use the database reader once.")
|
|
94
98
|
self._has_been_used = True
|
|
95
99
|
|
|
96
|
-
return self._pre_load() and self._load_from_readers() and await self._post_load()
|
|
100
|
+
return self._pre_load() and self._load_from_readers() and ((not perform_after_read_processing) or await self._post_load())
|
|
97
101
|
except Exception as e:
|
|
98
102
|
self._logger.exception(f"Unable to load database: {e}")
|
|
99
103
|
return False
|
|
@@ -8,9 +8,9 @@ __all__ = ["Conductor"]
|
|
|
8
8
|
from typing import Optional, TYPE_CHECKING
|
|
9
9
|
|
|
10
10
|
from zepben.ewb.model.cim.iec61970.base.core.conducting_equipment import ConductingEquipment
|
|
11
|
+
from zepben.ewb.model.cim.iec61968.assetinfo.cable_info import CableInfo
|
|
11
12
|
|
|
12
13
|
if TYPE_CHECKING:
|
|
13
|
-
from zepben.ewb.model.cim.iec61968.assetinfo.cable_info import CableInfo
|
|
14
14
|
from zepben.ewb.model.cim.iec61968.assetinfo.wire_info import WireInfo
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zepben.ewb
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.0b9
|
|
4
4
|
Summary: Python SDK for interacting with the Energy Workbench platform
|
|
5
5
|
Author-email: Kurt Greaves <kurt.greaves@zepben.com>, Max Chesterfield <max.chesterfield@zepben.com>
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -23,7 +23,7 @@ zepben/ewb/database/sqlite/common/base_cim_reader.py,sha256=RmJfeKtmvANUcam_EAVM
|
|
|
23
23
|
zepben/ewb/database/sqlite/common/base_cim_writer.py,sha256=sPYhkLlpyFt-i0B4UST2EF42i87N0V3Cb7XVaeL-WIU,8021
|
|
24
24
|
zepben/ewb/database/sqlite/common/base_collection_reader.py,sha256=yuOSWaztkJmlarCRcHtZslzYOg9UeVkNwjtuJLI6XCA,3755
|
|
25
25
|
zepben/ewb/database/sqlite/common/base_collection_writer.py,sha256=btq5hm57KnL3N4nUCoTLSstamJhFZcK8PM4WsnErm1g,2622
|
|
26
|
-
zepben/ewb/database/sqlite/common/base_database_reader.py,sha256=
|
|
26
|
+
zepben/ewb/database/sqlite/common/base_database_reader.py,sha256=q13wG7fZBuxo0UBuDrCPJ2ke0fGTt6Ap5CifjtF5new,5213
|
|
27
27
|
zepben/ewb/database/sqlite/common/base_database_tables.py,sha256=Bu-eBNs4VQENhdZiQt1o9oB2chXhm6CUrsbSNkcEwBE,5589
|
|
28
28
|
zepben/ewb/database/sqlite/common/base_database_writer.py,sha256=GStTD4J6F3PlbI1arInqwdazQqngPEaFsItzbzvj3I8,7076
|
|
29
29
|
zepben/ewb/database/sqlite/common/base_entry_writer.py,sha256=c1u1OjFKw9aB0L6kLTfoHbuKORrYYg83geBOXdUElZY,1278
|
|
@@ -444,7 +444,7 @@ zepben/ewb/model/cim/iec61970/base/wires/ac_line_segment.py,sha256=hhzJ4s2X8ROkd
|
|
|
444
444
|
zepben/ewb/model/cim/iec61970/base/wires/breaker.py,sha256=aQ4V6ougg6UaNu2ajM1X72-TmVN070UYWbI8sSv9qj0,1344
|
|
445
445
|
zepben/ewb/model/cim/iec61970/base/wires/busbar_section.py,sha256=WGG6gNJnRAi-AQCIIwLZw_0pJeah-qoQStaR8jUBzDs,805
|
|
446
446
|
zepben/ewb/model/cim/iec61970/base/wires/clamp.py,sha256=-csAcXaXAHrkAR2WL0FqVoDketYH51_s57KXu2W98zg,1329
|
|
447
|
-
zepben/ewb/model/cim/iec61970/base/wires/conductor.py,sha256=
|
|
447
|
+
zepben/ewb/model/cim/iec61970/base/wires/conductor.py,sha256=mZarbyGG8-y6CAgxIzzHLk62wlJzQgCbI_A_48826Zo,1764
|
|
448
448
|
zepben/ewb/model/cim/iec61970/base/wires/connector.py,sha256=Ko3e646ckNFwpbFhb3RAXUTTS_8k6g-SrvVUHhkUVZs,624
|
|
449
449
|
zepben/ewb/model/cim/iec61970/base/wires/cut.py,sha256=VoV2pmcGNoOadVD3pJhlLXEViqfxACXaf62ptuwirLA,1796
|
|
450
450
|
zepben/ewb/model/cim/iec61970/base/wires/disconnector.py,sha256=o6udJA9tYe4pY5tWBaev4wh-sH4aaU05cYuhn0dWWKg,668
|
|
@@ -635,8 +635,8 @@ zepben/ewb/streaming/mutations/update_network_state_client.py,sha256=e0Oma5PRT8m
|
|
|
635
635
|
zepben/ewb/streaming/mutations/update_network_state_service.py,sha256=irR-TO67QXRyBmK8PU8SzM31NKSSefZt_nQGHi5IhT8,3260
|
|
636
636
|
zepben/ewb/testing/__init__.py,sha256=waADXEvfUG9wAN4STx5uIUHOv0UnpZLH2qU1LXgaDBc,243
|
|
637
637
|
zepben/ewb/testing/test_network_builder.py,sha256=KG0o2ZHUswx3xClu-JnLs_pYIYbQ5jjtvtyZ7LI6IZ8,38092
|
|
638
|
-
zepben_ewb-1.1.
|
|
639
|
-
zepben_ewb-1.1.
|
|
640
|
-
zepben_ewb-1.1.
|
|
641
|
-
zepben_ewb-1.1.
|
|
642
|
-
zepben_ewb-1.1.
|
|
638
|
+
zepben_ewb-1.1.0b9.dist-info/licenses/LICENSE,sha256=aAHD66h6PQIETpkJDvg5yEObyFvXUED8u7S8dlh6K0Y,16725
|
|
639
|
+
zepben_ewb-1.1.0b9.dist-info/METADATA,sha256=ZovKNRUIEqrL54DQcPmNZe9E_VwAUbGgw9YbJlqt4y4,3232
|
|
640
|
+
zepben_ewb-1.1.0b9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
641
|
+
zepben_ewb-1.1.0b9.dist-info/top_level.txt,sha256=eVLDJiO6FGjL_Z7KdmFE-R8uf1Q07aaVLGe9Ee4kmBw,7
|
|
642
|
+
zepben_ewb-1.1.0b9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|