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

Allows non-integer minutes_per_sim #396

Merged
merged 3 commits into from Oct 10, 2023
Merged

Allows non-integer minutes_per_sim #396

merged 3 commits into from Oct 10, 2023

Conversation

nmerket
Copy link
Member

@nmerket nmerket commented Oct 10, 2023

Fixes #377.

I tested it on Eagle and it has the intended effect.

@nmerket nmerket added this to the v2023.10.0 milestone Oct 10, 2023
@github-actions
Copy link

File Coverage
All files 84%
base.py 89%
eagle.py 79%
exc.py 57%
local.py 50%
postprocessing.py 84%
utils.py 96%
sampler/base.py 79%
sampler/downselect.py 33%
sampler/precomputed.py 93%
sampler/residential_quota.py 61%
test/test_docker.py 33%
test/test_validation.py 97%
workflow_generator/base.py 90%
workflow_generator/commercial.py 53%
workflow_generator/residential_hpxml.py 84%

Minimum allowed coverage is 33%

Generated by 🐒 cobertura-action against 7cee175

@nmerket nmerket requested a review from afontani October 10, 2023 21:43
@nmerket nmerket self-assigned this Oct 10, 2023
@@ -39,7 +39,7 @@ aws-emr-spec:

hpc-spec:
account: str(required=True)
minutes_per_sim: int(max=480, required=False)
minutes_per_sim: num(min=0.05, max=480, required=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like we will need another 10x reduction before this becomes an issue. Probably safe.

@@ -195,6 +194,33 @@ def test_qos_high_job_submit(mock_subprocess, basic_residential_project_file, mo
assert '--qos=high' in mock_subprocess.run.call_args[0][0]


def test_queue_jobs_minutes_per_sim(mocker, basic_residential_project_file, monkeypatch):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am glad to see this test.

@nmerket nmerket merged commit fdbeb62 into develop Oct 10, 2023
6 checks passed
@nmerket nmerket deleted the allow_fast_sims branch October 10, 2023 23:03
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.

Allow minutes_per_sim to be less than a minute.
2 participants