Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmutel/131dd35d64ed787a2304026f7d5c9e09 to your computer and use it in GitHub Desktop.
Save cmutel/131dd35d64ed787a2304026f7d5c9e09 to your computer and use it in GitHub Desktop.
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