API
ska_tmc_cdm.jsonschema
ska_tmc_cdm.jsonschema.json_schema
The JSON Schema module contains methods for fetching version-specific JSON schemas using interface uri and validating the structure of JSON against these schemas.
- class JsonSchema[source]
JSON Schema use for validating the structure of JSON data
- static get_schema_by_uri(uri: str) ska_schemas.schema.Schema[source]
Retrieve JSON Schemas from remote server.
- Parameters:
uri – Interface Version URI
- Returns:
Interface schema
- Raises:
SchemaNotFound if URI does not resolve to a schema
- static validate_schema(uri: str, instance: dict, strictness=None) None[source]
Validate an instance dictionary under the given schema.
strictness can be set from 0-2. Values equal:
0: permissive warnings 1: permissive errors and strict warnings 2: strict errors
- Parameters:
uri – The schema to validate with
instance – The instance to validate
strictness – strictness level
- Returns:
None, in case of valid data otherwise, it raises an exception.
ska_tmc_cdm.messages
The ska_tmc_cdm.messages package contains modules that maps Tango structured arguments to Python.
ska_tmc_cdm.messages.central_node
The ska_tmc_cdm.messages.central_node package holds modules that translate TMC Central Node requests and responses to and from Python.
ska_tmc_cdm.messages.central_node.assign_resources
The messages module provides simple Python representations of the structured request and response for the TMC CentralNode.AssignResources command.
- class AssignResourcesRequest(*args: Any, **kwargs: Any)[source]
AssignResourcesRequest is a Python representation of the structured argument for a TMC CentralNode.AssignResourcesRequest request. :param interface: url string to determine JsonSchema version, defaults to https://schema.skao.int/ska-tmc-assignresources/2.4 for Mid and https://schema.skao.int/ska-low-tmc-assignresources/4.3 for Low if not set :param transaction_id: ID for tracking requests :param subarray_id: the numeric SubArray ID (1..16) :param dish: object holding the DISH resource allocation for this request. :param sdp_config: sdp configuration :param mccs: MCCS subarray allocation :raises ValueError: if mccs is allocated with dish
- classmethod from_dish(subarray_id: int, dish_allocation: DishAllocation, sdp_config: SDPConfiguration | None = None, interface: str | None = None, transaction_id: str | None = None)[source]
Create a new AssignResourcesRequest object. :param subarray_id: the numeric SubArray ID (1..16) :param dish_allocation: object holding the DISH resource allocation for this request. :param sdp_config: sdp configuration :return: AssignResourcesRequest object
- classmethod from_mccs(subarray_id: int, mccs: MCCSAllocate, sdp_config: SDPConfiguration | None = None, interface: str | None = None, transaction_id: str | None = None)[source]
Create a new AssignResourcesRequest object.
- Parameters:
subarray_id – the numeric SubArray ID (1..16)
mccs – MCCS subarray allocation
sdp_config – SDP configuration
interface – url string to determine JsonSchema version
- Returns:
AssignResourcesRequest object
- class AssignResourcesResponse(*args: Any, **kwargs: Any)[source]
AssignResourcesResponse is a Python representation of the structured response from a TMC CentralNode.AssignResources request.
- class TelModel(*args: Any, **kwargs: Any)[source]
TelModel represents the Telescope model specification (e.g. array layout to use for delay and UVW calculations) as a part of an AssignResources request and response.
- Parameters:
source_uris – The list of source URI’s to use to look up telescope model data.
array_layout_path – The path of array layout and static delays in telescope model.
ska_tmc_cdm.messages.central_node.release_resources
The release_resources module provides simple Python representations of the structured request and response for a TMC CentralNode.ReleaseResources call.
- class ReleaseResourcesRequest(*args: Any, **kwargs: Any)[source]
ReleaseResourcesRequest is a Python representation of the structured request for a TMC CentralNode.ReleaseResources call.
- Parameters:
interface – url string to determine JsonSchema version, defaults to https://schema.skao.int/ska-tmc-releaseresources/2.1 if not set
transaction_id – ID for tracking requests
subarray_id – the numeric SubArray ID (1..16)
release_all – True to release all sub-array resources, False to release just those resources specified as other arguments
dish_allocation – object holding the DISH resource allocation to release for this request.
ska_tmc_cdm.messages.central_node.common
The messages module provides simple Python representations of the structured request and response for the TMC CentralNode.AssignResources command.
ska_tmc_cdm.messages.central_node.sdp
The messages module provides simple Python representations of the structured request and response for the TMC CentralNode.AssignResources command.
- class BeamConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Dependencies for Beam Configuration
- Parameters:
beam_id – Name to identify the beam within the SDP configuration.
function – Identifies the type and origin of the generated beam data.
search_beam_id – search_beam_id
timing_beam_id – timing_beam_id
vlbi_beam_id – vlbi_beam_id
visibility_beam_id – visibility_beam_id
- class Channel(*args: Any, **kwargs: Any)[source]
Class to hold Channels for ScanType
Create a new Channel object.
- Parameters:
count – Number of channels
start – First channel ID
stride – Distance between subsequent channel IDs
freq_min – Lower bound of first channel
freq_max – Upper bound of last channel
link_map – Channel map that specifies which network link is going to get used to send channels to SDP. Intended to allow SDP to optimize network and receive node configuration.
spectral_window_id – spectral_window_id
- class ChannelConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Dependencies for Channel Configuration
- Parameters:
channels_id – channels_id
spectral_windows – spectral_windows
- class EBScanType(*args: Any, **kwargs: Any)[source]
Class to hold EBScanType configuration
- Parameters:
scan_type_id – scan_type_id
beams – Beam parameters for the purpose of the Science Data Processor.
derive_from – derive_from
- class EBScanTypeBeam(*args: Any, **kwargs: Any)[source]
Class to hold EBScanTypeBeam Configuration
- Parameters:
field_id – field_id
channels_id – channels_id
polarisations_id – polarisations_id
- class ExecutionBlockConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold ExecutionBlock configuration
- Parameters:
eb_id – Execution block ID to associate with processing
max_length – Hint about the maximum observation length to support by the SDP.
context – Free-form information from OET, see ADR-54
beams – Beam parameters for the purpose of the Science Data Processor.
channels – Spectral windows per channel configuration.
polarisations – Polarisation definition.
fields – fields / Targets
scan_types – Scan types. Associates scans with per-beam fields & channel configurations
- class FieldConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Field configuration
- Parameters:
field_id – field_id
pointing_fqdn – pointing_fqdn
phase_dir – Phase direction
- class PbDependency(*args: Any, **kwargs: Any)[source]
Class to hold Dependencies for ProcessingBlock
- Parameters:
pb_id – Unique identifier for this processing block
kind – The kind of processing script (realtime or batch)
- class PhaseDir(*args: Any, **kwargs: Any)[source]
Class to hold PhaseDir configuration
- Parameters:
ra – Right Ascension in degrees (see ADR-49)
dec – Declination in degrees (see ADR-49)
reference_time – reference_time,
reference_frame – Specification of the reference frame or system for a set of pointing coordinates (see ADR-49)
- class PolarisationConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Dependencies for Polarisation Configuration
- Parameters:
polarisations_id – Polarisation definitions id
corr_type – corr_type
- class ProcessingBlockConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold ProcessingBlock configuration
- Parameters:
pb_id – Processing block ID
workflow – Specification of the workflow to be executed along with configuration parameters for the workflow.
parameters – Processing script parameters
dependencies – Dependencies on other processing blocks
sbi_ids – list of scheduling block ids
script – Processing script description (dictionary for now)
- class SDPConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold SDP Configuration
- Parameters:
interface – url string to determine JsonSchema version
transaction_id – string ID for tracking requests
processing_blocks – A Processing Block is an atomic unit of data processing for the purpose of SDP’s internal scheduler
execution_block – execution_block
resources – resources
- class SDPWorkflow(*args: Any, **kwargs: Any)[source]
Class to hold SDPWorkflows for ProcessingBlock
Create a new SDPWorkflow object.
- Parameters:
name – The name of the processing script
kind – The kind of processing script
version – Version of the processing script
- class ScanType(*args: Any, **kwargs: Any)[source]
Class to hold ScanType configuration
- Parameters:
scan_type_id – (any scan type)
reference_frame – Specification of the reference frame or system for a set of pointing coordinates
ra – Right Ascension in degrees
dec – Declination in degrees
channels – Expected channel configuration.
ska_tmc_cdm.messages.central_node.mccs
- class ApertureConfiguration(*args: Any, **kwargs: Any)[source]
ApertureConfiguration is a Python representation of the structured argument for a TMC CentralNode.AssignResourcesRequest.
- Parameters:
station_id – station id to allocate
aperture_id – aperture id to allocate
- class MCCSAllocate(*args: Any, **kwargs: Any)[source]
MCCSAllocate is a Python representation of the structured argument for a TMC CentralNode.AssignResourcesRequest.
- Parameters:
station_ids – stations IDs to allocate
channel_blocks – number of channel groups to assign
subarray_beam_ids – station beam id’s to allocate
- class SubArrayBeamsConfiguration(*args: Any, **kwargs: Any)[source]
SubArrayBeamsConfiguration is a Python representation of the structured argument for a TMC CentralNode.AssignResourcesRequest.
- Parameters:
subarray_beam_ids – beam id’s to allocate
apertures – list of ApertureConfiguration objects
number_of_channels – number of channels to allocate
ska_tmc_cdm.messages.subarray_node
The ska_tmc_cdm.messages.subarray_node package holds modules containing classes that represent arguments, requests, and responses for TMC SubArrayNode devices.
ska_tmc_cdm.messages.subarray_node.assigned_resources
TMC Assigned Resources
- class AssignedResources(*args: Any, **kwargs: Any)[source]
AssignedResources models the structured JSON returned when the MCCSSubarray.assigned_resources Tango attribute is read.
- Parameters:
interface – JSON schema this instance conforms to, defaults to https://schema.skao.int/ska-low-tmc-assignedresources/2.0 if not set
mccs – the MCCSAllocation describing the allocated resources
ska_tmc_cdm.messages.subarray_node.configure
The configure package contains modules that define Python classes for all of the permissible arguments for a SubArrayNode.configure() call.
- class ConfigureRequest(*args: Any, **kwargs: Any)[source]
ConfigureRequest encapsulates the arguments required for the TMC SubArrayNode.Configure() command.
- Parameters:
pointing – Pointing configuration
dish – Dish configuration
sdp – SDP configuration
csp – CSP configuration
mccs – MCCS configuration
tmc – TMCS configuration
interface – Interface URI. Defaults to https://schema.skao.int/ska-tmc-configure/6.1 for Mid and https://schema.skao.int/ska-low-tmc-configure/4.1 for Low
transaction_id – Optional transaction ID
ska_tmc_cdm.messages.subarray_node.configure.core
The configure.core module contains simple Python representations of the structured request and response for the TMC SubArrayNode.Configure command.
As configurations become more complex, they may be rehomed in a submodule of this package.
- class PointingConfiguration(*args: Any, **kwargs: Any)[source]
PointingConfiguration specifies where the subarray receptors are going to point.
- class PointingCorrection(value)[source]
Operation to apply to the pointing correction model. MAINTAIN: continue applying the current pointing correction model UPDATE: wait for (if necessary) and apply new pointing calibration solution RESET: reset the applied pointing correction to the pointing model defaults
ska_tmc_cdm.messages.subarray_node.configure.csp
The configure.csp module contains Python classes that represent the various aspects of CSP configuration that may be specified in a SubArrayNode.configure command.
- class BeamsConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST Beams Configuration.
- Parameters:
pst_beam_id – pst_beam_id
stn_beam_id – stn_beam_id
stn_weights – stn_weights
- class CSPConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold all CSP configuration. In order to support backward compatibility, We have kept old attributes as it is and added support of new attributes as per ADR-18
- Parameters:
interface – url string to determine JsonSchema version
common – the common CSP elements to set
midcbf – the MID CBF configurations to set
lowcbf – the LOW CBF configurations to set
pst_config – the PST configurations to set
pss_config – the PSS configurations to set
- class CommonConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold the CSP sub-elements.
- Parameters:
config_id – CSP configuration ID
frequency_band – the frequency band to set
subarray_id – subarray_id
band_5_tuning – band 5 receiver to set (optional)
eb_id – eb_id
- class CorrelationConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Correlation Configuration.
- Parameters:
processing_regions – processing_regions
- class LowCBFConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Low CBF Configuration.
- Parameters:
stations – stations
vis – vis
- class MidCBFConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold all FSP and VLBI configurations.
Note: frequency band offset (FBO) Bands 1 and 2 should be specified for Stream 1 only. Bands 5a and 5b input from the receptor consists of two data streams (1 and 2)
- Parameters:
frequency_band_offset_stream1 – a specified offset so that the entire observed band is shifted in Hz
frequency_band_offset_stream2 – a specified offset so that the entire observed band is shifted in Hz
correlation – correlation specific parameters
vlbi_config – the VLBI configurations to set, it is optional
- class ProcessingRegionConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Processing Region Configuration.
- Parameters:
fsp_ids – fsp_ids
receptors – receptors
start_freq – start_freq
channel_width – channel_width
channel_count – channel_count
integration_factor – integration_factor
sdp_start_channel_id – sdp_start_channel_id
- class SearchBeam(*args: Any, **kwargs: Any)[source]
Class to hold Search Beams.
- Parameters:
pss_beam_id – pss_beam_id
stn_beam_id – stn_beam_id
stn_weights – stn_weights
- class SearchBeamsConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold SearchBeams Configuration.
- Parameters:
firmware – firmware
beams – beams
- class StationConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Stations Configuration.
- Parameters:
stns – stns
stn_beams – stn_beams
- class StnBeamConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Stations Beam Configuration.
- Parameters:
stn_beam_id – stn_beam_id
beam_id – beam_id
freq_ids – freq_ids
delay_poly – delay_poly
- class SubarrayConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold the parameters relevant only for the current sub-array device.
- Parameters:
sub-array_name – Name of the sub-array
- class TimingBeamsConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold TimingBeams Configuration.
- Parameters:
fsp – fsp
firmware – firmware
beams – beams
- class VisConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Vis Configuration firmware
- Parameters:
fsp – fsp
stn_beams – stn_beams
ska_tmc_cdm.messages.subarray_node.configure.pst
- class ChannelPolarisationSelection(*args: Any, **kwargs: Any)[source]
Class to hold channel polarization selection configuration.
- Parameters:
channels – channels
polarisations – polarisations
- class DetectedFilterBankScanConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST Scan configuration for DETECTED_FILTERBANK processing mode for PST.
- Parameters:
dispersion_measure – The DM for coherent/incoherent de-dispersion in pc/cm^3
rotation_measure – The RM for phase-coherent Faraday rotation correction in rad/m^2
output_frequency_channels – Number of output frequency channels. The default of -1 means no re-channelisation
stokes_parameters – The Stokes parameters to output when in Detected Filterbank mode.
num_bits_out – Number of bits per output sample
time_decimation_factor – The number of input samples per output time sample
frequency_decimation_factor – The number of input frequency channels incoherently added to each output frequency channel
sk_config – List of SK config parameters
requantisation_scale – Scale factor to govern the dynamic range for fixed precision output during re-quantisation
requantisation_length – Number of samples to average together when determining the scale factors
num_sk_config – Number of sk_configs
- class FlowThroughScanConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST Scan configuration for FLOW_THROUGH processing mode for PST.
- Parameters:
channel_polarisation_selection – channel_polarisation_selection
rescale – rescale
requantisation – requantisation
- class PSTBeamConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST beam configuration items
- Parameters:
beam_id – Beam ID
scan – Scan configuration
- class PSTConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST configuration items
- Parameters:
beams – List of beam configurations
- class PSTScanConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold Scan configuration items
- Parameters:
centre_frequency – Centre frequency
total_bandwidth – Total bandwidth
observer_id – Observer ID
project_id – Project ID
delay_centre – ITRF coordinates
receiver_id – Receiver ID
max_scan_length – Maximum scan length
subint_duration – Sub-integration duration
receptors – List of receptors
receptor_weights – List of receptor weights
pst_processing_mode – PST processing mode
target – Target sky direction
ft – FLOW_THROUGH mode configuration
df – DETECTED_FILTERBANK mode configuration
pt – PULSAR_TIMING mode configuration
- class PulsarTimingScanConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST Scan configuration for PULSAR_TIMING processing mode for PST.
- Parameters:
dispersion_measure – The DM for coherent/incoherent de-dispersion in pc/cm^3
rotation_measure – The RM for phase-coherent Faraday rotation correction in rad/m^2
ephemeris – The ephemeris of the pulsar being observed
pulsar_phase_predictor – Pulsar phase predictor generated from ephemeris
output_frequency_channels – Number of output frequency channels. The default of -1 means ‘all channels’
output_phase_bins – Number of output phase bins
sk_config – List of SK config parameters
target_snr – The SNR of the on-pulse flux. Can end a scan early and 0 means no limit
num_sk_config – Number of sk_configs
- class RequantisationConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold requantisation configuration.
- Parameters:
num_bits_out – num_bits_out
scale – scale
ska_tmc_cdm.messages.subarray_node.configure.pss
- class AccelerationConfig(*args: Any, **kwargs: Any)[source]
Class for Acceleration configurations.
- Parameters:
fdas – FDAS configuration.
- class Activation(*args: Any, **kwargs: Any)[source]
Class for Activation.
- Parameters:
active – Enable following configuration.
- class CandidateWindow(*args: Any, **kwargs: Any)[source]
Class for Candidate Window
- Parameters:
ms_before – Number of milliseconds before the candidate start.
ms_after – Number of milliseconds after the candidate end time.
- class ChannelsConfiguration(*args: Any, **kwargs: Any)[source]
Class for Channels Configurations
- Parameters:
sps_events – Pulsar Search sps_events
- class CheetahBeamConfiguration(*args: Any, **kwargs: Any)[source]
Class for Cheetah beam configurations
- Parameters:
active – Whether to enable the beam
sinks – Sink Configuration
source – Source Configuration
beam_id – Beam ID
- class CheetahBeamsConfiguration(*args: Any, **kwargs: Any)[source]
Class for Cheetah beams configuration.
- Parameters:
beam – Beam Configurations
- class CheetahConfiguration(*args: Any, **kwargs: Any)[source]
Class for Cheetah Configurations.
- Parameters:
cheetah_id – Pipeline ID for the cheetah instance.
beams – List of cheetah beams,up to 3 beams.
psbc – PSS Beamforming Collector (PSBC)
acceleration – Acceleration configuration.
sift – SIFT configuration.
- class CheetahSource(*args: Any, **kwargs: Any)[source]
Class for cheetah pipeline sources.
- Parameters:
sigproc – Pulsar Search sigproc
udp_low – Pulsar Search UDP source
udp_low_lite – Pulsar Search UDP Low
- class DDTRConfiguration(*args: Any, **kwargs: Any)[source]
Class for DDTR Configurations.
- Parameters:
cpu – Enable the configuration.
fpga – Enable FGPA.
gpu_bruteforce – GPU brute force algorithm configuraiton.
klotski – Enable Klotski algorithm.
klotski_bruteforce – Enable Klotski brute force algorithm.
dedispersion – PSS dedispersion config.
dedispersion_samples – max samples to process in each call to the dedisperser.
- class DeDispersionConfig(*args: Any, **kwargs: Any)[source]
Class for DeDispersion Configuration.
- Parameters:
start – Start DM in cm^-3 pc.
end – End DM in cm^-3 pc (inclusive).
step – DM step size in cm^-3 pc.
- class FDAS(*args: Any, **kwargs: Any)[source]
Class for FDAS.
- Parameters:
pool_id – Name of the processing pool to use.
priority – Scheduling priority for FDAS tasks.
active – Whether FDAS processing is active.
labyrinth – Labyrinth sub-configuration
- class GPUBruteForce(*args: Any, **kwargs: Any)[source]
Class for GPU Brute force configuration.
- Parameters:
active – Enable the configuration.
copy_dmtrails_to_host – Enable the configuration.
- class Labyrinth(*args: Any, **kwargs: Any)[source]
Class for Labyrinth acceleration algorithm.
- Parameters:
active – Whether the labyrinth algorithm is enabled.
threshold – Threshold parameter for candidate detection.
- class PSBC(*args: Any, **kwargs: Any)[source]
Class for PSS Beamforming Collector (PSBC).
- Parameters:
dump_time – Time interval (in seconds) at which beamformed data is dumped.
- class PSSBeamsConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PSS Beams configuration items
- Parameters:
beam_id – Beam id
reference_frame – Reference frame for pointing coordinates(ICRS or HORIZON).
ra – Right Ascension of sub-array beam target, in degrees.
dec – Declination of sub-array beam target, in degrees.
centre_frequency – Centre frequency of the search beam.
- class PSSConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold PST configuration items
- Parameters:
beam – List of beam configurations
config_id – configuration id
cheetah – cheetah pipeline configuration
ddtr – ddtr configuration
sps – sps configuration
- class SPCCLFiles(*args: Any, **kwargs: Any)[source]
Class for SPCCL Files
- Parameters:
extension – extension.
dir – directory.
sink_id – sink id.
- class SPCCLSigProcFiles(*args: Any, **kwargs: Any)[source]
Class for SPCCL Signal Processing Files
- Parameters:
spectra_per_file – Spectra per file.
dir – Directory
extension – Extension
candidate_window – Candidate window configuration.
sink_id – Sink ID.
- class SPSCPUConfig(*args: Any, **kwargs: Any)[source]
Class for SPS CPU Configuration.
- Parameters:
active – enable the configuration.
samples_per_iteration – samples per iteration.
number_of_widths – number of widths.
- class SPSConfiguration(*args: Any, **kwargs: Any)[source]
Class for SPS Configurations.
- Parameters:
cpu – SPS cpu configuration.
threshold – Threshold
klotski – PSS klotski configuration
klotski_bruteforce – PSS klotski configuration
- class SPSEventsConfiguration(*args: Any, **kwargs: Any)[source]
Class for SPS Events Configurations
- Parameters:
active – Enable SPS events
sink – Sink configuration for PSS
- class SPSKlotskiConfig(*args: Any, **kwargs: Any)[source]
Class for SPS Klotski Configuration.
- Parameters:
active – Enable klotski sps mode.
pulse_widths – pulse widths.
- class SiftConfig(*args: Any, **kwargs: Any)[source]
Class for SIFT Configuration.
- Parameters:
pool_id – Pool ID to assign sift processing.
priority – Execution priority of the sift stage.
strong_sift – Configuration for the strong SIFT algorithm.
- class SigProc(*args: Any, **kwargs: Any)[source]
Class for Pulsar Search sigproc.
- Parameters:
file – The sigproc file(s) to read as input data.
chunk_samples – The number of time samples in each chunk.
default_nbits – The default number of bits to use.
active – Whether to enable Sigproc.
- class SinkConfiguration(*args: Any, **kwargs: Any)[source]
Class for Pulsar Search Sink Configuration
- Parameters:
spccl_files – Pulsar Search Spccl files.
spccl_sigproc_files – SPCCL Signal Processing Files
- class Sinks(*args: Any, **kwargs: Any)[source]
Class for Pulsar Search Sinks.
- Parameters:
channels – Pulsar Search Channels
sink_configs – Pulsar Search Sink Configurations.
- class StrongSift(*args: Any, **kwargs: Any)[source]
Class for Strong Sift.
- Parameters:
active – Whether the strong_sift stage is active.
num_candidate_harmonics – Number of harmonics to consider per candidate.
match_factor – Factor to scale thresholding match window.
dm_match_range – Allowed range in dispersion measure for match filtering.
- class UDPConfig(*args: Any, **kwargs: Any)[source]
Class for Pulsar Search UDP source Configuration.
- Parameters:
number_of_threads – The number of threads to run LOW ingest services.
spectra_per_chunk – The number of time slices in each chunk.
number_of_channels – Total number of frequency channels.
max_buffers – The max number of udp packet buffers to use.
active – Whether to enable the UDP.
ska_tmc_cdm.messages.subarray_node.configure.dish
Python model of the Dish configure JSON schema “https://schema.skao.int/ska-dish-configure/1.0”.
Descriptions are copied from the schema implementation. For validation consistent with ska-telmodel, validation is not coded in the Pydantic model but enforced at serialisation time via the ska-telmodel schema.
- class DishConfiguration(*args: Any, **kwargs: Any)[source]
DishConfiguration specifies how SKA MID dishes in a sub-array should be configured.
- class PeriodicNoiseGenerator(*args: Any, **kwargs: Any)[source]
PeriodicNoiseGenerator maps the ‘Periodic’ subschema of Dish configure v1.0.
ska_tmc_cdm.messages.subarray_node.configure.sdp
The configure.sdp module contains Python classes that represent the various aspects of SDP configuration that may be specified in a SubArrayNode.configure command.
ska_tmc_cdm.messages.subarray_node.configure.mccs
The configure.mccs module contains Python classes that represent the various aspects of MCCS configuration that may be specified in a SubArray.configure command.
- class MCCSConfiguration(*args: Any, **kwargs: Any)[source]
Class to hold all subarray configuration. :param subarray_beam_configs: a list of subarray beam configurations :type subarray_beam_configs: List[SubarrayBeamConfiguration]
- class SubarrayBeamAperatures(*args: Any, **kwargs: Any)[source]
A class to hold Subarray Beam aperatures configuration items :param aperture_id: Aperture ID. :type aperture_id: str :param weighting_key_ref: Descriptive ID for the aperture weights in the aperture database. :type weighting_key_ref: str :param calibration_id: Calibration ID. :type calibration_id: str
- class SubarrayBeamConfiguration(*args: Any, **kwargs: Any)[source]
A class to hold subarray_beam configuration attributes
- class SubarrayBeamLogicalBands(*args: Any, **kwargs: Any)[source]
A class to hold Subarray Beam logical bands configuration items :param start_channel: Start channel value. :type start_channel: str :param number_of_channels: No of channels :type number_of_channels: str
- class SubarrayBeamSkyCoordinates(*args: Any, **kwargs: Any)[source]
A class to hold Subarray Beam sky coordinates configuration items :param reference_frame: Must be one of: [“topocentric”, “ICRS”, “galactic”] :type reference_frame: str :param c1: first coordinate, RA or azimuth, in degrees :type c1: float :param c2: second coordinate, RA or azimuth, in degrees :type c2: float
ska_tmc_cdm.messages.subarray_node.configure.tmc
Configuration specific to TMC. scan_duration (in seconds) is the duration to be used for all scan commands following this configuration.
ska_tmc_cdm.messages.subarray_node.scan
The scan module defines simple Python representations of the structured request for a TMC SubArrayNode.Scan command.
- class ScanRequest(*args: Any, **kwargs: Any)[source]
ScanRequest represents the JSON for a SubArrayNode.scan call.
- Parameters:
interface – Interface URI. Defaults to https://schema.skao.int/ska-tmc-scan/2.2 for Mid and https://schema.skao.int/ska-low-tmc-scan/4.1 for Low
transaction_id – optional transaction ID
subarray_id – the numeric SubArray ID
scan_id – integer scan ID
start_time – Date time str
ska_tmc_cdm.schemas
The schemas for the SKA Configuration Data Model (CDM).
ska_tmc_cdm.schemas.codec
This module contains a Codec class that provides a public interface for clients to de/serialise CDM classes from/to JSON. Basically this spares clients having to remember to pass all the arguments to model_dump()
ska_tmc_cdm.schemas.shared
This module contains high-level functions that invoke validation against the SKA Telmodel schemas.
- validate_json(data: dict, process_fn: ~typing.Callable = <function _identity>, strictness: int | None = None)[source]
Validate JSON using the Telescope Model schema.
The process_fn argument can be used to process semantically correct but schematically invalid Python to something equivalent but valid, e.g., to convert a list of Python tuples to a list of lists.
- Parameters:
data – Dict containing parsed object values
process_fn – data processing function called before validation
strictness – strictness level to be used
- Returns:
None in the case of valid data