Hi there:
I’m writing a function to autocalibrate frames and it works great - until it doesn’t. The core code is:
# Copy files to working directory with sequential naming for i, file_path in enumerate(file_paths): dest_file = os.path.join(temp_dir, f"{cal_type}{i+1:05d}.fits") shutil.copy2(file_path, dest_file) # Convert to sequence - specify unique output name to avoid conflicts sequence_name = f"{cal_type}_sequence" cmd.convert(cal_type, out=sequence_name, fitseq=True) if progress_callback: progress_callback(70, 100, f"Stacking {cal_type} frames...") # Stack based on calibration type output_name = os.path.splitext(os.path.basename(output_path))[0] if cal_type == 'bias': # Stack bias frames without normalization using rejection cmd.stack(sequence_name, type="rej", sigma_low=3, sigma_high=3, norm="no") elif cal_type == 'dark': # Stack dark frames without normalization using rejection cmd.stack(sequence_name, type="rej", sigma_low=3, sigma_high=3, norm="no") elif cal_type == 'flat': # Stack flat frames with multiplicative normalization using rejection cmd.stack(sequence_name, type="rej", sigma_low=3, sigma_high=3, norm="mul")
My problem is a stack of 96 bias frames is stopping at frame 33 and sitting there forever… is there any way to get logging for whats happening internal to cmd.stack to see whats happening? The file itself can be opened and is unremarkable.