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

JP-3788: Tweak spaxel debugging #8913

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/8913.cube_build.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tweak the cube_build spaxel debugging option to provide filename info and match outputs to the stated ordering.
2 changes: 2 additions & 0 deletions jwst/cube_build/ifu_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@
linear = 0
if self.linear_wavelength:
linear = 1
if debug_cube_index >= 0:
log.info(f"Input filename: {input_model.meta.filename}")

Check warning on line 683 in jwst/cube_build/ifu_cube.py

View check run for this annotation

Codecov / codecov/patch

jwst/cube_build/ifu_cube.py#L683

Added line #L683 was not covered by tests
result = cube_wrapper_driz(instrument, flag_dq_plane,
start_region, end_region,
self.overlap_partial, self.overlap_full,
Expand Down
2 changes: 1 addition & 1 deletion jwst/cube_build/src/cube_match_sky_driz.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ int match_driz(double *xc, double *yc, double *zc,
// Keep print statement in code - used for debugging
if (index_cube == debug_cube_index){
printf("spaxel, flux, x, y [count starting at 0] %i %f %f %f \n ", index_cube,
x_det[k], y_det[k], flux[k]);
flux[k], x_det[k], y_det[k]);
}


Expand Down
Loading