Skip to content

Instantly share code, notes, and snippets.

@cmutel
Created March 23, 2023 13:46
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/ad46209f19a38d532033fc7e66bc1624 to your computer and use it in GitHub Desktop.
Save cmutel/ad46209f19a38d532033fc7e66bc1624 to your computer and use it in GitHub Desktop.
# Reset min/max
for ds in bd.Database("swiss consumption 1.0"):
for exc in ds.technosphere():
if exc.get('uncertainty type') == 0 or exc.get('uncertainty_type') == 0:
exc['minimum'] = exc['maximum'] = np.NaN
exc.save()
# Get functional unit
ave_hh = bd.get_node(name='ch hh average consumption disaggregated, years 151617')
# Delete the bad one
bd.get_node(name='ch hh all consumption disaggregated, years 151617').delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment