Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the same FBA from different year as source_names #413

Open
bl-young opened this issue May 25, 2024 · 1 comment
Open

Allow the same FBA from different year as source_names #413

bl-young opened this issue May 25, 2024 · 1 comment
Labels
enhancement New feature or request flowbysector applies to flowbysector methods and outputs

Comments

@bl-young
Copy link
Collaborator

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 bl-young added enhancement New feature or request flowbysector applies to flowbysector methods and outputs labels May 25, 2024
@bl-young
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request flowbysector applies to flowbysector methods and outputs
Projects
None yet
Development

No branches or pull requests

1 participant