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

avoid import * #399

Merged
merged 3 commits into from
Jul 16, 2021
Merged

avoid import * #399

merged 3 commits into from
Jul 16, 2021

Conversation

adammoody
Copy link
Contributor

No description provided.

@adammoody
Copy link
Contributor Author

adammoody commented Jul 16, 2021

@chaseleif , please review and merge these in when you get a chance. As for testing the SLURM class, I was starting to try something simple like:

>>: cat test_slurm.py
from pyfe.resmgr import SLURM

rm = SLURM()
print("jobid:", rm.getjobid())
print("jobstepid:", rm.get_jobstep_id())
print("nodes:", rm.get_job_nodes())
print("down nodes:", rm.get_downnodes())
print("end secs:", rm.get_scr_end_time())

You can then test that in a SLURM allocation like this:

salloc -N1 -ppdebug
python test_slurm.py

Similarly for LSF by replacing "SLURM" with "LSF" in the test script:

bsub -nnodes 1 -q pdebug -Is /bin/bash
python test_lsf.py

@chaseleif chaseleif merged commit 9bab124 into pyfe Jul 16, 2021
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.

2 participants