Created
March 10, 2023 12:48
-
-
Save cmutel/131dd35d64ed787a2304026f7d5c9e09 to your computer and use it in GitHub Desktop.
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
import pyecospold | |
dirpath = "path to 3.9.1 files" | |
datasets = pyecospold.parse_directory_v2(dirpath) | |
for filepath, ecospold in datasets: | |
try: | |
ds = ecospold.childActivityDataset | |
assert ds | |
except (AttributeError, AssertionError): | |
ds = ecospold.activityDataset | |
for exchange in ds.flowData.intermediateExchanges: | |
assert exchange.intermediateExchangeId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment