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

[Feature Request] Autohandle units for CapacityToActivity #19

Open
6 tasks
samgdotson opened this issue Sep 16, 2021 · 0 comments
Open
6 tasks

[Feature Request] Autohandle units for CapacityToActivity #19

samgdotson opened this issue Sep 16, 2021 · 0 comments
Labels
Comp:Core This issue has to do with the main bulk of the code or document. (methods, main content) Comp:Input This issue has to do with the input component of the code or document. (input parameters, prep) Difficulty:2-Challenging This issue may be complex or require specialized skills. Priority:3-Desired This work is important, but not urgent. Status:1-New No one has claimed this issue yet. It is in need of solving. Type:Feature New feature or feature request

Comments

@samgdotson
Copy link
Collaborator

Currently, users must manually supply a value for the capacity_to_acitivity of each technology. This should be handled automatically with a tool such as Pint.

Technologies and commodities each have units specified as strings. Ideally units would be Pint objects that can be manipulated easily.

**The capacity to activity value is understood as "the amount of a commodity that can be produced by a certain capacity in 1 year." It is not related to capacity factor, it just tells Temoa how the units shakeout."

This issue can be closed when

  • there is a file in utils/ called units.py
  • Pint (or similar tool) has been added to the requirements.txt file.
  • the units.py file has functions to convert units and return a capacity to activity.
  • there are corresponding tests for units.py in the tests/ folder.

One of the following

  • the function create_capacity_to_activity() in db_creator.py should be updated to automate the unit conversion
    OR
  • the Technology class should have a function that automatically calculates the C2A.
@samgdotson samgdotson added Comp:Core This issue has to do with the main bulk of the code or document. (methods, main content) Comp:Input This issue has to do with the input component of the code or document. (input parameters, prep) Difficulty:2-Challenging This issue may be complex or require specialized skills. Priority:3-Desired This work is important, but not urgent. Status:1-New No one has claimed this issue yet. It is in need of solving. Type:Feature New feature or feature request labels Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Comp:Core This issue has to do with the main bulk of the code or document. (methods, main content) Comp:Input This issue has to do with the input component of the code or document. (input parameters, prep) Difficulty:2-Challenging This issue may be complex or require specialized skills. Priority:3-Desired This work is important, but not urgent. Status:1-New No one has claimed this issue yet. It is in need of solving. Type:Feature New feature or feature request
Projects
None yet
Development

No branches or pull requests

1 participant