class craftutils.observation.epoch.Epoch(craftutils.observation.epoch.Pipeline)

Public members

instrument_name = 'dummy-instrument'
mode = 'dummy_mode'
Epoch(param_path: str | None = None, name: str | None = None, ...)

Initialize self. See help(type(self)) for accurate signature.

is_excluded(frame: Image | str)
__str__()

Return str(self).

__repr__()

Return repr(self).

date_str(include_time: bool = False)
mjd()
classmethod stages()
proc_initial_setup(output_dir: str, **kwargs)
load_output_file(**kwargs) dict

Loads the output .yaml file, which contains various values derived from this Epoch, using the object’s output_file attribute (which is a path to the file).

set_program_id(program_id: str)
set_date(date: str | Time)
set_target(target: str)
get_binning()
set_binning(binning: str)
get_binning_std()
set_binning_std(binning: str)
get_path(key: str)
get_master_bias(chip: int)
get_master_flat(chip: int, fil: str)
classmethod sort_by_chip(images: list)
add_frame_raw(raw_frame: ImagingImage | str)
add_frame_reduced(reduced_frame: Image)
add_coadded_image(img: str | Image, key: str, **kwargs)
sort_frame(frame: Image, sort_key: str | None = None)
classmethod default_params()
classmethod new_yaml(name: str, path: str | None = None, **kwargs)
stage_params : dict
stage_output_dirs = True
add_log(action: str, method=None, method_args=None, ...)
set_path(key: str, value: str)
classmethod enumerate_stages(show: bool = True)
query_stage(message: str, stage_name: str, n: float, ...)

Helper method for asking the user if we need to do this stage of processing. If self.do is True, skips the query and returns True.

check_done(stage: str)
pipeline(no_query: bool = False, **kwargs)

Performs the pipeline methods given in stages() for this instance.

update_output_file()
update_param_file(param: str)

Epoch classes

frame_class

alias of Image