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

Remove init_default function #545

Merged
merged 36 commits into from
Apr 18, 2024

Conversation

amandarichardsonn
Copy link
Contributor

This PR removes the helper function init_default and instead implements traditional type narrowing.

Copy link

codecov bot commented Apr 10, 2024

Codecov Report

Attention: Patch coverage is 42.10526% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 69.74%. Comparing base (f5beb41) to head (62a1339).
Report is 1 commits behind head on develop.

❗ Current head 62a1339 differs from pull request most recent head 1d0a6d8. Consider uploading reports for the commit 1d0a6d8 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #545      +/-   ##
===========================================
- Coverage    71.12%   69.74%   -1.39%     
===========================================
  Files           65       65              
  Lines         4544     4571      +27     
===========================================
- Hits          3232     3188      -44     
- Misses        1312     1383      +71     
Files Coverage Δ
smartsim/_core/utils/__init__.py 100.00% <100.00%> (ø)
smartsim/_core/utils/helpers.py 81.75% <ø> (-8.46%) ⬇️
smartsim/entity/ensemble.py 73.13% <ø> (+8.68%) ⬆️
smartsim/experiment.py 74.55% <100.00%> (+4.14%) ⬆️
smartsim/entity/dbobject.py 53.57% <66.66%> (-0.56%) ⬇️
smartsim/entity/model.py 69.81% <10.00%> (+5.75%) ⬆️

... and 28 files with indirect coverage changes

Copy link
Member

@MattToast MattToast left a comment

Choose a reason for hiding this comment

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

A couple of small requests, but nothing worth holding up approval over! LGTM!!

doc/changelog.rst Outdated Show resolved Hide resolved
doc/changelog.rst Outdated Show resolved Hide resolved
Comment on lines 78 to 79
inputs = inputs or []
outputs = outputs or []
Copy link
Member

Choose a reason for hiding this comment

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

Are these to lines needed? They look redundant to line 84.

@amandarichardsonn amandarichardsonn merged commit 044c4bd into CrayLabs:develop Apr 18, 2024
@amandarichardsonn amandarichardsonn deleted the init-default branch April 18, 2024 23:37
@amandarichardsonn amandarichardsonn added bug: minor A minor bug type: chore Issue outside of general development labels Apr 25, 2024
ankona pushed a commit to ankona/SmartSim that referenced this pull request May 6, 2024
This PR removes the helper function `init_default` and instead
implements traditional type narrowing.

[ reviewed by @MattToast ]
[ committed by @amandarichardsonn ]
ankona pushed a commit to ankona/SmartSim that referenced this pull request May 7, 2024
This PR removes the helper function `init_default` and instead
implements traditional type narrowing.

[ reviewed by @MattToast ]
[ committed by @amandarichardsonn ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: minor A minor bug type: chore Issue outside of general development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants