CLI¶
blipss.cli.compare_cands
¶
Compare candidate periods across N candidate CSV files and output one N-digit binary code per candidate.
In the binary code, "1" denotes detection and "0" denotes non-detection. Candidate detection in file i is denoted by "1" in the i-th position of the code (read left to right).
Example usage¶
python -m blipss.cli.compare_cands --config config/compare_cands.yaml
main(config)
¶
Compare candidate periods across N files and output one N-digit binary code per candidate.
Source code in blipss/cli/compare_cands.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
run_compare_cands(cfg)
¶
Compare candidates across all configured files and write the merged output CSV.
Source code in blipss/cli/compare_cands.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
blipss.cli.compute_phase_resolved_ds
¶
Produce a phase-resolved dynamic spectrum plot for a given folding period.
Reads folding parameters from a YAML config file, loads the target filterbank, folds each spectral channel time series using the riptide FFA library, and saves a grayscale phase-resolved spectrum plot.
Example Usage¶
python -m blipss.cli.compute_phase_resolved_ds --config config/compute_phase_resolved_ds.yaml
main(config)
¶
Produce a phase-resolved dynamic spectrum plot for a given folding period.
Source code in blipss/cli/compute_phase_resolved_ds.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
run_compute_phase_resolved_ds(cfg)
¶
Orchestrate data loading, band alignment, channel clipping, phase folding, and plot writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
PhaseResolvedDsConfig
|
Validated phase-resolved dynamic spectrum configuration. |
required |
Source code in blipss/cli/compute_phase_resolved_ds.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
blipss.cli.inject_signal
¶
Inject a periodic signal of known properties into a real-world filterbank data file.
Reads injection parameters from a YAML config file, loads the target filterbank, injects one or more channel-wide boxcar pulse trains calibrated to the local bandpass statistics, and writes the result as a .fil or .h5 file.
Example Usage¶
python -m blipss.cli.inject_signal --config config/inject_signal.yaml
main(config)
¶
Inject a fake periodic signal into a real-world filterbank data file.
Source code in blipss/cli/inject_signal.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
run_inject_signal(cfg)
¶
Orchestrate data loading, bandpass estimation, signal injection, and output writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
InjectSignalConfig
|
Validated injection configuration. |
required |
Source code in blipss/cli/inject_signal.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
blipss.cli.plot_cands
¶
Produce candidate verification plots combining periodograms, pulse profiles, and phase-time diagrams.
Example usage¶
python -m blipss.cli.plot_cands --config config/plot_cands.yaml
main(config)
¶
Produce candidate verification plots combining periodograms, pulse profiles, and phase-time diagrams.
Source code in blipss/cli/plot_cands.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
run_plot_cands(cfg)
¶
Select candidates by code, fold each across all data files, and save verification plots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
PlotCandsConfig
|
Validated plot_cands configuration. |
required |
Source code in blipss/cli/plot_cands.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
blipss.cli.run_ffa_search
¶
Run channel-wise FFA on a set of input filterbank files, flag harmonics, and write one CSV of candidates per file.
Example usage¶
python -m blipss.cli.run_ffa_search --config config/run_ffa_search.yaml
main(config)
¶
Run channel-wise FFA period search on a set of filterbank files.
Source code in blipss/cli/run_ffa_search.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
run_blipss(cfg)
¶
Orchestrate per-file FFA search and output writing for all files in the config.
Source code in blipss/cli/run_ffa_search.py
150 151 152 153 154 155 156 157 158 159 | |
blipss.cli.simulate_data
¶
Generate a synthetic filterbank file containing periodic signals on a Gaussian white noise background.
Reads simulation parameters from a YAML config file, injects one or more channel-wide boxcar pulse trains at specified periods and duty cycles, and writes the result as a 32-bit sigproc filterbank (.fil) file.
Example Usage¶
python -m blipss.cli.simulate_data --config config/simulate_data.yaml
main(config)
¶
Generate an artificial filterbank data set.
Source code in blipss/cli/simulate_data.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
run_simulate_data(cfg)
¶
Orchestrate noise generation, signal injection, and filterbank file writing.
Source code in blipss/cli/simulate_data.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |