Skip to content

fixing aperture photometry bug for DES images#406

Open
djones1040 wants to merge 16 commits into
mainfrom
djones-global-par
Open

fixing aperture photometry bug for DES images#406
djones1040 wants to merge 16 commits into
mainfrom
djones-global-par

Conversation

@djones1040

@djones1040 djones1040 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Fixes #381 and #409. May also have improved robustness of DES downloads (I hope), at cost of a little more latency -- now checks across two versions and tries twice when URLs exist.

Description of the Change

  1. Incorporated photutils fix for legacy survey apertures
  2. Included legacy survey DR10
  3. Updated how legacy survey downloads works, resulting in fewer download timeouts.
  4. Now using astropy version 7.2.0, prospector 1.4.1, photutils dev version (until latest release)

Checklist

Please check all that apply to your proposed changes

  • HTML code change
  • Added package dependency
  • Added data
  • Changed django model
  • Documentation change
  • Added or changed TaskRunner

Additional context

@djones1040 djones1040 marked this pull request as ready for review June 11, 2026 20:17
Comment thread app/host/cutouts.py Outdated
@manning-ncsa

Copy link
Copy Markdown
Collaborator

There are lots of styling issues with the changes: excess indentation, trailing spaces, empty lines with only spaces, spaces missing or added where they shouldn't be around equal signs, insufficient newlines between functions or class methods. I use Flake8 and autopep8 extensions in VS Code to help me identify style violations.

I'm going to push a code linting commit since most of it can be auto-corrected.

image

Comment thread app/host/cutouts.py Outdated
Comment thread app/host/cutouts.py Outdated
Comment thread app/host/cutouts.py Outdated
Comment thread app/host/cutouts.py
if not len(valid_urls):
return None
# we need both the depth and the image
time.sleep(1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is there an artificial delay here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

believe we found that these 1-second delays improved the success rate of the noirlab API in previous versions -- think this is basically inherited from previous versions

Change transient to 2026dgt
Use multiprocessing for parallel downloads
Discard data instead of writing to disk
Do not fail when image is not available
@manning-ncsa

Copy link
Copy Markdown
Collaborator

@djones1040 Please review the update to the changelog and the version bump and update as needed.

@manning-ncsa

Copy link
Copy Markdown
Collaborator

Actually wait on that. Your djones-global-par did not merge the v1.13.0 (66d7b47) release you made recently.

@manning-ncsa

Copy link
Copy Markdown
Collaborator

FYI the unit tests pass as off commit 0ec9eba

@djones1040

Copy link
Copy Markdown
Collaborator Author

Actually wait on that. Your djones-global-par did not merge the v1.13.0 (66d7b47) release you made recently.

believe that's in here https://github.com/scimma/blast/blob/djones-global-par/app/api/serializers.py line 21, unless you were the one who fixed that

@manning-ncsa

Copy link
Copy Markdown
Collaborator

Actually wait on that. Your djones-global-par did not merge the v1.13.0 (66d7b47) release you made recently.

believe that's in here https://github.com/scimma/blast/blob/djones-global-par/app/api/serializers.py line 21, unless you were the one who fixed that

Right. When I made the first comment, the recent changes on main had not been merged into this feature branch you created beforehand. So I merged it in commit 9cd5209 before you looked at it.

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.

Upgrade to legacy survey DR10

2 participants