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

bug(experiment): Comp types not handled correctly #147

Merged
merged 1 commit into from
Jun 4, 2022

Conversation

gegnew
Copy link
Contributor

@gegnew gegnew commented May 2, 2022

The getter and setter methods for Experiment.active_compensation do not
handle special compensation types correctly. This fixes the bug and adds
tests.

See #146

cellengine/resources/experiment.py Show resolved Hide resolved
cellengine/resources/experiment.py Outdated Show resolved Hide resolved
@gegnew gegnew force-pushed the ge/146-comp-types branch 5 times, most recently from 076c7ff to 09ef48d Compare May 5, 2022 15:34
@gegnew
Copy link
Contributor Author

gegnew commented May 5, 2022

Linting borked until #149

@gegnew gegnew force-pushed the ge/146-comp-types branch 3 times, most recently from 8364679 to d5070f2 Compare May 10, 2022 12:17
cellengine/__init__.py Outdated Show resolved Hide resolved
cellengine/resources/experiment.py Outdated Show resolved Hide resolved
cellengine/resources/experiment.py Outdated Show resolved Hide resolved
cellengine/resources/experiment.py Outdated Show resolved Hide resolved
cellengine/resources/experiment.py Outdated Show resolved Hide resolved
cellengine/resources/experiment.py Outdated Show resolved Hide resolved
@zbjornson
Copy link
Member

Looks good but needs a rebase.

@codecov-commenter
Copy link

codecov-commenter commented May 23, 2022

Codecov Report

Merging #147 (d32c370) into master (786aa82) will increase coverage by 0.30%.
The diff coverage is 98.11%.

@@            Coverage Diff             @@
##           master     #147      +/-   ##
==========================================
+ Coverage   93.33%   93.63%   +0.30%     
==========================================
  Files          67       67              
  Lines        2879     2905      +26     
==========================================
+ Hits         2687     2720      +33     
+ Misses        192      185       -7     
Flag Coverage Δ
unittests 93.63% <98.11%> (+0.30%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cellengine/resources/experiment.py 87.76% <94.73%> (+3.31%) ⬆️
cellengine/__init__.py 100.00% <100.00%> (ø)
tests/unit/resources/test_experiment.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 786aa82...d32c370. Read the comment docs.

@gegnew
Copy link
Contributor Author

gegnew commented May 25, 2022

Had to change Literal[-1] in the contant type hints to int because mkdocstrings/griffe doesn't like it 🙁

mkdocstrings/griffe#71

@zbjornson zbjornson merged commit eed7d17 into master Jun 4, 2022
@zbjornson zbjornson deleted the ge/146-comp-types branch June 4, 2022 22:11
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

Successfully merging this pull request may close these issues.

None yet

3 participants