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

hpc parameter+ #53

Open
wants to merge 52 commits into
base: casa6
Choose a base branch
from
Open

hpc parameter+ #53

wants to merge 52 commits into from

Conversation

mb010
Copy link

@mb010 mb010 commented Oct 15, 2021

I aim to write code that can generalise to other slurm facilities within ~30min of someone cloning the code.
With a few minor changes / improvements / bug fixes the primary change is the known_hpc.cfg file which contains all global variables previously in processMeerKAT.py and a few parameters to help build system specific sbatch files. This should allow users to add the limits of their hpc facility and have their submissions checked against those values, instead of the ilifu limits (node, mem, cores etc.).

@mb010 mb010 marked this pull request as draft November 1, 2021 08:59
mb010 added 12 commits November 9, 2021 09:57
Maintain cli in recursive processMeerKAT.py calls.
Added call parameters to avoid que pair (QP) errors.
Saving selected HPC name in config during build to allow for future use without setting hpc explicitly in CLI. i.e. for running.
Importing `processMeerKAT.py` and `config_parser.py` from the parent directory has caused many issues. Using this fix is not ideal, but it should be a consistent fix across systems.
Using  hpc option saved in built config to remove global dependency by reading in known hpc config.
@AlecThomson
Copy link

+1 to this change! I've just opened a PR on the PR with some minor fixes I found.

One outlying issue here is that now the help screen is pretty bare, e.g.

> processMeerKAT.py -h
usage: /home/tho822/repos/idia-pipeline/processMeerKAT/processMeerKAT.py
       [-h] [--hpc name]

Process MeerKAT data via CASA MeasurementSet. Version: 1.1

optional arguments:
  -h, --help  show this help message and exit
  --hpc name  Name of hpc facility being used. If not known to
              processMeerKAT/known_hpc.cfg slurm limits are functionally
              removed [default: ilifu].

I think the new arg parsing messes with the help output.

A similar issue was talked about here, but I'm not sure if that solution would really help here.

@AlecThomson
Copy link

Ping @mb010 @Jordatious @Kitchi,

I've got a big fix for this PR in mb010#2. It'd be great if this could be reviewed an merged, if approved.

@mb010 mb010 marked this pull request as ready for review August 9, 2024 10:34
@mb010
Copy link
Author

mb010 commented Aug 9, 2024

Any chance this can be merged? I don't know who owns / holds responsibility for this repo, but if its functionally dead, this feature has been tested and will help others to use it in the future. :)

Thanks!

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.

4 participants