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

Add attribute to Parsers to differentiate between projects #112

Open
thomas-qah opened this issue Aug 16, 2023 · 0 comments
Open

Add attribute to Parsers to differentiate between projects #112

thomas-qah opened this issue Aug 16, 2023 · 0 comments

Comments

@thomas-qah
Copy link

thomas-qah commented Aug 16, 2023

Two types of PowerPlants are currently configured the codebase: 'normal' power plants and 'HIC' power plants. The latter are power plants that have been added for the HIC project that have their data structured differently than 'regular' power plants:

# Regular PowerPlant
- asset: PowerPlant
  parser: power_plant
  plant_type: INTERNAL_COMBUSTION
  fuel: NATURAL_GAS
  attr_set:
    power: { input: ..., gquery: ..., factor: ..., edr: ...},
    fullLoadHours: { input: ..., gquery: ..., factor: ..., edr: ...},
    marginalCosts: { input: ..., gquery: ..., factor: ..., edr: ...}

# "HIC" PowerPlant
- asset: PowerPlant
  parser: carrier_capacity
  attribute: power
  carrier: [..., ...]
  input: ...
  factor: ...

To differentiate between these PowerPlants at this moment, and possibly also in the future for other types of parsers, we could/should add a attribute to the Parser model so that we can filter between them more easily in the codebase.

A suggested attribute to add could be project, which in the case of these 'HIC' PowerPlants would have the value hic and be left blank/empty for 'regular' power plants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant