Skip to content

Commit

Permalink
bug squashing
Browse files Browse the repository at this point in the history
  • Loading branch information
scexao6 committed Sep 6, 2024
1 parent d99e1c3 commit 93b1276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vampires_dpp/cli/centroids.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def centroid(config: Path, filenames, num_proc, outdir, manual, plot):
else:
name = paths.aux / f"{pipeline_config.name}_raw_psf"
# choose 4 to 20 files, depending on file size (avoid loading more than 500 frames, ~2GB of MBI)
number_files = max(4, min(10, 500 // table["NAXIS3"].median()))
number_files = int(max(4, min(10, 500 // table["NAXIS3"].median())))
input_hduls_dict = create_raw_input_psfs(table, basename=name, max_files=number_files)
centroids = {}
for key, input_hdul in input_hduls_dict.items():
Expand Down
2 changes: 1 addition & 1 deletion src/vampires_dpp/pdi/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def polarization_calibration_triplediff(filenames: Sequence[str]):
header_dict[key] = prim_hdr
cube_dict[key] = cube_derot
cube_errs[key] = cube_err_derot

assert len(cube_dict) == 16
# reproject cam 2 onto cam 1
for subkey in itertools.product((0.0, 45.0, 22.5, 67.5), ("A", "B")):
key1 = (subkey[0], subkey[1], 1)
Expand Down

0 comments on commit 93b1276

Please sign in to comment.