flowsa icon indicating copy to clipboard operation
flowsa copied to clipboard

Allow the same FBA from different year as `source_names`

Open bl-young opened this issue 1 year ago • 1 comments

In rare cases, we may want to get the same FBA but from different years in a single FBS.

source_names:
  FBA:
    year: 2018
    activity_sets:
      ...

  FBA:
    year: 2019 # These datasets last appear in 2019
    activity_sets:
      ...

However we can't use a duplicate key under source_names

bl-young avatar May 25 '24 18:05 bl-young

The following can solve this:

source_names:
  FBA_1:
    source_name: FBA
    year: 2018
    activity_sets:
      ...

  FBA_2:
    source_name: FBA
    year: 2019 # These datasets last appear in 2019
    activity_sets:
      ...

With a new optional parameter source_name which when present will replace the key for obtaining the FBA.

bl-young avatar May 25 '24 18:05 bl-young