gammasimtools 0.5.1__py3-none-any.whl → 0.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gammasimtools-0.5.1.dist-info → gammasimtools-0.6.1.dist-info}/METADATA +80 -28
- gammasimtools-0.6.1.dist-info/RECORD +91 -0
- {gammasimtools-0.5.1.dist-info → gammasimtools-0.6.1.dist-info}/WHEEL +1 -1
- {gammasimtools-0.5.1.dist-info → gammasimtools-0.6.1.dist-info}/entry_points.txt +4 -2
- simtools/_version.py +14 -2
- simtools/applications/add_file_to_db.py +2 -1
- simtools/applications/compare_cumulative_psf.py +10 -15
- simtools/applications/db_development_tools/add_new_parameter_to_db.py +12 -6
- simtools/applications/derive_mirror_rnda.py +95 -71
- simtools/applications/generate_corsika_histograms.py +216 -131
- simtools/applications/generate_default_metadata.py +110 -0
- simtools/applications/generate_simtel_array_histograms.py +192 -0
- simtools/applications/get_file_from_db.py +1 -1
- simtools/applications/get_parameter.py +3 -3
- simtools/applications/make_regular_arrays.py +89 -93
- simtools/applications/{plot_layout_array.py → plot_array_layout.py} +15 -14
- simtools/applications/print_array_elements.py +81 -34
- simtools/applications/produce_array_config.py +2 -2
- simtools/applications/production.py +39 -5
- simtools/applications/sim_showers_for_trigger_rates.py +26 -30
- simtools/applications/simulate_prod.py +49 -107
- simtools/applications/submit_data_from_external.py +8 -10
- simtools/applications/tune_psf.py +16 -18
- simtools/applications/validate_camera_efficiency.py +63 -9
- simtools/applications/validate_camera_fov.py +9 -13
- simtools/applications/validate_file_using_schema.py +127 -0
- simtools/applications/validate_optics.py +13 -15
- simtools/camera_efficiency.py +73 -80
- simtools/configuration/commandline_parser.py +52 -22
- simtools/configuration/configurator.py +98 -33
- simtools/constants.py +9 -0
- simtools/corsika/corsika_config.py +28 -22
- simtools/corsika/corsika_default_config.py +282 -0
- simtools/corsika/corsika_histograms.py +328 -282
- simtools/corsika/corsika_histograms_visualize.py +162 -163
- simtools/corsika/corsika_runner.py +8 -4
- simtools/corsika_simtel/corsika_simtel_runner.py +18 -23
- simtools/data_model/data_reader.py +129 -0
- simtools/data_model/metadata_collector.py +346 -118
- simtools/data_model/metadata_model.py +123 -218
- simtools/data_model/model_data_writer.py +79 -22
- simtools/data_model/validate_data.py +96 -46
- simtools/db_handler.py +67 -42
- simtools/io_operations/__init__.py +0 -0
- simtools/io_operations/hdf5_handler.py +112 -0
- simtools/{io_handler.py → io_operations/io_handler.py} +51 -22
- simtools/job_execution/job_manager.py +1 -1
- simtools/layout/{layout_array.py → array_layout.py} +168 -199
- simtools/layout/geo_coordinates.py +196 -0
- simtools/layout/telescope_position.py +12 -12
- simtools/model/array_model.py +16 -14
- simtools/model/camera.py +5 -8
- simtools/model/mirrors.py +136 -73
- simtools/model/model_utils.py +1 -69
- simtools/model/telescope_model.py +32 -25
- simtools/psf_analysis.py +26 -19
- simtools/ray_tracing.py +54 -26
- simtools/schemas/data.metaschema.yml +400 -0
- simtools/schemas/metadata.metaschema.yml +566 -0
- simtools/simtel/simtel_config_writer.py +14 -5
- simtools/simtel/simtel_histograms.py +266 -83
- simtools/simtel/simtel_runner.py +8 -7
- simtools/simtel/simtel_runner_array.py +7 -8
- simtools/simtel/simtel_runner_camera_efficiency.py +48 -2
- simtools/simtel/simtel_runner_ray_tracing.py +61 -25
- simtools/simulator.py +43 -50
- simtools/utils/general.py +232 -286
- simtools/utils/geometry.py +163 -0
- simtools/utils/names.py +294 -142
- simtools/visualization/legend_handlers.py +115 -9
- simtools/visualization/visualize.py +13 -13
- gammasimtools-0.5.1.dist-info/RECORD +0 -83
- simtools/applications/plot_simtel_histograms.py +0 -120
- simtools/applications/validate_schema_files.py +0 -135
- simtools/corsika/corsika_output_visualize.py +0 -345
- simtools/data_model/validate_schema.py +0 -285
- {gammasimtools-0.5.1.dist-info → gammasimtools-0.6.1.dist-info}/LICENSE +0 -0
- {gammasimtools-0.5.1.dist-info → gammasimtools-0.6.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gammasimtools
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Tools for the Simulation System of the CTA Observatory
|
|
5
5
|
Author-email: simtools developers <simtools-developer@desy.de>
|
|
6
6
|
License: BSD 3-Clause License
|
|
@@ -33,31 +33,37 @@ License: BSD 3-Clause License
|
|
|
33
33
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
34
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
35
|
|
|
36
|
+
Project-URL: bug tracker, https://github.com/gammasim/simtools/issues
|
|
36
37
|
Project-URL: documentation, https://gammasim.github.io/simtools/
|
|
37
38
|
Project-URL: repository, https://github.com/gammasim/simtools
|
|
38
|
-
Project-URL: bug tracker, https://github.com/gammasim/simtools/issues
|
|
39
39
|
Classifier: Intended Audience :: Science/Research
|
|
40
|
-
Classifier: Programming Language :: Python :: 3
|
|
41
40
|
Classifier: License :: OSI Approved :: BSD License
|
|
42
41
|
Classifier: Operating System :: OS Independent
|
|
42
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
43
46
|
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
44
47
|
Requires-Python: >=3.9
|
|
45
48
|
Description-Content-Type: text/x-rst
|
|
46
49
|
License-File: LICENSE
|
|
47
50
|
Requires-Dist: astropy
|
|
48
51
|
Requires-Dist: boost-histogram
|
|
52
|
+
Requires-Dist: ctapipe
|
|
49
53
|
Requires-Dist: eventio
|
|
50
54
|
Requires-Dist: jsonschema
|
|
51
55
|
Requires-Dist: matplotlib
|
|
52
56
|
Requires-Dist: numpy
|
|
53
|
-
Requires-Dist: pyyaml
|
|
54
57
|
Requires-Dist: pymongo
|
|
55
58
|
Requires-Dist: pyproj
|
|
59
|
+
Requires-Dist: python-dotenv
|
|
60
|
+
Requires-Dist: pyyaml
|
|
56
61
|
Requires-Dist: scipy
|
|
57
|
-
Requires-Dist:
|
|
62
|
+
Requires-Dist: toml
|
|
58
63
|
Provides-Extra: dev
|
|
64
|
+
Requires-Dist: flake8 ; extra == 'dev'
|
|
59
65
|
Requires-Dist: pre-commit ; extra == 'dev'
|
|
60
|
-
Requires-Dist:
|
|
66
|
+
Requires-Dist: pylint ; extra == 'dev'
|
|
61
67
|
Provides-Extra: doc
|
|
62
68
|
Requires-Dist: numpydoc ; extra == 'doc'
|
|
63
69
|
Requires-Dist: sphinx ; extra == 'doc'
|
|
@@ -65,14 +71,25 @@ Requires-Dist: sphinx-rtd-theme ; extra == 'doc'
|
|
|
65
71
|
Provides-Extra: tests
|
|
66
72
|
Requires-Dist: pytest ; extra == 'tests'
|
|
67
73
|
Requires-Dist: pytest-cov ; extra == 'tests'
|
|
74
|
+
Requires-Dist: pytest-random-order ; extra == 'tests'
|
|
75
|
+
Requires-Dist: pytest-xdist ; extra == 'tests'
|
|
68
76
|
|
|
69
77
|
==============
|
|
70
78
|
simtools
|
|
71
79
|
==============
|
|
72
80
|
|
|
81
|
+
.. image:: https://img.shields.io/badge/License-BSD_3--Clause-blue.svg
|
|
82
|
+
:target: https://github.com/gammasim/simtools/blob/main/LICENSE
|
|
83
|
+
|
|
84
|
+
.. image:: https://img.shields.io/github/v/release/gammasim/simtools
|
|
85
|
+
:target: https://github.com/gammasim/simtools/releases
|
|
86
|
+
|
|
73
87
|
.. image:: https://zenodo.org/badge/195011575.svg
|
|
74
88
|
:target: https://zenodo.org/badge/latestdoi/195011575
|
|
75
89
|
|
|
90
|
+
.. image:: https://badge.fury.io/py/gammasimtools.svg
|
|
91
|
+
:target: https://badge.fury.io/py/gammasimtools
|
|
92
|
+
|
|
76
93
|
.. image:: https://github.com/gammasim/simtools/actions/workflows/CI-unittests.yml/badge.svg
|
|
77
94
|
:target: https://github.com/gammasim/simtools/actions/workflows/CI-unittests.yml
|
|
78
95
|
|
|
@@ -85,44 +102,79 @@ simtools
|
|
|
85
102
|
.. image:: https://app.codacy.com/project/badge/Grade/a3f19df7454844059341edd0769e02a7
|
|
86
103
|
:target: https://app.codacy.com/gh/gammasim/simtools/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
|
|
87
104
|
|
|
88
|
-
.. image:: https://codecov.io/gh/gammasim/simtools/
|
|
105
|
+
.. image:: https://codecov.io/gh/gammasim/simtools/graph/badge.svg?token=AYAIRPARCH
|
|
89
106
|
:target: https://codecov.io/gh/gammasim/simtools
|
|
90
107
|
|
|
108
|
+
Simulation tools and applications for the `Cherenkov Telescope Array (CTAO) <https://www.cta-observatory.org>`_.
|
|
109
|
+
|
|
110
|
+
License: `BSD-3 <https://github.com/gammasim/simtools/blob/main/LICENSE>`_
|
|
91
111
|
|
|
92
|
-
|
|
112
|
+
Useful links:
|
|
113
|
+
`Documentation <https://gammasim.github.io/simtools/>`_
|
|
114
|
+
`Source code <https://github.com/gammasim/simtools>`_
|
|
115
|
+
`Issue tracker <https://github.com/gammasim/simtools/issues>`_
|
|
116
|
+
`Citation <https://github.com/gammasim/simtools/blob/main/CITATION.cff>`_
|
|
93
117
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
*
|
|
97
|
-
*
|
|
118
|
+
simtools provides:
|
|
119
|
+
|
|
120
|
+
* libraries for simulation model management and model database interface
|
|
121
|
+
* tools for the preparation and configuration of simulation productions
|
|
122
|
+
* applications for simulation model parameter derivation and validation
|
|
123
|
+
* standardized interfaces and data products independent of the underlying simulation software (e.g., `CORSIKA <https://www.iap.kit.edu/corsika/>`_, `sim_telarray <https://www.mpi-hd.mpg.de/hfm/~bernlohr/sim_telarray/>`_)
|
|
124
|
+
* I/O and reporting tools for the MC simulation model parameter and production database
|
|
98
125
|
|
|
99
126
|
simtools is one part of the CTAO Simulation Pipeline, which consist of the following components:
|
|
100
127
|
|
|
101
|
-
- `CORSIKA <https://www.iap.kit.edu/corsika/>`_ air shower simulation code and the `sim_telarray <https://www.mpi-hd.mpg.de/hfm/~bernlohr/sim_telarray/>`_ telescope simulation code
|
|
102
|
-
-
|
|
103
|
-
-
|
|
128
|
+
- `CORSIKA <https://www.iap.kit.edu/corsika/>`_ air shower simulation code and the `sim_telarray <https://www.mpi-hd.mpg.de/hfm/~bernlohr/sim_telarray/>`_ telescope simulation code
|
|
129
|
+
- `workflows <https://github.com/gammasim/workflows>`_ for setting, derivation and validation of simulation model parameters
|
|
130
|
+
- `simulation model parameter and input data schema <https://github.com/gammasim/workflows/tree/main/schemas>`_
|
|
131
|
+
- `databases <https://gammasim.github.io/simtools/databases.html>`_, especially the model parameter database
|
|
132
|
+
|
|
133
|
+
simtools is under rapid development with continuous changes and additions planned.
|
|
134
|
+
Please contact the developers before using it: simtools-developer@desy.de
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
Quickstart
|
|
138
|
+
==========
|
|
139
|
+
|
|
140
|
+
.. warning::
|
|
141
|
+
|
|
142
|
+
The pip-installation of simtools provides limited functionality only
|
|
143
|
+
and is not as well tested as the conda/mamba installation.
|
|
144
|
+
|
|
145
|
+
Install simtools with pypi (recommended for users):
|
|
146
|
+
|
|
147
|
+
.. code-block:: bash
|
|
148
|
+
|
|
149
|
+
pip install gammasimtools
|
|
150
|
+
|
|
151
|
+
Install simtools with mamba (recommended for developers):
|
|
152
|
+
|
|
153
|
+
.. code-block:: bash
|
|
104
154
|
|
|
105
|
-
|
|
155
|
+
git clone https://github.com/gammasim/simtools.git
|
|
156
|
+
cd simtools
|
|
157
|
+
mamba env create -f environment.yml
|
|
158
|
+
conda activate simtools
|
|
159
|
+
pip install -e .
|
|
106
160
|
|
|
107
|
-
|
|
108
|
-
- Documentation: https://gammasim.github.io/simtools/
|
|
109
|
-
- Model database access: contact developers.
|
|
161
|
+
For more detail see the `Getting_Started <https://gammasim.github.io/simtools/getting_started.html>`_ section of the manual.
|
|
110
162
|
|
|
111
163
|
Authors
|
|
112
164
|
=======
|
|
113
165
|
|
|
114
|
-
* Raul R Prado (
|
|
115
|
-
* Orel Gueta (
|
|
116
|
-
*
|
|
117
|
-
*
|
|
166
|
+
* Raul R Prado (DESY)
|
|
167
|
+
* Orel Gueta (DESY)
|
|
168
|
+
* Tobias Kleiner (DESY)
|
|
169
|
+
* Victor B. Martins (DESY)
|
|
170
|
+
* Gernot Maier (DESY)
|
|
118
171
|
|
|
119
172
|
Citing this Software
|
|
120
173
|
====================
|
|
121
174
|
|
|
122
|
-
Please cite this software if
|
|
123
|
-
Please cite the `Zenodo record <https://doi.org/10.5281/zenodo.6346696>`_, see the `CITATION.cff <https://github.com/gammasim/simtools/blob/main/CITATION.cff>`_ file.
|
|
175
|
+
Please cite this software if it use used for a publication, see the `Zenodo record <https://doi.org/10.5281/zenodo.6346696>`_ and `CITATION.cff <https://github.com/gammasim/simtools/blob/main/CITATION.cff>`_ .
|
|
124
176
|
|
|
125
|
-
|
|
126
|
-
|
|
177
|
+
Acknowledgements
|
|
178
|
+
================
|
|
127
179
|
|
|
128
|
-
|
|
180
|
+
This project is supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) - project number 460248186 (PUNCH4NFDI).
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
simtools/__init__.py,sha256=yvx0i5ygbllmMtF2Tzy7pohvhQNH_dBdj0Bt8bKFYpc,231
|
|
2
|
+
simtools/_version.py,sha256=lgiCYGSijhLK71WmuudWf_AyhNAutwQWx2V8bV6a5VQ,411
|
|
3
|
+
simtools/camera_efficiency.py,sha256=Bx9pCmx1egKzV3gtZKK4F3dea9ShauxqI17XTtCVAaQ,18817
|
|
4
|
+
simtools/constants.py,sha256=QJr7NvjmyXd-xHd1xP_KuJxRFTeysxRLBYbC5tctE6Y,326
|
|
5
|
+
simtools/db_handler.py,sha256=5MEAK_E__NLHmYn5oJPsgO0D3ZTwWvB2yIKxN9w8hxU,47912
|
|
6
|
+
simtools/psf_analysis.py,sha256=YnQJh_Xckp_TH5lMLB4EsmoUVIWECshFijYz5-zsBjM,14741
|
|
7
|
+
simtools/ray_tracing.py,sha256=_MYHzYW4l3dAgUu_X5eKirnX8VYFU81_VwRvtimL8zI,18278
|
|
8
|
+
simtools/simulator.py,sha256=Cor46oIrpPJebQOMYQkUwIUNyyu3m-4HUh_d5Y40e1k,25974
|
|
9
|
+
simtools/version.py,sha256=QH3JDagS1ROImltyE_xRzRZlDxIr90poVpXToqNQUFI,595
|
|
10
|
+
simtools/_dev_version/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
simtools/_dev_version/scm_version.py,sha256=o3HfXziUHq0iIHUQm1RBv_8HDEpckXHFl0kYgmmwdAA,375
|
|
12
|
+
simtools/applications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
simtools/applications/add_file_to_db.py,sha256=tedb3Shk9gvDM1VROZVM3ZAsCSboUu68iRVV2eg4P4o,4999
|
|
14
|
+
simtools/applications/compare_cumulative_psf.py,sha256=r0sjhyNKRkw1dfj-ytwnFOnehahgbq6gpzBGARILqu4,6581
|
|
15
|
+
simtools/applications/derive_mirror_rnda.py,sha256=pY-vfrW66OQEqYfhqEW0yFa2Cd3nOeJpsXFxDtfCAMQ,15883
|
|
16
|
+
simtools/applications/generate_corsika_histograms.py,sha256=ff15vw_dwc79cciCUxFQwpW_G8L5ZjGVTh0bX_pn8b4,18434
|
|
17
|
+
simtools/applications/generate_default_metadata.py,sha256=3y3ASHvX-LaPLsOILnGDcWuF20XAN89FdXIAVaNmyf8,2881
|
|
18
|
+
simtools/applications/generate_simtel_array_histograms.py,sha256=gk6rLhb24WUxUt0d71uRxZvcl_UwXFZ2u1o-8zuZLn4,6696
|
|
19
|
+
simtools/applications/get_file_from_db.py,sha256=hcTalUXActcU-85shfgKnQlcBwXIi984kOYUafOUOcU,2906
|
|
20
|
+
simtools/applications/get_parameter.py,sha256=kv8rIRcBJdZihlviOy1KPaPXAYM1HlBY3xOZgGko1W0,2867
|
|
21
|
+
simtools/applications/make_regular_arrays.py,sha256=rFtA8YGYLkk4rr-zVhc8ItYgYtF6_x4ymRE1TtPPjuQ,5641
|
|
22
|
+
simtools/applications/plot_array_layout.py,sha256=0i1jxvLSIDAyGm0yxWs3av6ICg4lpx7b1f9c77PIOgw,6364
|
|
23
|
+
simtools/applications/print_array_elements.py,sha256=es25azY_qvStjo3jKg3E7pNAOEUn97bGwbk-v3WWQmU,5934
|
|
24
|
+
simtools/applications/produce_array_config.py,sha256=9gL53I6XgAbktsQIEqj1DzHKRoBQUm_yN7hFRfg82_Q,4113
|
|
25
|
+
simtools/applications/production.py,sha256=2ItZJ1OsXP69JVMBLq71e1j44R5qan_6yDxuY_edsvE,10775
|
|
26
|
+
simtools/applications/sim_showers_for_trigger_rates.py,sha256=6KOrhpUSxUbHJKUvHY_-qb8aeSog9iraCgnK7Pq2i9c,6713
|
|
27
|
+
simtools/applications/simulate_prod.py,sha256=WbWHXNJsl5_cBMgANdoZC5X8E5KmrgOfL8cpTpwWlqY,11517
|
|
28
|
+
simtools/applications/submit_data_from_external.py,sha256=pvZbB1q4qDzqYpac-E90q0pxjkKwhG48JD_ynDZPRpc,3036
|
|
29
|
+
simtools/applications/tune_psf.py,sha256=XPspVTNPjTIwKQ2zj85Wf_OvWWCQeXgPRWTbocE9wS4,11466
|
|
30
|
+
simtools/applications/validate_camera_efficiency.py,sha256=Q-6yNyjWVy3NyP_KssCHlTyl3aKjERDNCdvoifNnNbE,6632
|
|
31
|
+
simtools/applications/validate_camera_fov.py,sha256=rVl2oM7oh1iec_SR8pdJIDIQ-LBdch19sQa8QqmCWMs,4659
|
|
32
|
+
simtools/applications/validate_file_using_schema.py,sha256=2861hiDv1rtZJFvDNHPpYqCQqEkOMRSL32mWcGiDg2M,3396
|
|
33
|
+
simtools/applications/validate_optics.py,sha256=Qq5kzYs8bpOZKMp9Y8gNmo8BMKwO4sutUQYoY_hWt4w,6468
|
|
34
|
+
simtools/applications/db_development_tools/add_new_parameter_to_db.py,sha256=p5rZZRH5y1YxVvmSiynaYILq1Qt2EfYesI_uIl_-UlY,2732
|
|
35
|
+
simtools/applications/db_development_tools/add_unit_to_parameter_in_db.py,sha256=eqcV_yFyaOl8GOEtQozY09J_IKFy9OtRNVekIcuX0m4,1809
|
|
36
|
+
simtools/applications/db_development_tools/mark_non_optics_parameters_non_applicable.py,sha256=-0ImMFRyHmhB9XGA9pgXHe2laqQo1EoL9Zy13e92Ogs,3001
|
|
37
|
+
simtools/configuration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
+
simtools/configuration/commandline_parser.py,sha256=deSfgj-mYTKm6o0t1CP3ccKJrXWqGVOjUPa0ukTVOUU,13528
|
|
39
|
+
simtools/configuration/configurator.py,sha256=DVm9QWv_W53rdmAAxGS_6UlFptVH0R0U-1hRsajV7EQ,14918
|
|
40
|
+
simtools/corsika/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
|
+
simtools/corsika/corsika_config.py,sha256=crOg0y3CtES7eZLTiVXrJkoEqTLCO0U8E2-zlOyPeg0,19490
|
|
42
|
+
simtools/corsika/corsika_default_config.py,sha256=GYwVfD7TOriQ-780rWrfPtcJGEPgQjOlPRwfr-2Nysc,9367
|
|
43
|
+
simtools/corsika/corsika_histograms.py,sha256=BS6cQMf1rKe7ScIGnGyXwwRNHBwCnJcEEUHU1IL4Eng,67469
|
|
44
|
+
simtools/corsika/corsika_histograms_visualize.py,sha256=FTEmwdctfyn0ReBwQUdArWLlLTujYSXFEfDh8YmrP4k,18176
|
|
45
|
+
simtools/corsika/corsika_runner.py,sha256=NA5BolmQ7mbo2jdEjCdRKjX6aEbv6hCkZIa_9gIf9iA,17203
|
|
46
|
+
simtools/corsika_simtel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
|
+
simtools/corsika_simtel/corsika_simtel_runner.py,sha256=_7h3WHAATVCt8ChtR-2caGwPtHsY6PM-rhgorY1xLZo,7477
|
|
48
|
+
simtools/data_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
|
+
simtools/data_model/data_reader.py,sha256=HhsU8eLXvNux3JaIyeRhwhmHHlGFHS7_YI_Apurlcn4,4214
|
|
50
|
+
simtools/data_model/metadata_collector.py,sha256=ip3SIIs5Gc_bZfHA2d4M5MVwvaY0Lq2x_vWPTczLTvI,17615
|
|
51
|
+
simtools/data_model/metadata_model.py,sha256=8d5eXHXclAs1zHb7W4rWT_bgs8YlCcZlQkaWHfLNPFg,4973
|
|
52
|
+
simtools/data_model/model_data_writer.py,sha256=sAjmAkYjdz3R3mbZB3RbAsBRHrLZ5vl5m-3uR9-FjhY,6116
|
|
53
|
+
simtools/data_model/validate_data.py,sha256=4X20pAJV-5S7GylHHQT16Kmp8m2kVREeEgA4a058r0I,18650
|
|
54
|
+
simtools/io_operations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
|
+
simtools/io_operations/hdf5_handler.py,sha256=a3-elgjdDwbm_6P4xVsTVIIqPZkCI0bnqYnf_lQWo2Y,3158
|
|
56
|
+
simtools/io_operations/io_handler.py,sha256=ZYVAtG7CMOXwMFv4gKSOg3dYdsP-DkvMMaZOiZjEDrI,5514
|
|
57
|
+
simtools/job_execution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
|
+
simtools/job_execution/job_manager.py,sha256=oo0Ijj232w0dz7rqkTwsgg3jQhVEelug9aMYBfqBu4I,6050
|
|
59
|
+
simtools/layout/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
+
simtools/layout/array_layout.py,sha256=hpYFSdIIaO922V4X1JWvgnREqmTZ3r971fUWZCV5xlw,30997
|
|
61
|
+
simtools/layout/geo_coordinates.py,sha256=Ect3lioZyMFUfHYeWF9WDMZiVq7YwMaX1f7aHQYmDDQ,5929
|
|
62
|
+
simtools/layout/telescope_position.py,sha256=fiy9X_c0a9VitFGqXYa2hNQvYQvU_Ohq3M82Jnmscjc,17375
|
|
63
|
+
simtools/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
64
|
+
simtools/model/array_model.py,sha256=cqpHFmMpY_H7DkW5Y-Z52gWD45lWSfV8qYnfSSOz818,14249
|
|
65
|
+
simtools/model/camera.py,sha256=UpFG6AOzocwjN5fpoVvEXSDiGuri_gQP1OKs_amZ_4o,30777
|
|
66
|
+
simtools/model/mirrors.py,sha256=kHQXCoFfdSykXN1rwnPZorJDqAxU0KJ1gJ8hyQRspEA,8060
|
|
67
|
+
simtools/model/model_utils.py,sha256=3FT5hd8aCnLCmd0FlbOmCjLLa-0sCusclkdgU3w8hGc,2010
|
|
68
|
+
simtools/model/telescope_model.py,sha256=2Ae9ShuNUycNlTBdKszBRQmuiKIG3gKqCZbotaYSz-U,29313
|
|
69
|
+
simtools/schemas/data.metaschema.yml,sha256=sTq7g1oNG9ZZs6vaasWHPVDMFkXexepRukiKfh5Cwe8,10053
|
|
70
|
+
simtools/schemas/metadata.metaschema.yml,sha256=MrGxTkKAaJNqA5WAPLH20ACHvVVuqOrgukJX-kB0tXs,16494
|
|
71
|
+
simtools/simtel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
72
|
+
simtools/simtel/simtel_config_writer.py,sha256=pkK44zGXDAuwahVoZndYsQdUMDnLbNDAbngO7sQ5ukw,8160
|
|
73
|
+
simtools/simtel/simtel_events.py,sha256=YzIvZ0p96LclPBCGfw1zzRGIMjgVnh4xIurzYokM8q4,9091
|
|
74
|
+
simtools/simtel/simtel_histograms.py,sha256=yx4VaomlfwUz5FrmW-yByb-TBNOZRCj7lyYPRf-Jd3w,13761
|
|
75
|
+
simtools/simtel/simtel_runner.py,sha256=MHCExex9nEtWS2N-U_0qemkIf4vqI8ZRmuHkzcnK0SQ,7575
|
|
76
|
+
simtools/simtel/simtel_runner_array.py,sha256=dci_mpIBak6xcK2DscLZKUPPstddjCuAUI98VUN9gZI,10447
|
|
77
|
+
simtools/simtel/simtel_runner_camera_efficiency.py,sha256=CbFoXkyqv6jkd4tbEiAuHJYj3c4LHHG2Zb4NeN9Amy4,10145
|
|
78
|
+
simtools/simtel/simtel_runner_ray_tracing.py,sha256=q1hoMOBmGikCDjHirNIPL_mkRlF_0P7HXdxXee-1cRc,11009
|
|
79
|
+
simtools/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
|
+
simtools/utils/general.py,sha256=zlYBVkZ5McTbPHe-eLYaM_rgmFV0fl1u_TEY8OHAKss,26011
|
|
81
|
+
simtools/utils/geometry.py,sha256=bj7ehKy89HuG0hk0Bc5JkJv_hpDFkfsSx_gV9D5pZjM,6300
|
|
82
|
+
simtools/utils/names.py,sha256=sc1DZ9FrAoyfhSgeg4cxrFHfF198KeKG-o7KI5WQH8A,23574
|
|
83
|
+
simtools/visualization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
+
simtools/visualization/legend_handlers.py,sha256=2Ja0QE7nTDPhvgFjp1yvI_CC3P7peiJzMuqd1I-cFDU,12643
|
|
85
|
+
simtools/visualization/visualize.py,sha256=GP6djbTXzAePRszBD8XE9omg8ARNQXlvV-RSJBLMNiI,21815
|
|
86
|
+
gammasimtools-0.6.1.dist-info/LICENSE,sha256=idBrtxX6eQcUlG0YBTx-O2RNKNKg1Gidb8OQf9q0X7s,1543
|
|
87
|
+
gammasimtools-0.6.1.dist-info/METADATA,sha256=ODS_qH_gu9WVV_muqnRfGpgmKh81dsG8yJVk-gqIYP0,7888
|
|
88
|
+
gammasimtools-0.6.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
89
|
+
gammasimtools-0.6.1.dist-info/entry_points.txt,sha256=2Ph74hJHTVd6n_mDhOfzJzMRnoS_8OO1DvKDyhkhIi0,1770
|
|
90
|
+
gammasimtools-0.6.1.dist-info/top_level.txt,sha256=9Yi7Q7aQX6alvpP2YGQtIYo208wdGkXUApHboEdj-ys,9
|
|
91
|
+
gammasimtools-0.6.1.dist-info/RECORD,,
|
|
@@ -3,10 +3,12 @@ simtools-add-file-to-db = simtools.applications.add_file_to_db:main
|
|
|
3
3
|
simtools-compare-cumulative-psf = simtools.applications.compare_cumulative_psf:main
|
|
4
4
|
simtools-derive-mirror-rnda = simtools.applications.derive_mirror_rnda:main
|
|
5
5
|
simtools-generate-corsika-histograms = simtools.applications.generate_corsika_histograms:main
|
|
6
|
+
simtools-generate-default-metadata = simtools.applications.generate_default_metadata:main
|
|
7
|
+
simtools-generate-simtel-array-histograms = simtools.applications.generate_simtel_array_histograms:main
|
|
6
8
|
simtools-get-file-from-db = simtools.applications.get_file_from_db:main
|
|
7
9
|
simtools-get-parameter = simtools.applications.get_parameter:main
|
|
8
10
|
simtools-make-regular-arrays = simtools.applications.make_regular_arrays:main
|
|
9
|
-
simtools-plot-layout
|
|
11
|
+
simtools-plot-array-layout = simtools.applications.plot_array_layout:main
|
|
10
12
|
simtools-plot-simtel-histograms = simtools.applications.plot_simtel_histograms:main
|
|
11
13
|
simtools-print-array-elements = simtools.applications.print_array_elements:main
|
|
12
14
|
simtools-produce-array-config = simtools.applications.produce_array_config:main
|
|
@@ -17,5 +19,5 @@ simtools-submit-data-from-external = simtools.applications.submit_data_from_exte
|
|
|
17
19
|
simtools-tune-psf = simtools.applications.tune_psf:main
|
|
18
20
|
simtools-validate-camera-efficiency = simtools.applications.validate_camera_efficiency:main
|
|
19
21
|
simtools-validate-camera-fov = simtools.applications.validate_camera_fov:main
|
|
22
|
+
simtools-validate-file-using-schema = simtools.applications.validate_file_using_schema:main
|
|
20
23
|
simtools-validate-optics = simtools.applications.validate_optics:main
|
|
21
|
-
simtools-validate-schema-files = simtools.applications.validate_schema_files:main
|
simtools/_version.py
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
# file generated by setuptools_scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
TYPE_CHECKING = False
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from typing import Tuple, Union
|
|
6
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
+
else:
|
|
8
|
+
VERSION_TUPLE = object
|
|
9
|
+
|
|
10
|
+
version: str
|
|
11
|
+
__version__: str
|
|
12
|
+
__version_tuple__: VERSION_TUPLE
|
|
13
|
+
version_tuple: VERSION_TUPLE
|
|
14
|
+
|
|
15
|
+
__version__ = version = '0.6.1'
|
|
16
|
+
__version_tuple__ = version_tuple = (0, 6, 1)
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
The DB to insert the files to. \
|
|
24
24
|
The choices are either the default CTA simulation DB or a sandbox for testing.
|
|
25
25
|
verbosity (str, optional)
|
|
26
|
-
Log level to print
|
|
26
|
+
Log level to print.
|
|
27
27
|
|
|
28
28
|
Example
|
|
29
29
|
-------
|
|
@@ -66,6 +66,7 @@ def _user_confirm():
|
|
|
66
66
|
return answer == "y"
|
|
67
67
|
except EOFError:
|
|
68
68
|
return False
|
|
69
|
+
return False
|
|
69
70
|
|
|
70
71
|
|
|
71
72
|
def main():
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
telescope (str, required)
|
|
31
31
|
Telescope model name (e.g. LST-1, SST-D, ...).
|
|
32
32
|
model_version (str, optional)
|
|
33
|
-
Model version
|
|
33
|
+
Model version.
|
|
34
34
|
src_distance (float, optional)
|
|
35
|
-
Source distance in km
|
|
35
|
+
Source distance in km.
|
|
36
36
|
zenith (float, optional)
|
|
37
|
-
Zenith angle in deg
|
|
37
|
+
Zenith angle in deg.
|
|
38
38
|
data (str, optional)
|
|
39
39
|
Name of the data file with the measured cumulative PSF.
|
|
40
40
|
pars (str, optional)
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
test (activation mode, optional)
|
|
43
43
|
If activated, application will be faster by simulating fewer photons.
|
|
44
44
|
verbosity (str, optional)
|
|
45
|
-
Log level to print
|
|
45
|
+
Log level to print.
|
|
46
46
|
|
|
47
47
|
Example
|
|
48
48
|
-------
|
|
@@ -71,9 +71,6 @@
|
|
|
71
71
|
|
|
72
72
|
d80 in cm = 3.3662565358159013
|
|
73
73
|
|
|
74
|
-
.. todo::
|
|
75
|
-
|
|
76
|
-
* Change default model to default (after this feature is implemented in db_handler)
|
|
77
74
|
"""
|
|
78
75
|
|
|
79
76
|
import logging
|
|
@@ -86,8 +83,8 @@ import numpy as np
|
|
|
86
83
|
import yaml
|
|
87
84
|
|
|
88
85
|
import simtools.utils.general as gen
|
|
89
|
-
from simtools import io_handler
|
|
90
86
|
from simtools.configuration import configurator
|
|
87
|
+
from simtools.io_operations import io_handler
|
|
91
88
|
from simtools.model.telescope_model import TelescopeModel
|
|
92
89
|
from simtools.ray_tracing import RayTracing
|
|
93
90
|
from simtools.visualization import visualize
|
|
@@ -117,13 +114,11 @@ def main():
|
|
|
117
114
|
)
|
|
118
115
|
config.parser.add_argument(
|
|
119
116
|
"--src_distance",
|
|
120
|
-
help="Source distance in km
|
|
117
|
+
help="Source distance in km",
|
|
121
118
|
type=float,
|
|
122
119
|
default=10,
|
|
123
120
|
)
|
|
124
|
-
config.parser.add_argument(
|
|
125
|
-
"--zenith", help="Zenith angle in deg (default=20)", type=float, default=20.0
|
|
126
|
-
)
|
|
121
|
+
config.parser.add_argument("--zenith", help="Zenith angle in deg", type=float, default=20.0)
|
|
127
122
|
config.parser.add_argument(
|
|
128
123
|
"--data", help="Data file name with the measured PSF vs radius [cm]", type=str
|
|
129
124
|
)
|
|
@@ -138,7 +133,7 @@ def main():
|
|
|
138
133
|
|
|
139
134
|
# Output directory to save files related directly to this app
|
|
140
135
|
_io_handler = io_handler.IOHandler()
|
|
141
|
-
output_dir = _io_handler.get_output_directory(label,
|
|
136
|
+
output_dir = _io_handler.get_output_directory(label, sub_dir="application-plots")
|
|
142
137
|
|
|
143
138
|
tel_model = TelescopeModel(
|
|
144
139
|
site=args_dict["site"],
|
|
@@ -181,7 +176,7 @@ def main():
|
|
|
181
176
|
# Simulated cumulative PSF
|
|
182
177
|
data_to_plot[r"sim$\_$telarray"] = im.get_cumulative_data(radius * u.cm)
|
|
183
178
|
|
|
184
|
-
fig = visualize.
|
|
179
|
+
fig = visualize.plot_1d(data_to_plot)
|
|
185
180
|
fig.gca().set_ylim(0, 1.05)
|
|
186
181
|
|
|
187
182
|
plot_file_name = label + "_" + tel_model.name + "_cumulative_PSF"
|
|
@@ -192,7 +187,7 @@ def main():
|
|
|
192
187
|
|
|
193
188
|
# Plotting image
|
|
194
189
|
data_to_plot = im.get_image_data()
|
|
195
|
-
fig = visualize.
|
|
190
|
+
fig = visualize.plot_hist_2d(data_to_plot, bins=80)
|
|
196
191
|
circle = plt.Circle((0, 0), im.get_psf(0.8) / 2, color="k", fill=False, lw=2, ls="--")
|
|
197
192
|
fig.gca().add_artist(circle)
|
|
198
193
|
fig.gca().set_aspect("equal")
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
import logging
|
|
14
14
|
|
|
15
|
+
import astropy.units as u
|
|
16
|
+
|
|
15
17
|
import simtools.utils.general as gen
|
|
16
18
|
from simtools import db_handler
|
|
17
19
|
from simtools.configuration import configurator
|
|
@@ -30,12 +32,13 @@ def main():
|
|
|
30
32
|
db = db_handler.DatabaseHandler(mongo_db_config=db_config)
|
|
31
33
|
|
|
32
34
|
# epsgs = [32628, 32719]
|
|
33
|
-
parameter = {
|
|
35
|
+
parameter = {
|
|
36
|
+
"mirror_panel_shape": 1,
|
|
37
|
+
"mirror_panel_diameter": 84.6 * u.cm,
|
|
38
|
+
}
|
|
34
39
|
|
|
35
40
|
telescopes = [
|
|
36
41
|
"South-SST-Structure-D",
|
|
37
|
-
"South-SST-Camera-D",
|
|
38
|
-
"South-SST-ASTRI-D",
|
|
39
42
|
]
|
|
40
43
|
|
|
41
44
|
for telescope_now in telescopes:
|
|
@@ -56,8 +59,7 @@ def main():
|
|
|
56
59
|
value=par_value,
|
|
57
60
|
collection_name="telescopes",
|
|
58
61
|
Applicable=True,
|
|
59
|
-
|
|
60
|
-
File=True,
|
|
62
|
+
File=False,
|
|
61
63
|
file_prefix="./",
|
|
62
64
|
)
|
|
63
65
|
pars = db.read_mongo_db(
|
|
@@ -68,7 +70,11 @@ def main():
|
|
|
68
70
|
collection_name="telescopes",
|
|
69
71
|
write_files=False,
|
|
70
72
|
)
|
|
71
|
-
|
|
73
|
+
if isinstance(par_value, u.Quantity):
|
|
74
|
+
assert pars[par_now]["Value"] == par_value.value
|
|
75
|
+
assert pars[par_now]["units"] == par_value.unit.to_string()
|
|
76
|
+
else:
|
|
77
|
+
assert pars[par_now]["Value"] == par_value
|
|
72
78
|
|
|
73
79
|
|
|
74
80
|
if __name__ == "__main__":
|