|
| 1 | +API Reference |
| 2 | +============= |
| 3 | + |
| 4 | +This contains a reference document to the floatCSEP API. |
| 5 | + |
| 6 | + |
| 7 | +Commands |
| 8 | +-------- |
| 9 | + |
| 10 | +The commands and entry-points with which to call `floatcsep` from the terminal |
| 11 | +are: |
| 12 | + |
| 13 | +.. :currentmodule:: floatcsep.commands.main |
| 14 | +
|
| 15 | +.. automodule:: floatcsep.commands.main |
| 16 | + |
| 17 | +.. autosummary:: |
| 18 | + :toctree: generated |
| 19 | + |
| 20 | + run |
| 21 | + plot |
| 22 | + reproduce |
| 23 | + |
| 24 | + |
| 25 | +Experiment |
| 26 | +---------- |
| 27 | + |
| 28 | +.. :currentmodule:: floatcsep.experiment |
| 29 | +
|
| 30 | +.. automodule:: floatcsep.experiment |
| 31 | + |
| 32 | + |
| 33 | +The experiment is defined using the :class:`Experiment` class. |
| 34 | + |
| 35 | +.. autosummary:: |
| 36 | + :toctree: generated |
| 37 | + |
| 38 | + Experiment |
| 39 | + Experiment.set_models |
| 40 | + Experiment.get_model |
| 41 | + Experiment.stage_models |
| 42 | + Experiment.set_tests |
| 43 | + Experiment.catalog |
| 44 | + Experiment.set_test_cat |
| 45 | + Experiment.set_tasks |
| 46 | + Experiment.run |
| 47 | + Experiment.read_results |
| 48 | + Experiment.plot_results |
| 49 | + Experiment.plot_catalog |
| 50 | + Experiment.plot_forecasts |
| 51 | + Experiment.generate_report |
| 52 | + Experiment.to_dict |
| 53 | + Experiment.to_yml |
| 54 | + Experiment.from_yml |
| 55 | + |
| 56 | + |
| 57 | +Models |
| 58 | +------ |
| 59 | + |
| 60 | +.. :currentmodule:: floatcsep.model |
| 61 | +
|
| 62 | +.. automodule:: floatcsep.model |
| 63 | + |
| 64 | +A model is defined using the :class:`Model` class. |
| 65 | + |
| 66 | +.. autosummary:: |
| 67 | + :toctree: generated |
| 68 | + |
| 69 | + Model |
| 70 | + Model.get_source |
| 71 | + Model.stage |
| 72 | + Model.init_db |
| 73 | + Model.rm_db |
| 74 | + Model.get_forecast |
| 75 | + Model.create_forecast |
| 76 | + Model.forecast_from_func |
| 77 | + Model.forecast_from_file |
| 78 | + Model.to_dict |
| 79 | + Model.from_dict |
| 80 | + |
| 81 | + |
| 82 | +Evaluations |
| 83 | +----------- |
| 84 | + |
| 85 | +.. :currentmodule:: floatcsep.evaluation |
| 86 | +
|
| 87 | +.. automodule:: floatcsep.evaluation |
| 88 | + |
| 89 | +A test is defined using the :class:`Evaluation` class. |
| 90 | + |
| 91 | +.. autosummary:: |
| 92 | + :toctree: generated |
| 93 | + |
| 94 | + Evaluation |
| 95 | + Evaluation.type |
| 96 | + Evaluation.get_catalog |
| 97 | + Evaluation.prepare_args |
| 98 | + Evaluation.compute |
| 99 | + Evaluation.write_result |
| 100 | + Evaluation.to_dict |
| 101 | + Evaluation.from_dict |
| 102 | + |
| 103 | + |
| 104 | +Accessors |
| 105 | +--------- |
| 106 | + |
| 107 | +.. :currentmodule:: floatcsep.utils.accessors |
| 108 | +
|
| 109 | +.. automodule:: floatcsep.utils.accessors |
| 110 | + |
| 111 | +.. autosummary:: |
| 112 | + :toctree: generated |
| 113 | + |
| 114 | + from_zenodo |
| 115 | + from_git |
| 116 | + download_file |
| 117 | + check_hash |
| 118 | + |
| 119 | + |
| 120 | +Helper Functions |
| 121 | +---------------- |
| 122 | + |
| 123 | +.. :currentmodule:: floatcsep.utils.helpers |
| 124 | +
|
| 125 | +.. automodule:: floatcsep.utils.helpers |
| 126 | + |
| 127 | +.. autosummary:: |
| 128 | + :toctree: generated |
| 129 | + |
| 130 | + parse_csep_func |
| 131 | + parse_timedelta_string |
| 132 | + read_time_config |
| 133 | + read_region_config |
| 134 | + timewindows_ti |
| 135 | + timewindows_td |
| 136 | + timewindow2str |
| 137 | + plot_sequential_likelihood |
| 138 | + magnitude_vs_time |
| 139 | + sequential_likelihood |
| 140 | + sequential_information_gain |
| 141 | + vector_poisson_t_w_test |
| 142 | + |
| 143 | + |
| 144 | +Readers |
| 145 | +------- |
| 146 | + |
| 147 | +.. :currentmodule:: floatcsep.utils.readers |
| 148 | +
|
| 149 | +.. automodule:: floatcsep.utils.readers |
| 150 | + |
| 151 | +.. autosummary:: |
| 152 | + :toctree: generated |
| 153 | + |
| 154 | + ForecastParsers.dat |
| 155 | + ForecastParsers.xml |
| 156 | + ForecastParsers.quadtree |
| 157 | + ForecastParsers.csv |
| 158 | + ForecastParsers.hdf5 |
| 159 | + HDF5Serializer.grid2hdf5 |
| 160 | + serialize |
| 161 | + |
| 162 | + |
| 163 | +Environments |
| 164 | +------------ |
| 165 | + |
| 166 | +.. :currentmodule:: floatcsep.infrastructure.environments |
| 167 | +
|
| 168 | +.. automodule:: floatcsep.infrastructure.environments |
| 169 | + |
| 170 | +.. autosummary:: |
| 171 | + :toctree: generated |
| 172 | + |
| 173 | + CondaManager |
| 174 | + CondaManager.create_environment |
| 175 | + CondaManager.env_exists |
| 176 | + CondaManager.install_dependencies |
| 177 | + CondaManager.run_command |
| 178 | + |
| 179 | + VenvManager |
| 180 | + CondaManager.create_environment |
| 181 | + CondaManager.env_exists |
| 182 | + CondaManager.install_dependencies |
| 183 | + CondaManager.run_command |
| 184 | + |
| 185 | + |
| 186 | +Registries |
| 187 | +---------- |
| 188 | + |
| 189 | +.. :currentmodule:: floatcsep.infrastructure.registries |
| 190 | +
|
| 191 | +.. automodule:: floatcsep.infrastructure.registries |
| 192 | + |
| 193 | +.. autosummary:: |
| 194 | + :toctree: generated |
| 195 | + |
| 196 | + FileRegistry |
| 197 | + FileRegistry.abs |
| 198 | + FileRegistry.absdir |
| 199 | + FileRegistry.rel |
| 200 | + FileRegistry.rel_dir |
| 201 | + FileRegistry.file_exists |
| 202 | + |
| 203 | + ForecastRegistry |
| 204 | + ForecastRegistry.get |
| 205 | + ForecastRegistry.get_forecast |
| 206 | + ForecastRegistry.dir |
| 207 | + ForecastRegistry.fmt |
| 208 | + ForecastRegistry.as_dict |
| 209 | + ForecastRegistry.forecast_exist |
| 210 | + ForecastRegistry.build_tree |
| 211 | + ForecastRegistry.log_tree |
| 212 | + |
| 213 | + ExperimentRegistry |
| 214 | + ExperimentRegistry.add_forecast_registry |
| 215 | + ExperimentRegistry.get_forecast_registry |
| 216 | + ExperimentRegistry.log_forecast_trees |
| 217 | + ExperimentRegistry.get |
| 218 | + ExperimentRegistry.get_result |
| 219 | + ExperimentRegistry.get_test_catalog |
| 220 | + ExperimentRegistry.get_figure |
| 221 | + ExperimentRegistry.result_exist |
| 222 | + ExperimentRegistry.as_dict |
| 223 | + ExperimentRegistry.build_tree |
| 224 | + ExperimentRegistry.log_results_tree |
| 225 | + |
| 226 | + |
| 227 | +Repositories |
| 228 | +------------ |
| 229 | + |
| 230 | +.. :currentmodule:: floatcsep.infrastructure.repositories |
| 231 | +
|
| 232 | +.. automodule:: floatcsep.infrastructure.repositories |
| 233 | + |
| 234 | +.. autosummary:: |
| 235 | + :toctree: generated |
| 236 | + |
| 237 | + ForecastRepository |
| 238 | + ForecastRepository.factory |
| 239 | + |
| 240 | + CatalogForecastRepository |
| 241 | + CatalogForecastRepository.load_forecast |
| 242 | + CatalogForecastRepository._load_single_forecast |
| 243 | + |
| 244 | + GriddedForecastRepository.load_forecast |
| 245 | + GriddedForecastRepository._get_or_load_forecast |
| 246 | + GriddedForecastRepository._load_single_forecast |
| 247 | + |
| 248 | + ResultsRepository |
| 249 | + ResultsRepository._load_result |
| 250 | + ResultsRepository.load_results |
| 251 | + ResultsRepository.write_result |
| 252 | + |
| 253 | + CatalogRepository |
| 254 | + CatalogRepository.set_main_catalog |
| 255 | + CatalogRepository.catalog |
| 256 | + CatalogRepository.get_test_cat |
| 257 | + CatalogRepository.set_test_cat |
| 258 | + CatalogRepository.set_input_cat |
| 259 | + |
| 260 | + |
| 261 | +Engine |
| 262 | +------ |
| 263 | + |
| 264 | +.. :currentmodule:: floatcsep.infrastructure.engine |
| 265 | +
|
| 266 | +.. automodule:: floatcsep.infrastructure.engine |
| 267 | + |
| 268 | +.. autosummary:: |
| 269 | + :toctree: generated |
| 270 | + |
| 271 | + Task |
| 272 | + Task.sign_match |
| 273 | + Task.run |
| 274 | + Task.check_exist |
| 275 | + |
| 276 | + TaskGraph |
| 277 | + TaskGraph.ntasks |
| 278 | + TaskGraph.add |
| 279 | + TaskGraph.add_dependency |
| 280 | + TaskGraph.run |
| 281 | + TaskGraph.check_exist |
0 commit comments