gammasimtools 0.9.0__py3-none-any.whl → 0.11.0__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.
Files changed (135) hide show
  1. {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/METADATA +4 -2
  2. {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/RECORD +133 -117
  3. {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/WHEEL +1 -1
  4. {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/entry_points.txt +6 -1
  5. simtools/_version.py +9 -4
  6. simtools/applications/calculate_trigger_rate.py +15 -38
  7. simtools/applications/convert_all_model_parameters_from_simtel.py +9 -29
  8. simtools/applications/convert_geo_coordinates_of_array_elements.py +47 -45
  9. simtools/applications/convert_model_parameter_from_simtel.py +2 -3
  10. simtools/applications/db_add_file_to_db.py +1 -3
  11. simtools/applications/db_add_simulation_model_from_repository_to_db.py +110 -0
  12. simtools/applications/db_add_value_from_json_to_db.py +1 -2
  13. simtools/applications/db_development_tools/write_array_elements_positions_to_repository.py +6 -6
  14. simtools/applications/db_get_file_from_db.py +11 -12
  15. simtools/applications/db_get_parameter_from_db.py +26 -35
  16. simtools/applications/derive_mirror_rnda.py +1 -2
  17. simtools/applications/derive_photon_electron_spectrum.py +99 -0
  18. simtools/applications/derive_psf_parameters.py +1 -0
  19. simtools/applications/docs_produce_array_element_report.py +71 -0
  20. simtools/applications/docs_produce_model_parameter_reports.py +63 -0
  21. simtools/applications/generate_array_config.py +17 -17
  22. simtools/applications/generate_corsika_histograms.py +2 -2
  23. simtools/applications/generate_regular_arrays.py +19 -17
  24. simtools/applications/generate_simtel_array_histograms.py +11 -48
  25. simtools/applications/production_derive_limits.py +95 -0
  26. simtools/applications/production_generate_simulation_config.py +37 -33
  27. simtools/applications/production_scale_events.py +4 -9
  28. simtools/applications/run_application.py +165 -0
  29. simtools/applications/simulate_light_emission.py +0 -4
  30. simtools/applications/simulate_prod.py +1 -1
  31. simtools/applications/simulate_prod_htcondor_generator.py +26 -26
  32. simtools/applications/submit_data_from_external.py +12 -4
  33. simtools/applications/submit_model_parameter_from_external.py +18 -11
  34. simtools/applications/validate_camera_efficiency.py +2 -2
  35. simtools/applications/validate_file_using_schema.py +26 -22
  36. simtools/camera/single_photon_electron_spectrum.py +168 -0
  37. simtools/configuration/commandline_parser.py +37 -1
  38. simtools/configuration/configurator.py +8 -10
  39. simtools/constants.py +10 -3
  40. simtools/corsika/corsika_config.py +19 -17
  41. simtools/corsika/corsika_histograms.py +5 -7
  42. simtools/corsika/corsika_histograms_visualize.py +2 -4
  43. simtools/data_model/data_reader.py +0 -3
  44. simtools/data_model/metadata_collector.py +20 -12
  45. simtools/data_model/metadata_model.py +8 -124
  46. simtools/data_model/model_data_writer.py +81 -75
  47. simtools/data_model/schema.py +220 -0
  48. simtools/data_model/validate_data.py +79 -68
  49. simtools/db/db_handler.py +350 -492
  50. simtools/db/db_model_upload.py +139 -0
  51. simtools/dependencies.py +112 -0
  52. simtools/io_operations/hdf5_handler.py +54 -24
  53. simtools/layout/array_layout.py +38 -32
  54. simtools/model/array_model.py +13 -7
  55. simtools/model/model_parameter.py +55 -54
  56. simtools/model/site_model.py +2 -2
  57. simtools/production_configuration/calculate_statistical_errors_grid_point.py +119 -145
  58. simtools/production_configuration/event_scaler.py +9 -35
  59. simtools/production_configuration/generate_simulation_config.py +9 -44
  60. simtools/production_configuration/interpolation_handler.py +9 -15
  61. simtools/production_configuration/limits_calculation.py +202 -0
  62. simtools/reporting/docs_read_parameters.py +310 -0
  63. simtools/runners/corsika_simtel_runner.py +4 -4
  64. simtools/schemas/{integration_tests_config.metaschema.yml → application_workflow.metaschema.yml} +61 -27
  65. simtools/schemas/array_elements.yml +8 -0
  66. simtools/schemas/input/MST_mirror_2f_measurements.schema.yml +39 -0
  67. simtools/schemas/input/single_pe_spectrum.schema.yml +38 -0
  68. simtools/schemas/model_parameter.metaschema.yml +103 -2
  69. simtools/schemas/model_parameter_and_data_schema.metaschema.yml +4 -1
  70. simtools/schemas/model_parameters/array_element_position_utm.schema.yml +1 -1
  71. simtools/schemas/model_parameters/array_window.schema.yml +37 -0
  72. simtools/schemas/model_parameters/asum_clipping.schema.yml +0 -4
  73. simtools/schemas/model_parameters/channels_per_chip.schema.yml +1 -1
  74. simtools/schemas/model_parameters/correct_nsb_spectrum_to_telescope_altitude.schema.yml +1 -1
  75. simtools/schemas/model_parameters/corsika_cherenkov_photon_bunch_size.schema.yml +2 -0
  76. simtools/schemas/model_parameters/corsika_cherenkov_photon_wavelength_range.schema.yml +2 -0
  77. simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml +2 -0
  78. simtools/schemas/model_parameters/corsika_iact_io_buffer.schema.yml +4 -2
  79. simtools/schemas/model_parameters/corsika_iact_max_bunches.schema.yml +2 -0
  80. simtools/schemas/model_parameters/corsika_iact_split_auto.schema.yml +2 -0
  81. simtools/schemas/model_parameters/corsika_longitudinal_shower_development.schema.yml +2 -0
  82. simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml +2 -0
  83. simtools/schemas/model_parameters/corsika_starting_grammage.schema.yml +2 -0
  84. simtools/schemas/model_parameters/dsum_clipping.schema.yml +0 -2
  85. simtools/schemas/model_parameters/dsum_ignore_below.schema.yml +0 -2
  86. simtools/schemas/model_parameters/dsum_offset.schema.yml +0 -2
  87. simtools/schemas/model_parameters/dsum_pedsub.schema.yml +0 -2
  88. simtools/schemas/model_parameters/dsum_pre_clipping.schema.yml +0 -2
  89. simtools/schemas/model_parameters/dsum_prescale.schema.yml +0 -2
  90. simtools/schemas/model_parameters/dsum_presum_max.schema.yml +0 -2
  91. simtools/schemas/model_parameters/dsum_presum_shift.schema.yml +0 -2
  92. simtools/schemas/model_parameters/dsum_shaping.schema.yml +0 -2
  93. simtools/schemas/model_parameters/dsum_shaping_renormalize.schema.yml +0 -2
  94. simtools/schemas/model_parameters/dsum_threshold.schema.yml +0 -2
  95. simtools/schemas/model_parameters/dsum_zero_clip.schema.yml +0 -2
  96. simtools/schemas/model_parameters/fadc_compensate_pedestal.schema.yml +1 -1
  97. simtools/schemas/model_parameters/fadc_lg_compensate_pedestal.schema.yml +1 -1
  98. simtools/schemas/model_parameters/fadc_noise.schema.yml +3 -3
  99. simtools/schemas/model_parameters/fake_mirror_list.schema.yml +33 -0
  100. simtools/schemas/model_parameters/iobuf_maximum.schema.yml +1 -1
  101. simtools/schemas/model_parameters/iobuf_output_maximum.schema.yml +1 -1
  102. simtools/schemas/model_parameters/laser_photons.schema.yml +2 -2
  103. simtools/schemas/model_parameters/lightguide_efficiency_vs_incidence_angle.schema.yml +1 -1
  104. simtools/schemas/model_parameters/lightguide_efficiency_vs_wavelength.schema.yml +1 -1
  105. simtools/schemas/model_parameters/min_photoelectrons.schema.yml +1 -1
  106. simtools/schemas/model_parameters/min_photons.schema.yml +1 -1
  107. simtools/schemas/model_parameters/random_generator.schema.yml +1 -1
  108. simtools/schemas/model_parameters/sampled_output.schema.yml +1 -1
  109. simtools/schemas/model_parameters/save_pe_with_amplitude.schema.yml +1 -1
  110. simtools/schemas/model_parameters/secondary_mirror_degraded_reflection.schema.yml +1 -1
  111. simtools/schemas/model_parameters/store_photoelectrons.schema.yml +1 -1
  112. simtools/schemas/model_parameters/tailcut_scale.schema.yml +1 -1
  113. simtools/schemas/production_configuration_metrics.schema.yml +68 -0
  114. simtools/schemas/production_tables.schema.yml +41 -0
  115. simtools/simtel/simtel_config_reader.py +1 -2
  116. simtools/simtel/simtel_config_writer.py +6 -8
  117. simtools/simtel/simtel_io_histogram.py +32 -68
  118. simtools/simtel/simtel_io_histograms.py +17 -34
  119. simtools/simtel/simulator_array.py +2 -1
  120. simtools/simtel/simulator_camera_efficiency.py +6 -3
  121. simtools/simtel/simulator_light_emission.py +5 -6
  122. simtools/simtel/simulator_ray_tracing.py +3 -4
  123. simtools/testing/configuration.py +2 -1
  124. simtools/testing/helpers.py +6 -13
  125. simtools/testing/validate_output.py +141 -47
  126. simtools/utils/general.py +114 -14
  127. simtools/utils/names.py +299 -157
  128. simtools/utils/value_conversion.py +17 -13
  129. simtools/version.py +2 -2
  130. simtools/visualization/legend_handlers.py +2 -0
  131. simtools/applications/db_add_model_parameters_from_repository_to_db.py +0 -176
  132. simtools/db/db_array_elements.py +0 -130
  133. {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/LICENSE +0 -0
  134. {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/top_level.txt +0 -0
  135. /simtools/{camera_efficiency.py → camera/camera_efficiency.py} +0 -0
@@ -25,6 +25,7 @@ definitions:
25
25
  description: "name of meta schema (e.g. simpipe-schema)"
26
26
  meta_schema_url:
27
27
  type: string
28
+ format: uri
28
29
  description: "url to meta schema definition"
29
30
  meta_schema_version:
30
31
  type: string
@@ -246,6 +247,8 @@ definitions:
246
247
  - Site
247
248
  - Structure
248
249
  - Telescope
250
+ - configuration_sim_telarray
251
+ - configuration_corsika
249
252
  type:
250
253
  type: array
251
254
  items:
@@ -260,7 +263,6 @@ definitions:
260
263
  - South
261
264
  required:
262
265
  - class
263
- - type
264
266
  title: Instrument
265
267
  InstrumentTypeElement:
266
268
  type: string
@@ -322,6 +324,7 @@ definitions:
322
324
  - ValidateArrayElementCoordinates
323
325
  - ValidateAtmosphericModel
324
326
  - ValidateCameraChargeResponse
327
+ - ValidateCameraEfficiency
325
328
  - ValidateCameraGainsAndEfficiency
326
329
  - ValidateCameraGeometry
327
330
  - ValidateCameraLinearity
@@ -7,7 +7,7 @@ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/si
7
7
  meta_schema_version: 0.1.0
8
8
  name: array_element_position_utm
9
9
  description: |-
10
- Position and alitutude of an array element (e.g., a telescope) in UTM coordinates.
10
+ Position and altitude of an array element (e.g., a telescope) in UTM coordinates.
11
11
  short_description: UTM coordinate position of an array element.
12
12
  data:
13
13
  - type: double
@@ -0,0 +1,37 @@
1
+ %YAML 1.2
2
+ ---
3
+ title: Schema for array_window model parameter
4
+ version: 0.1.0
5
+ meta_schema: simpipe-schema
6
+ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/simtools/schemas/model_parameter_and_data_schema.metaschema.yml
7
+ meta_schema_version: 0.1.0
8
+ name: array_window
9
+ description: |-
10
+ Length of a coincidence window of the default stereo trigger,
11
+ after correction of fixed (cable length, focal length, etc.)
12
+ and variable (view direction) delays.
13
+ short_description: |-
14
+ Length of a coincidence window of the default stereo trigger.
15
+ data:
16
+ - type: double
17
+ unit: ns
18
+ default: 1000.
19
+ instrument:
20
+ class: Camera
21
+ type:
22
+ - LSTN
23
+ - LSTS
24
+ - MSTN
25
+ - MSTS
26
+ - SSTS
27
+ - SCTS
28
+ activity:
29
+ setting:
30
+ - SetParameterFromExternal
31
+ validation:
32
+ - ValidateParameterByExpert
33
+ - ValidateTriggerPerformance
34
+ source:
35
+ - Initial instrument setup
36
+ simulation_software:
37
+ - name: sim_telarray
@@ -22,10 +22,6 @@ instrument:
22
22
  type:
23
23
  - LSTN
24
24
  - LSTS
25
- - MSTN
26
- - MSTS
27
- - SSTS
28
- - SCTS
29
25
  activity:
30
26
  setting:
31
27
  - SetParameterFromExternal
@@ -8,7 +8,7 @@ meta_schema_version: 0.1.0
8
8
  name: channels_per_chip
9
9
  description: |-
10
10
  Number of channels per readout chip.
11
- Potentially useful for crosstalk calculations.
11
+ Potentially useful for cross-talk calculations.
12
12
  short_description: Number of channels per readout chip.
13
13
  data:
14
14
  - type: uint
@@ -16,7 +16,7 @@ data:
16
16
  unit: dimensionless
17
17
  default: "atm_trans_2200_1_3_0_0_0.dat"
18
18
  instrument:
19
- class: Telescope
19
+ class: configuration_sim_telarray
20
20
  type:
21
21
  - LSTN
22
22
  - LSTS
@@ -10,6 +10,8 @@ developer_note: |-
10
10
  name: corsika_cherenkov_photon_bunch_size
11
11
  description: |-
12
12
  Cherenkov bunch size definition.
13
+ instrument:
14
+ class: configuration_corsika
13
15
  data:
14
16
  - type: float64
15
17
  unit: dimensionless
@@ -8,6 +8,8 @@ meta_schema_version: 0.1.0
8
8
  name: corsika_cherenkov_photon_wavelength_range
9
9
  description: |-
10
10
  Cherenkov photon wavelength band.
11
+ instrument:
12
+ class: configuration_corsika
11
13
  data:
12
14
  - name: wavlgl
13
15
  type: float64
@@ -10,6 +10,8 @@ description: |-
10
10
  Starting altitude of primary particles in altitude above observation level.
11
11
  This parameter should be set to values other than '0.' for specialized studies
12
12
  only. See CORSIKA manual for details.
13
+ instrument:
14
+ class: configuration_corsika
13
15
  data:
14
16
  - type: float64
15
17
  unit: cm
@@ -8,10 +8,12 @@ meta_schema_version: 0.1.0
8
8
  name: corsika_iact_io_buffer
9
9
  description: |-
10
10
  Maximum size of data blocks written by the CORSIKA IACT module.
11
+ instrument:
12
+ class: configuration_corsika
11
13
  data:
12
14
  - type: int
13
- unit: byte
14
- default: 100000000
15
+ unit: MB
16
+ default: 1000
15
17
  activity:
16
18
  setting:
17
19
  - SetParameterFromExternal
@@ -12,6 +12,8 @@ description: |-
12
12
  Maximum number of bunches that can be kept per telescope, including in temporary files.
13
13
  Telescopes for which this limit is exceeded will have the number of bunches reduced in
14
14
  increasing powers of two (by discarding every second bunch and adding its bunch size to the bunch kept).
15
+ instrument:
16
+ class: configuration_corsika
15
17
  data:
16
18
  - type: int
17
19
  unit: dimensionless
@@ -13,6 +13,8 @@ description: |-
13
13
  If the full data block for the entire array would exceed the given number of bunches,
14
14
  it gets split up into separate blocks per individual telescope, in order to avoid
15
15
  exceeding the hard I/O buffer size limit.
16
+ instrument:
17
+ class: configuration_corsika
16
18
  data:
17
19
  - type: int
18
20
  unit: dimensionless
@@ -9,6 +9,8 @@ name: corsika_longitudinal_shower_development
9
9
  description: |-
10
10
  Step size for recording of longitudinal shower development.
11
11
  Any value >=1. for the step size enables the recording of the shower development.
12
+ instrument:
13
+ class: configuration_corsika
12
14
  data:
13
15
  - type: float64
14
16
  unit: g/cm2
@@ -8,6 +8,8 @@ meta_schema_version: 0.1.0
8
8
  name: corsika_particle_kinetic_energy_cutoff
9
9
  description: |-
10
10
  Kinetic energy cutoffs for different particle types.
11
+ instrument:
12
+ class: configuration_corsika
11
13
  data:
12
14
  - name: hadrons
13
15
  type: float64
@@ -10,6 +10,8 @@ description: |-
10
10
  Starting altitude of the primary particle in mass overburden for all showers.
11
11
  This parameter should be set to values other than '0.' for specialized studies
12
12
  only. See CORSIKA manual for details.
13
+ instrument:
14
+ class: configuration_corsika
13
15
  data:
14
16
  - type: float64
15
17
  unit: g/cm2
@@ -24,8 +24,6 @@ instrument:
24
24
  type:
25
25
  - MSTN
26
26
  - MSTS
27
- - SSTS
28
- - SCTS
29
27
  activity:
30
28
  setting:
31
29
  - SetParameterFromExternal
@@ -24,8 +24,6 @@ instrument:
24
24
  type:
25
25
  - MSTN
26
26
  - MSTS
27
- - SSTS
28
- - SCTS
29
27
  activity:
30
28
  setting:
31
29
  - SetParameterFromExternal
@@ -23,8 +23,6 @@ instrument:
23
23
  type:
24
24
  - MSTN
25
25
  - MSTS
26
- - SSTS
27
- - SCTS
28
26
  activity:
29
27
  setting:
30
28
  - SetParameterFromExternal
@@ -20,8 +20,6 @@ instrument:
20
20
  type:
21
21
  - MSTN
22
22
  - MSTS
23
- - SSTS
24
- - SCTS
25
23
  activity:
26
24
  setting:
27
25
  - SetParameterFromExternal
@@ -25,8 +25,6 @@ instrument:
25
25
  type:
26
26
  - MSTN
27
27
  - MSTS
28
- - SSTS
29
- - SCTS
30
28
  activity:
31
29
  setting:
32
30
  - SetParameterFromExternal
@@ -30,8 +30,6 @@ instrument:
30
30
  type:
31
31
  - MSTN
32
32
  - MSTS
33
- - SSTS
34
- - SCTS
35
33
  activity:
36
34
  setting:
37
35
  - SetParameterFromExternal
@@ -24,8 +24,6 @@ instrument:
24
24
  type:
25
25
  - MSTN
26
26
  - MSTS
27
- - SSTS
28
- - SCTS
29
27
  activity:
30
28
  setting:
31
29
  - SetParameterFromExternal
@@ -31,8 +31,6 @@ instrument:
31
31
  type:
32
32
  - MSTN
33
33
  - MSTS
34
- - SSTS
35
- - SCTS
36
34
  activity:
37
35
  setting:
38
36
  - SetParameterFromExternal
@@ -30,8 +30,6 @@ instrument:
30
30
  type:
31
31
  - MSTN
32
32
  - MSTS
33
- - SSTS
34
- - SCTS
35
33
  activity:
36
34
  setting:
37
35
  - SetParameterFromExternal
@@ -18,8 +18,6 @@ instrument:
18
18
  type:
19
19
  - MSTN
20
20
  - MSTS
21
- - SSTS
22
- - SCTS
23
21
  activity:
24
22
  setting:
25
23
  - SetParameterFromExternal
@@ -28,8 +28,6 @@ instrument:
28
28
  type:
29
29
  - MSTN
30
30
  - MSTS
31
- - SSTS
32
- - SCTS
33
31
  activity:
34
32
  setting:
35
33
  - SetParameterFromExternal
@@ -28,8 +28,6 @@ instrument:
28
28
  type:
29
29
  - MSTN
30
30
  - MSTS
31
- - SSTS
32
- - SCTS
33
31
  activity:
34
32
  setting:
35
33
  - SetParameterFromExternal
@@ -8,7 +8,7 @@ meta_schema_version: 0.1.0
8
8
  name: fadc_compensate_pedestal
9
9
  description: |-
10
10
  Emulate FADC pedestal compensation (as e.g., done in camera firmware using FPGAs)
11
- to homogenise significant pixel-to-pixel variations of raw pedestals values
11
+ to homogenize significant pixel-to-pixel variations of raw pedestals values
12
12
  (for high-gain channel for dual-gain readout).
13
13
  The resulting values are still unsigned integers and no rescaling takes place
14
14
  (pure integer pedestal offset). No compensation takes place for the default value
@@ -8,7 +8,7 @@ meta_schema_version: 0.1.0
8
8
  name: fadc_lg_compensate_pedestal
9
9
  description: |-
10
10
  Emulate FADC pedestal compensation (as e.g., done in camera firmware using FPGAs)
11
- to homogenise significant pixel-to-pixel variations of raw pedestals values
11
+ to homogenize significant pixel-to-pixel variations of raw pedestals values
12
12
  (for low-gain channel for dual-gain readout).
13
13
  The resulting values are still unsigned integers and no rescaling takes place
14
14
  (pure integer pedestal offset). No compensation takes place for the default value
@@ -7,13 +7,13 @@ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/si
7
7
  meta_schema_version: 0.1.0
8
8
  name: fadc_noise
9
9
  description: |-
10
- Gaussian r.m.s. spread of white noise per time bin in digitisation
10
+ Gaussian r.m.s. spread of white noise per time bin in digitization
11
11
  (for high-gain channel, if different gains are used).
12
- short_description: Gaussian r.m.s. spread of white noise per time bin in digitisation.
12
+ short_description: Gaussian r.m.s. spread of white noise per time bin in digitization.
13
13
  data:
14
14
  - type: double
15
15
  description: |-
16
- Gaussian r.m.s. spread of white noise per time bin in digitisation
16
+ Gaussian r.m.s. spread of white noise per time bin in digitization
17
17
  (for high-gain channel in case of dual-readout chain)
18
18
  unit: count
19
19
  default: 4.0
@@ -0,0 +1,33 @@
1
+ %YAML 1.2
2
+ ---
3
+ title: Schema for fake_mirror_list model parameter
4
+ version: 0.1.0
5
+ meta_schema: simpipe-schema
6
+ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/simtools/schemas/model_parameter_and_data_schema.metaschema.yml
7
+ meta_schema_version: 0.1.0
8
+ developer_note: To be replaced by a data table
9
+ name: fake_mirror_list
10
+ short_description: Fake mirror list to be used for camera efficiency calculations ('testeff' program).
11
+ description: |-
12
+ Fake mirror list to be used for camera efficiency calculations ('testeff' program).
13
+ Allows to obtain realistic distributions of the photon incidence angles on the camera plan.
14
+ Not to be used for actual simulations.
15
+ data:
16
+ - type: file
17
+ unit: dimensionless
18
+ default: None
19
+ instrument:
20
+ class: Structure
21
+ type:
22
+ - SSTS
23
+ - SCTS
24
+ activity:
25
+ setting:
26
+ - SetParameterFromExternal
27
+ validation:
28
+ - ValidateParameterByExpert
29
+ - ValidateCameraEfficiency
30
+ source:
31
+ - Initial instrument setup
32
+ simulation_software:
33
+ - name: sim_telarray
@@ -15,7 +15,7 @@ data:
15
15
  allowed_range:
16
16
  min: 100000
17
17
  instrument:
18
- class: Camera
18
+ class: configuration_sim_telarray
19
19
  type:
20
20
  - LSTN
21
21
  - LSTS
@@ -15,7 +15,7 @@ data:
15
15
  allowed_range:
16
16
  min: 100000
17
17
  instrument:
18
- class: Camera
18
+ class: configuration_sim_telarray
19
19
  type:
20
20
  - LSTN
21
21
  - LSTS
@@ -7,9 +7,9 @@ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/si
7
7
  meta_schema_version: 0.1.0
8
8
  name: laser_photons
9
9
  description: |-
10
- Number of laser photons at each photodetector.
10
+ Number of laser photons at each photo detector.
11
11
  short_description: |-
12
- Number of laser photons at each photodetector.
12
+ Number of laser photons at each photo detector.
13
13
  data:
14
14
  - type: double
15
15
  unit: dimensionless
@@ -3,7 +3,7 @@
3
3
  title: Schema for lightguide_efficiency_vs_incidence_angle model parameter
4
4
  version: 0.1.0
5
5
  meta_schema: simpipe-schema
6
- meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/simtools/schemas/data.metaschema.yml
6
+ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/simtools/schemas/model_parameter_and_data_schema.metaschema.yml
7
7
  meta_schema_version: 0.1.0
8
8
  name: lightguide_efficiency_vs_incidence_angle
9
9
  developer_note: |-
@@ -3,7 +3,7 @@
3
3
  title: Schema for lightguide_efficiency_vs_wavelength model parameter
4
4
  version: 0.1.0
5
5
  meta_schema: simpipe-schema
6
- meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/simtools/schemas/data.metaschema.yml
6
+ meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/src/simtools/schemas/model_parameter_and_data_schema.metaschema.yml
7
7
  meta_schema_version: 0.1.0
8
8
  name: lightguide_efficiency_vs_wavelength
9
9
  developer_note: |-
@@ -16,7 +16,7 @@ data:
16
16
  unit: dimensionless
17
17
  default: -1
18
18
  instrument:
19
- class: Camera
19
+ class: configuration_sim_telarray
20
20
  type:
21
21
  - LSTN
22
22
  - LSTS
@@ -13,7 +13,7 @@ data:
13
13
  unit: dimensionless
14
14
  default: -1
15
15
  instrument:
16
- class: Camera
16
+ class: configuration_sim_telarray
17
17
  type:
18
18
  - LSTN
19
19
  - LSTS
@@ -17,7 +17,7 @@ data:
17
17
  - type: string
18
18
  default: "Ranlux"
19
19
  instrument:
20
- class: Camera
20
+ class: configuration_sim_telarray
21
21
  type:
22
22
  - LSTN
23
23
  - LSTS
@@ -12,7 +12,7 @@ data:
12
12
  - type: boolean
13
13
  default: true
14
14
  instrument:
15
- class: Camera
15
+ class: configuration_sim_telarray
16
16
  type:
17
17
  - LSTN
18
18
  - LSTS
@@ -15,7 +15,7 @@ data:
15
15
  - type: boolean
16
16
  default: false
17
17
  instrument:
18
- class: Camera
18
+ class: configuration_sim_telarray
19
19
  type:
20
20
  - LSTN
21
21
  - LSTS
@@ -10,7 +10,7 @@ description: |-
10
10
  Mirror degradation factor for the secondary mirror (wavelength independent).
11
11
  Strictly interpreted as being for reflection on the secondary mirror of a
12
12
  dual-mirror telescope, and still gets applied in simulations where only
13
- the reflection on the primary mirror is bypassd (for example a
13
+ the reflection on the primary mirror is bypassed (for example a
14
14
  flat-fielding light source illuminating the camera via reflection on the
15
15
  secondary).
16
16
  short_description: |-
@@ -22,7 +22,7 @@ data:
22
22
  min: 0
23
23
  max: 10000
24
24
  instrument:
25
- class: Camera
25
+ class: configuration_sim_telarray
26
26
  type:
27
27
  - LSTN
28
28
  - LSTS
@@ -19,7 +19,7 @@ data:
19
19
  min: 0.0
20
20
  max: 10.0
21
21
  instrument:
22
- class: Camera
22
+ class: configuration_sim_telarray
23
23
  type:
24
24
  - LSTN
25
25
  - LSTS
@@ -0,0 +1,68 @@
1
+ ---
2
+ $schema: http://json-schema.org/draft-06/schema#
3
+ $ref: '#/definitions/ErrorMetrics'
4
+ title: Statistical Error Metrics Schema
5
+ description: |
6
+ YAML representation of simulation production configuration
7
+ metrics.
8
+ version: 0.1.0
9
+ name: production_configuration_metrics.metaschema
10
+ type: object
11
+ additionalProperties: false
12
+
13
+ definitions:
14
+ ErrorMetrics:
15
+ type: object
16
+ description: Definition of error metrics and validity ranges.
17
+ additionalProperties: false
18
+ properties:
19
+ uncertainty_effective_area:
20
+ $ref: '#/definitions/ErrorMetric'
21
+ energy_estimate:
22
+ $ref: '#/definitions/ErrorMetric'
23
+
24
+ ErrorMetric:
25
+ type: object
26
+ description: Error metric definition.
27
+ additionalProperties: false
28
+ properties:
29
+ description:
30
+ type: string
31
+ description: Description of the error metric.
32
+ target_error:
33
+ $ref: '#/definitions/TargetError'
34
+ energy_range:
35
+ $ref: '#/definitions/EnergyRange'
36
+ required:
37
+ - target_error
38
+ - energy_range
39
+
40
+ TargetError:
41
+ type: object
42
+ description: Target error specification.
43
+ additionalProperties: false
44
+ properties:
45
+ value:
46
+ type: number
47
+ description: Target error value.
48
+ required:
49
+ - value
50
+
51
+ EnergyRange:
52
+ type: object
53
+ description: Energy range specification.
54
+ additionalProperties: false
55
+ properties:
56
+ value:
57
+ type: array
58
+ description: Energy range values.
59
+ items:
60
+ type: number
61
+ minItems: 2
62
+ maxItems: 2
63
+ unit:
64
+ type: string
65
+ description: Energy unit.
66
+ required:
67
+ - value
68
+ - unit
@@ -0,0 +1,41 @@
1
+ ---
2
+ $schema: http://json-schema.org/draft-06/schema#
3
+ $ref: '#/definitions/ProductionModelTable'
4
+ title: SimPipe DB Production Model Metaschema
5
+ description: |
6
+ YAML representation of DB production model metaschema
7
+ (based on simulation model DB).
8
+ version: 0.1.0
9
+ name: production_table.metaschema
10
+ type: object
11
+ additionalProperties: false
12
+
13
+ definitions:
14
+ ProductionModelTable:
15
+ properties:
16
+ model_version:
17
+ type: string
18
+ description: Model version.
19
+ pattern: '^\d+\.\d+\.\d+$'
20
+ parameters:
21
+ type: object
22
+ description: Model parameters.
23
+ additionalProperties:
24
+ type: object
25
+ description: Model parameter.
26
+ additionalProperties:
27
+ type: string
28
+ description: Parameter version (semantical versioning).
29
+ pattern: '^\d+\.\d+\.\d+$'
30
+ propertyNames:
31
+ description: Allowed parameter name patterns.
32
+ pattern: '^([A-Za-z](ST|LL)[N,S,x]-\d{2,3}|[A-Za-z](ST|LL)[N,S,x]-(design|FlashCam|NectarCam)|OBS-(North|South)|Dummy-Telescope)$'
33
+ design_model:
34
+ type: object
35
+ description: Design models.
36
+ additionalProperties:
37
+ type: string
38
+ description: Design model of a telescope
39
+ required:
40
+ - model_version
41
+ - parameters
@@ -153,8 +153,7 @@ class SimtelConfigReader:
153
153
 
154
154
  """
155
155
  self._logger.debug(
156
- f"Reading simtel config file {simtel_config_file} "
157
- f"for parameter {self.parameter_name}"
156
+ f"Reading simtel config file {simtel_config_file} for parameter {self.parameter_name}"
158
157
  )
159
158
  matching_lines = {}
160
159
  try: