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

Doc updates #421

Merged
merged 10 commits into from
Aug 29, 2023
Merged

Doc updates #421

merged 10 commits into from
Aug 29, 2023

Conversation

ppinchuk
Copy link
Collaborator

Some minor documentation additions (in particular to the excl_dict doc)

@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.04% 🎉

Comparison is base (497bb7d) 86.87% compared to head (acd6c09) 86.91%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #421      +/-   ##
==========================================
+ Coverage   86.87%   86.91%   +0.04%     
==========================================
  Files         122      122              
  Lines       16810    16823      +13     
==========================================
+ Hits        14603    14622      +19     
+ Misses       2207     2201       -6     
Flag Coverage Δ
unittests 86.91% <ø> (+0.04%) ⬆️

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

Files Changed Coverage Δ
reV/bespoke/bespoke.py 92.02% <ø> (ø)
reV/generation/generation.py 87.55% <ø> (+0.05%) ⬆️
reV/supply_curve/exclusions.py 83.66% <ø> (ø)
reV/supply_curve/sc_aggregation.py 81.58% <ø> (ø)

... and 12 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ppinchuk ppinchuk added the documentation Improvements or additions to documentation label Aug 26, 2023
reV/supply_curve/sc_aggregation.py Outdated Show resolved Hide resolved
"nodata_value": -1
},
"partial_setback": {
"use_as_weights": 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a boolean True to avoid confusion with a weight multiplier of 1.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch; I updated to True


excl_dict = {
"typical_exclusion": {
"exclude_values": 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this docstring pops up one more place so comment is general... Can we have this not be 0 or 1 to avoid confusion with a boolean option? I also have a comment on the confusion of a boolean below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, great point. Updated in both places.

"include_range": [0, 20]
},
"developable_land": {
"force_include_values": 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, can we make this 42 or something so its not confused with a bool?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you. Updated to 42 ;)

@ppinchuk
Copy link
Collaborator Author

ppinchuk commented Aug 29, 2023

Awesome comments, thank you!

The linter error should stop showing up on the main branch

@ppinchuk ppinchuk merged commit 2513c2e into main Aug 29, 2023
7 of 10 checks passed
@ppinchuk ppinchuk deleted the pp/doc_updates branch August 29, 2023 21:12
github-actions bot pushed a commit that referenced this pull request Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants