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 an Operator class #98

Merged
merged 84 commits into from
Aug 29, 2023
Merged

Add an Operator class #98

merged 84 commits into from
Aug 29, 2023

Conversation

khaeru
Copy link
Owner

@khaeru khaeru commented Aug 17, 2023

This class consolidates, with the callable/function itself, any conveniences, special handling, or logic related to adding to a Computer tasks that use the callable.

PR checklist

  • Checks all ✅
  • Update documentation
  • Update doc/whatsnew.rst

@khaeru khaeru added the enh New feature or request label Aug 17, 2023
@khaeru khaeru self-assigned this Aug 17, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2023

Codecov Report

Merging #98 (6c3d4e7) into main (0d4a75e) will decrease coverage by 0.46%.
The diff coverage is 95.60%.

@@             Coverage Diff             @@
##              main      #98      +/-   ##
===========================================
- Coverage   100.00%   99.54%   -0.46%     
===========================================
  Files           43       44       +1     
  Lines         3524     3696     +172     
===========================================
+ Hits          3524     3679     +155     
- Misses           0       17      +17     
Files Changed Coverage Δ
genno/testing/__init__.py 100.00% <ø> (ø)
genno/compat/pyam/__init__.py 92.85% <75.00%> (-7.15%) ⬇️
genno/util.py 98.75% <87.50%> (-1.25%) ⬇️
genno/core/computation.py 89.47% <89.47%> (ø)
genno/core/key.py 96.15% <91.93%> (-3.85%) ⬇️
genno/config.py 98.68% <92.30%> (-1.32%) ⬇️
genno/core/computer.py 98.51% <95.50%> (-1.49%) ⬇️
genno/compat/plotnine/plot.py 100.00% <100.00%> (ø)
genno/compat/pyam/computations.py 100.00% <100.00%> (ø)
genno/computations.py 100.00% <100.00%> (ø)
... and 7 more

@khaeru khaeru linked an issue Aug 18, 2023 that may be closed by this pull request
@khaeru khaeru changed the title Add an Operator abstract class Add an Operator class Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enh New feature or request
Projects
None yet
2 participants