equals ( 'name', 'market for SOx retained' ), ) generation_filters = ) ] fuel_independent = w. equals ( 'name', 'market for NOx retained' ), w.
Set missing locations to `GLO` for datasets in database.Ĭhanges location if location is missing or None. allocate_inputs ( exc, lst ) ¶Īllocate the input exchanges in lst to exc, using production volumes where possible, and equal splitting otherwise.Īlways uses equal splitting if RoW is present. Modifies the dataset in place returns the modified dataset. If ture, only use providers whose location is completely within the ds location otherwise use all intersecting locations. Determines search order when selecting provider locations. biggest_first: Bool, default is False.Delete exchanges for which no valid provider is available. Don’t allow overlapping locations in input providers. data: The list of datasets to search for technosphere product providers.
ds: The dataset whose technosphere exchanges will be modified.If there are still no valid providers, a InvalidLink exception is raised, unless drop_invalid is True, in which case the exchange will be deleted.Īllocation between providers is done using allocate_inputs results seem strange if contained=False, as production volumes for large regions would be used as allocation factors. If no providers can be found, relink_technosphere_exchanes will try to add a RoW or GLO providers, in that order, if available. Will only search for providers contained within the location of ds, unless contained is set to False, all providers whose location intersects the location of ds will be used.Ī RoW provider will be added if there is a single topological face in the location of ds which isn’t covered by the location of any providing activity. Uses the name, reference product, and unit of the exchange to filter possible inputs. relink_technosphere_exchanges ( ds, data, exclusive=True, drop_invalid=False, biggest_first=False, contained=True ) ¶įind new technosphere providers based on the location of the dataset.ĭesigned to be used when the dataset’s location changes, or when new datasets are added. copy_to_new_location ( ds, location ) ¶Ĭopy dataset and substitute new location.ĭoesn’t change exchange locations, except for production exchanges.