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.
- {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/METADATA +4 -2
- {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/RECORD +133 -117
- {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/WHEEL +1 -1
- {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/entry_points.txt +6 -1
- simtools/_version.py +9 -4
- simtools/applications/calculate_trigger_rate.py +15 -38
- simtools/applications/convert_all_model_parameters_from_simtel.py +9 -29
- simtools/applications/convert_geo_coordinates_of_array_elements.py +47 -45
- simtools/applications/convert_model_parameter_from_simtel.py +2 -3
- simtools/applications/db_add_file_to_db.py +1 -3
- simtools/applications/db_add_simulation_model_from_repository_to_db.py +110 -0
- simtools/applications/db_add_value_from_json_to_db.py +1 -2
- simtools/applications/db_development_tools/write_array_elements_positions_to_repository.py +6 -6
- simtools/applications/db_get_file_from_db.py +11 -12
- simtools/applications/db_get_parameter_from_db.py +26 -35
- simtools/applications/derive_mirror_rnda.py +1 -2
- simtools/applications/derive_photon_electron_spectrum.py +99 -0
- simtools/applications/derive_psf_parameters.py +1 -0
- simtools/applications/docs_produce_array_element_report.py +71 -0
- simtools/applications/docs_produce_model_parameter_reports.py +63 -0
- simtools/applications/generate_array_config.py +17 -17
- simtools/applications/generate_corsika_histograms.py +2 -2
- simtools/applications/generate_regular_arrays.py +19 -17
- simtools/applications/generate_simtel_array_histograms.py +11 -48
- simtools/applications/production_derive_limits.py +95 -0
- simtools/applications/production_generate_simulation_config.py +37 -33
- simtools/applications/production_scale_events.py +4 -9
- simtools/applications/run_application.py +165 -0
- simtools/applications/simulate_light_emission.py +0 -4
- simtools/applications/simulate_prod.py +1 -1
- simtools/applications/simulate_prod_htcondor_generator.py +26 -26
- simtools/applications/submit_data_from_external.py +12 -4
- simtools/applications/submit_model_parameter_from_external.py +18 -11
- simtools/applications/validate_camera_efficiency.py +2 -2
- simtools/applications/validate_file_using_schema.py +26 -22
- simtools/camera/single_photon_electron_spectrum.py +168 -0
- simtools/configuration/commandline_parser.py +37 -1
- simtools/configuration/configurator.py +8 -10
- simtools/constants.py +10 -3
- simtools/corsika/corsika_config.py +19 -17
- simtools/corsika/corsika_histograms.py +5 -7
- simtools/corsika/corsika_histograms_visualize.py +2 -4
- simtools/data_model/data_reader.py +0 -3
- simtools/data_model/metadata_collector.py +20 -12
- simtools/data_model/metadata_model.py +8 -124
- simtools/data_model/model_data_writer.py +81 -75
- simtools/data_model/schema.py +220 -0
- simtools/data_model/validate_data.py +79 -68
- simtools/db/db_handler.py +350 -492
- simtools/db/db_model_upload.py +139 -0
- simtools/dependencies.py +112 -0
- simtools/io_operations/hdf5_handler.py +54 -24
- simtools/layout/array_layout.py +38 -32
- simtools/model/array_model.py +13 -7
- simtools/model/model_parameter.py +55 -54
- simtools/model/site_model.py +2 -2
- simtools/production_configuration/calculate_statistical_errors_grid_point.py +119 -145
- simtools/production_configuration/event_scaler.py +9 -35
- simtools/production_configuration/generate_simulation_config.py +9 -44
- simtools/production_configuration/interpolation_handler.py +9 -15
- simtools/production_configuration/limits_calculation.py +202 -0
- simtools/reporting/docs_read_parameters.py +310 -0
- simtools/runners/corsika_simtel_runner.py +4 -4
- simtools/schemas/{integration_tests_config.metaschema.yml → application_workflow.metaschema.yml} +61 -27
- simtools/schemas/array_elements.yml +8 -0
- simtools/schemas/input/MST_mirror_2f_measurements.schema.yml +39 -0
- simtools/schemas/input/single_pe_spectrum.schema.yml +38 -0
- simtools/schemas/model_parameter.metaschema.yml +103 -2
- simtools/schemas/model_parameter_and_data_schema.metaschema.yml +4 -1
- simtools/schemas/model_parameters/array_element_position_utm.schema.yml +1 -1
- simtools/schemas/model_parameters/array_window.schema.yml +37 -0
- simtools/schemas/model_parameters/asum_clipping.schema.yml +0 -4
- simtools/schemas/model_parameters/channels_per_chip.schema.yml +1 -1
- simtools/schemas/model_parameters/correct_nsb_spectrum_to_telescope_altitude.schema.yml +1 -1
- simtools/schemas/model_parameters/corsika_cherenkov_photon_bunch_size.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_cherenkov_photon_wavelength_range.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_iact_io_buffer.schema.yml +4 -2
- simtools/schemas/model_parameters/corsika_iact_max_bunches.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_iact_split_auto.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_longitudinal_shower_development.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml +2 -0
- simtools/schemas/model_parameters/corsika_starting_grammage.schema.yml +2 -0
- simtools/schemas/model_parameters/dsum_clipping.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_ignore_below.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_offset.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_pedsub.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_pre_clipping.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_prescale.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_presum_max.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_presum_shift.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_shaping.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_shaping_renormalize.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_threshold.schema.yml +0 -2
- simtools/schemas/model_parameters/dsum_zero_clip.schema.yml +0 -2
- simtools/schemas/model_parameters/fadc_compensate_pedestal.schema.yml +1 -1
- simtools/schemas/model_parameters/fadc_lg_compensate_pedestal.schema.yml +1 -1
- simtools/schemas/model_parameters/fadc_noise.schema.yml +3 -3
- simtools/schemas/model_parameters/fake_mirror_list.schema.yml +33 -0
- simtools/schemas/model_parameters/iobuf_maximum.schema.yml +1 -1
- simtools/schemas/model_parameters/iobuf_output_maximum.schema.yml +1 -1
- simtools/schemas/model_parameters/laser_photons.schema.yml +2 -2
- simtools/schemas/model_parameters/lightguide_efficiency_vs_incidence_angle.schema.yml +1 -1
- simtools/schemas/model_parameters/lightguide_efficiency_vs_wavelength.schema.yml +1 -1
- simtools/schemas/model_parameters/min_photoelectrons.schema.yml +1 -1
- simtools/schemas/model_parameters/min_photons.schema.yml +1 -1
- simtools/schemas/model_parameters/random_generator.schema.yml +1 -1
- simtools/schemas/model_parameters/sampled_output.schema.yml +1 -1
- simtools/schemas/model_parameters/save_pe_with_amplitude.schema.yml +1 -1
- simtools/schemas/model_parameters/secondary_mirror_degraded_reflection.schema.yml +1 -1
- simtools/schemas/model_parameters/store_photoelectrons.schema.yml +1 -1
- simtools/schemas/model_parameters/tailcut_scale.schema.yml +1 -1
- simtools/schemas/production_configuration_metrics.schema.yml +68 -0
- simtools/schemas/production_tables.schema.yml +41 -0
- simtools/simtel/simtel_config_reader.py +1 -2
- simtools/simtel/simtel_config_writer.py +6 -8
- simtools/simtel/simtel_io_histogram.py +32 -68
- simtools/simtel/simtel_io_histograms.py +17 -34
- simtools/simtel/simulator_array.py +2 -1
- simtools/simtel/simulator_camera_efficiency.py +6 -3
- simtools/simtel/simulator_light_emission.py +5 -6
- simtools/simtel/simulator_ray_tracing.py +3 -4
- simtools/testing/configuration.py +2 -1
- simtools/testing/helpers.py +6 -13
- simtools/testing/validate_output.py +141 -47
- simtools/utils/general.py +114 -14
- simtools/utils/names.py +299 -157
- simtools/utils/value_conversion.py +17 -13
- simtools/version.py +2 -2
- simtools/visualization/legend_handlers.py +2 -0
- simtools/applications/db_add_model_parameters_from_repository_to_db.py +0 -176
- simtools/db/db_array_elements.py +0 -130
- {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/LICENSE +0 -0
- {gammasimtools-0.9.0.dist-info → gammasimtools-0.11.0.dist-info}/top_level.txt +0 -0
- /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
|
|
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
|
|
@@ -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
|
|
11
|
+
Potentially useful for cross-talk calculations.
|
|
12
12
|
short_description: Number of channels per readout chip.
|
|
13
13
|
data:
|
|
14
14
|
- type: uint
|
|
@@ -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:
|
|
14
|
-
default:
|
|
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
|
|
@@ -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
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
@@ -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
|
|
10
|
+
Number of laser photons at each photo detector.
|
|
11
11
|
short_description: |-
|
|
12
|
-
Number of laser photons at each
|
|
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/
|
|
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/
|
|
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: |-
|
|
@@ -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
|
|
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: |-
|
|
@@ -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:
|