Skip to content

fix: small develop bugs (#709, #711, #712, #713)#714

Open
cailmdaley wants to merge 3 commits intodevelopfrom
fix/develop-bugs
Open

fix: small develop bugs (#709, #711, #712, #713)#714
cailmdaley wants to merge 3 commits intodevelopfrom
fix/develop-bugs

Conversation

@cailmdaley
Copy link
Copy Markdown
Contributor

Four of the five issues filed against develop while I was reviewing PRs this week. Issue #710 is still open pending a direction call (posted findings there).

Changes

Commit Issue File
fix: align canfar_monitor docstring indentation #709 src/shapepipe/canfar/canfar_monitor.py
fix: add argparse to summary_run so -h shows help #711 src/shapepipe/summary_run.py
fix: add astroquery, numba, fitsio, pin setuptools<81 in Dockerfile #712, #713 Dockerfile

Notes

#713 turned out to be a transitive issue: sip_tpv v1.1 (the latest release; upstream appears unmaintained) imports pkg_resources at module load, which setuptools>=81 no longer ships. The setuptools<81 pin restores it. The v2.0 Dockerfile already uses the same pin.

#711 swapped to argparse rather than a 2-line -h/--help guard so summary_run gets real help output. Behavior is preserved: patch is still the required positional, job_exclusive is still optional, and -v/--verbose replaces the old len(args) == 3 heuristic.

#712 picks up astroquery, numba, fitsio unpinned to match the pattern on v2.0's Dockerfile (core stack pinned, auxiliary tools floating). Happy to pin them if preferred — let me know.

Closes #709, #711, #712, #713.

7-space indent on the Params Default docstring opener caused
IndentationError at the 8-space body, breaking canfar_monitor,
canfar_submit_job, canfar_monitor_log, and canfar_run imports.

Closes #709
summary_run previously consumed sys.argv[1] as the 'patch' positional
without parsing, so 'summary_run -h' tried to create a directory
named '-h'. Switch to argparse: help/usage work, required patch is
enforced, optional job_exclusive and --verbose preserved.

Closes #711
Three runtime deps were missing from the develop image, breaking
imports in recently-merged modules:

- astroquery: mask_package.mask, mask_runner
- numba:     ngmix_package.ngmix, ngmix_runner
- fitsio:    uncompress_fits_package.uncompress_fits,
             uncompress_fits_runner

setuptools>=81 dropped pkg_resources, which sip_tpv v1.1 (the latest
release; upstream unmaintained) still imports at module load. That
breaks split_exp_package.split_exp and split_exp_runner on current
setuptools. Pinning setuptools<81 restores pkg_resources until
sip_tpv is either forked or replaced; the v2.0 Dockerfile uses the
same pin.

Closes #712
Closes #713
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.

canfar_monitor.py: IndentationError at line 55 breaks canfar_run and 3 entry points

1 participant