-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
136 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
from GridCalEngine.IO.cim.cgmes.cgmes_data_parser import CgmesDataParser | ||
from GridCalEngine.IO.cim.cgmes.cgmes_circuit import CgmesCircuit | ||
from GridCalEngine.basic_structures import Logger | ||
|
||
fname = os.path.join("..", "..", "tests", "data", "grids", "CGMES_2_4_15", "IEEE 118 Bus v2.zip") | ||
|
||
logger = Logger() | ||
data_parser = CgmesDataParser() | ||
data_parser.load_files(files=[fname]) | ||
cgmes_circuit = CgmesCircuit(cgmes_version=data_parser.cgmes_version, | ||
cgmes_map_areas_like_raw=False, logger=logger) | ||
cgmes_circuit.parse_files(data_parser=data_parser) | ||
|
||
for ac_line_segment in cgmes_circuit.cgmes_assets.ACLineSegment_list: | ||
print(ac_line_segment.name) | ||
|
||
# print the logs | ||
logger.print() |
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.