ccatkidlib.scripts.live_plot package
Submodules
ccatkidlib.scripts.live_plot.live_detector module
- class ccatkidlib.scripts.live_plot.live_detector.LiveDetector(*args, **kwargs)
Bases:
DetectorConstructor for Detector. Creates ccatkidlib data objects (
VNA,Target,Timsetream)Note
A Detector object can be initialized without a
Timestreamobject but must always have aTargetobject.If only the information to load a timestream is provided, an attempt will be made to find the target sweep file corresponding to the timestream
- Parameters:
com_to (str) – Drone that took the data. In form ‘<board>.<drone>’
analysis_cfg (str, optional) – Path to analysis configuration file. Defaults to analysis configuration file in ccatkidlib/ccatkidlib/analysis
dets (int | list[int], optional) – Which detectors to load; -1 to load all detectors. Defaults to -1
noise_tones (int | list[int] | None, optional) – Indicies of noise tones (tones not placed on detectors). Defaults to None
cable_delay (float | None, optional) – Cable delay of full network. Defaults to None
stream (Timestream | None, optional) – Detector
Timestreamobject. Defaults to Nonestream_path (str | pathlib.PosixPath | list[str] | list[pathlib.PosixPath] | None, optional) – Data path to detector timestream files. Defaults to None
stream_timestamp (int | str | None, optional) – Timestamp of detector timestream files. Defaults to None
targ (Target | None, optional) – Detector
Targetobject. Defaults to Nonetarg_path (str | pathlib.PosixPath | None, optional) – Data path to detector target sweep file. Defaults to None
targ_timestamp (int | str | None, optional) – Timestamp of detector target sweep file. Defaults to None
vna (VNA | None, optional) – Detector
VNAobject. Defaults to Nonevna_path (str | pathlib.PosixPath | None, optional) – Data path to detector VNA sweep file. Defaults to None
vna_timestamp (int | str | None, optional) – Timestamp of detector VNA sweep file. Defaults to None
**kwargs – Key word arguments for finding data files. See below:
root_data_dir (str, optional) – Root directory where data is stored. Defaults to that specified in analysis config
data_dir (str, optional) – Directory where data is stored
date (str, optional) – Date data was taken
sess_id (str, optional) – ccatkidlib session ID of data
- class ccatkidlib.scripts.live_plot.live_detector.LiveTimestream(*args, **kwargs)
Bases:
TimestreamConstructor for Timestream.
- Parameters:
com_to (str) – Which board and drone were used to take the timestreams (in form
bid.drid)tones (list) – List of tones for which to load timestreams
start (float) – Start time in seconds (0 seconds is beginning of timestream)
end (float) – End time in seconds (relative to start time, -1 for no end time)
analysis_cfg (str) – File path of analysis configuration file. Defaults to analysis configuration file in ccatkidlib/analysis directory.
ccatkidlib.scripts.live_plot.live_utils module
- ccatkidlib.scripts.live_plot.live_utils.load_frame(frame, detector=None, q=None)
- ccatkidlib.scripts.live_plot.live_utils.read_timestream(ip_address: str, port: str | int, detector)