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

Promote Build Device Option to Enum #527

Merged
merged 32 commits into from
Mar 28, 2024

Conversation

amandarichardsonn
Copy link
Contributor

@amandarichardsonn amandarichardsonn commented Mar 21, 2024

Removing instances of ["CPU","GPU"] with an Device instance

@amandarichardsonn amandarichardsonn marked this pull request as draft March 21, 2024 18:28
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.66%. Comparing base (13d0302) to head (8182e9d).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #527      +/-   ##
===========================================
- Coverage    90.69%   90.66%   -0.04%     
===========================================
  Files           65       65              
  Lines         4494     4497       +3     
===========================================
+ Hits          4076     4077       +1     
- Misses         418      420       +2     
Files Coverage Δ
smartsim/entity/dbobject.py 65.13% <100.00%> (+0.32%) ⬆️
smartsim/entity/ensemble.py 99.25% <100.00%> (+<0.01%) ⬆️
smartsim/entity/model.py 96.05% <100.00%> (+0.02%) ⬆️

... and 1 file with indirect coverage changes

@amandarichardsonn amandarichardsonn marked this pull request as ready for review March 26, 2024 17:03
@amandarichardsonn amandarichardsonn changed the title draft Promote Build Device Option to Enum Mar 26, 2024
@amandarichardsonn amandarichardsonn added area: build Issues related to builds, makefiles, installs, etc type: refactor Issues focused on refactoring existing code short task Issues that can be completed and reviewed quickly labels Mar 26, 2024
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.

Looks great! I have a couple of small suggestions, but looks about ready to go on my end! Feel free to LMK what you think!!

smartsim/_core/_cli/validate.py Outdated Show resolved Hide resolved
smartsim/_core/_cli/validate.py Outdated Show resolved Hide resolved
smartsim/_core/_cli/build.py Outdated Show resolved Hide resolved
smartsim/_core/_cli/build.py Outdated Show resolved Hide resolved
smartsim/_core/_cli/build.py Outdated Show resolved Hide resolved
smartsim/_core/_install/builder.py Show resolved Hide resolved
smartsim/entity/dbobject.py Show resolved Hide resolved
smartsim/entity/dbobject.py Show resolved Hide resolved
tests/test_cli.py Outdated Show resolved Hide resolved
smartsim/_core/_cli/build.py Outdated Show resolved Hide resolved
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.

LGTM pending tests!! Thanks for adding a bit more type safety!

@amandarichardsonn amandarichardsonn merged commit fa0da2c into CrayLabs:develop Mar 28, 2024
44 checks passed
@amandarichardsonn amandarichardsonn deleted the build-enum branch March 28, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Issues related to builds, makefiles, installs, etc short task Issues that can be completed and reviewed quickly type: refactor Issues focused on refactoring existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants