Skip to content

Commit fef58f9

Browse files
Merge branch 'main' into 2025_04_28
2 parents 17caa73 + 35f3442 commit fef58f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pipeline.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,15 @@ flush(stdout);
244244
"_")
245245
# probably change to FITS to make astronomers happy (this JLD2, which is HDF5, is just for debugging)
246246

247-
metadata = Dict([
247+
metadata = Dict(
248248
"cartid" => cartid,
249249
"nread_used" => nread_used,
250250
"nread_total" => nread_total,
251251
"mjd_mid_exposure_old" => value(mjd_mid_exposure_old),
252252
"mjd_mid_exposure_rough" => value(mjd_mid_exposure_rough),
253253
"mjd_mid_exposure_precise" => value(mjd_mid_exposure_precise),
254254
"mjd_mid_exposure" => value(mjd_mid_exposure)
255-
])
255+
)
256256
fname = joinpath(outdir, "apred/$(mjd)/" * outfname * ".h5")
257257
safe_jldsave(fname, metadata; dimage, ivarimage, chisqimage, CRimage, saturation_image)
258258
return fname
@@ -273,7 +273,7 @@ flush(stdout);
273273
nread_used = metadata["nread_used"]
274274

275275
### dark current subtraction
276-
darkRateflst = sort(glob("darkRate_$(tele)_$(chip)_*", dirname(fname)))
276+
darkRateflst = sort(glob("darkRate_$(tele)_$(chip)_*.h5", dirname(fname)))
277277
if length(darkRateflst) != 1
278278
error("I didn't just find one darkRate file for mjd $mjd, I found $(length(darkRateflst))")
279279
end
@@ -284,7 +284,7 @@ flush(stdout);
284284
# should I be modifying ivarimage? (uncertainty on dark rate in quad... but dark subtraction has bigger sys)
285285

286286
### flat fielding
287-
flatFractionflst = sort(glob("flatFraction_$(tele)_$(chip)_*", dirname(fname)))
287+
flatFractionflst = sort(glob("flatFraction_$(tele)_$(chip)_*.h5", dirname(fname)))
288288
if length(flatFractionflst) != 1
289289
error("I didn't just find one flatFraction file for mjd $mjd, I found $(length(flatFractionflst))")
290290
end

pipeline_2d_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ flush(stdout);
337337
println("Solving skyline wavelength solution:");
338338
flush(stdout);
339339
all1DObjectSkyPeaks = replace.(
340-
replace.(all1DObject, "ar1Dcal" => "skyLinePeaks"), "ar1D" => "skyLinePeaks")
340+
replace.(all1DObject, "ar1Dcal" => "skyLinePeaks"), "ar1D" => "skyLinePeaks")
341341
@showprogress pmap(get_and_save_sky_wavecal, all1DObjectSkyPeaks)
342342

343343
## TODO when are we going to split into individual fiber files? Then we should be writing fiber type to the file name

0 commit comments

Comments
 (0)