Skip to content

Canfar Python Libraries#702

Open
martinkilbinger wants to merge 54 commits intoCosmoStat:developfrom
martinkilbinger:p9
Open

Canfar Python Libraries#702
martinkilbinger wants to merge 54 commits intoCosmoStat:developfrom
martinkilbinger:p9

Conversation

@martinkilbinger
Copy link
Contributor

@martinkilbinger martinkilbinger commented Feb 2, 2026

Summary

This PR updates job hanling on canfar to the new canfar python library system.

This comes with job submission and monitoring classes and scripts.

New tiles (P9) were added to the CFIS tile list.

Closes some old issues #669 .

Reviewer Checklist

Reviewers should tick the following boxes before approving and merging the PR.

  • The PR targets the develop branch
  • The PR is assigned to the developer
  • The PR has appropriate labels
  • The PR is included in appropriate projects and/or milestones
  • The PR includes a clear description of the proposed changes
  • If the PR addresses an open issue the description includes "closes #"
  • The code and documentation style match the current standards
  • Documentation has been added/updated consistently with the code
  • All CI tests are passing
  • API docs have been built and checked at least once (if relevant)
  • All changed files have been checked and comments provided to the developer
  • All of the reviewer's comments have been satisfactorily addressed by the developer

@martinkilbinger
Copy link
Contributor Author

Check again please @cailmdaley, I answered to all points of your PR report. Thanks!

martinkilbinger and others added 2 commits February 6, 2026 07:48
- canfar_monitor: "Montior" typo, try/except/else flow for bulk destroy
- canfar_submit: "debut_out" dict key typo
- uncompress_fits: header assignment inside if-name guard
- distribute_tiles: check arg value not flag name for dry_run

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cailmdaley
Copy link
Contributor

Hey Martin, thanks for the fixes! I took the liberty of pushing a few more small ones I spotted while verifying:

  • canfar_monitor.py — "Montior" → "Monitor" (the old typo became a new one), and the bulk destroy try/except still printed "Success" unconditionally (added an else: clause)
  • canfar_submit.py — dict key debut_outdebug_out
  • uncompress_fits.pyheader[name] = (value, comment) was still outside the if name: guard
  • distribute_tiles.py — dry_run check was comparing the flag name (-n) against ("0", "1") instead of the flag's value

Let me know if I made any mistakes. Have a nice weekend!

@martinkilbinger martinkilbinger marked this pull request as ready for review February 7, 2026 09:10
Copy link
Member

@sfarrens sfarrens left a comment

Choose a reason for hiding this comment

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

Hey @martinkilbinger sorry for the delay. I am a bit rusty on ShapePipe 😅, so I may have missed something, but overall the proposed changes look fine. I opened a few threads to resolve some minor issues.

@martinkilbinger
Copy link
Contributor Author

please check again @sam and @cail, I implemented your suggestions and comments.

@sfarrens sfarrens added documentation Improvements or additions to documentation enhancement New feature or request bug fix clean up labels Feb 11, 2026
from shapepipe.utilities import summary

from summary_params_pre_v2 import *
from shapepipe.utilities impot summary_params_pre_v2 as summary_params
Copy link
Contributor

Choose a reason for hiding this comment

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

Two syntax errors here from the import * removal:

  • Line 8: impotimport
  • Line 20: trailing colon on verbose = len(args) == 3: — should be verbose = len(args) == 3

Both will crash on import.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@github-project-automation github-project-automation bot moved this from To do to In progress in ShapePipe Dev Feb 13, 2026
@sfarrens
Copy link
Member

All good from my side. Once you have the 👍 from @cailmdaley, feel free to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix clean up documentation Improvements or additions to documentation enhancement New feature or request

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

[BUG] canfar minor issues

3 participants