gwsim 0.1.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 (103) hide show
  1. gwsim/__init__.py +11 -0
  2. gwsim/__main__.py +8 -0
  3. gwsim/cli/__init__.py +0 -0
  4. gwsim/cli/config.py +88 -0
  5. gwsim/cli/default_config.py +56 -0
  6. gwsim/cli/main.py +101 -0
  7. gwsim/cli/merge.py +150 -0
  8. gwsim/cli/repository/__init__.py +0 -0
  9. gwsim/cli/repository/create.py +91 -0
  10. gwsim/cli/repository/delete.py +51 -0
  11. gwsim/cli/repository/download.py +54 -0
  12. gwsim/cli/repository/list_depositions.py +63 -0
  13. gwsim/cli/repository/main.py +38 -0
  14. gwsim/cli/repository/metadata/__init__.py +0 -0
  15. gwsim/cli/repository/metadata/main.py +24 -0
  16. gwsim/cli/repository/metadata/update.py +58 -0
  17. gwsim/cli/repository/publish.py +52 -0
  18. gwsim/cli/repository/upload.py +74 -0
  19. gwsim/cli/repository/utils.py +47 -0
  20. gwsim/cli/repository/verify.py +61 -0
  21. gwsim/cli/simulate.py +220 -0
  22. gwsim/cli/simulate_utils.py +596 -0
  23. gwsim/cli/utils/__init__.py +85 -0
  24. gwsim/cli/utils/checkpoint.py +178 -0
  25. gwsim/cli/utils/config.py +347 -0
  26. gwsim/cli/utils/hash.py +23 -0
  27. gwsim/cli/utils/retry.py +62 -0
  28. gwsim/cli/utils/simulation_plan.py +439 -0
  29. gwsim/cli/utils/template.py +56 -0
  30. gwsim/cli/utils/utils.py +149 -0
  31. gwsim/cli/validate.py +255 -0
  32. gwsim/data/__init__.py +8 -0
  33. gwsim/data/serialize/__init__.py +9 -0
  34. gwsim/data/serialize/decoder.py +59 -0
  35. gwsim/data/serialize/encoder.py +44 -0
  36. gwsim/data/serialize/serializable.py +33 -0
  37. gwsim/data/time_series/__init__.py +3 -0
  38. gwsim/data/time_series/inject.py +104 -0
  39. gwsim/data/time_series/time_series.py +355 -0
  40. gwsim/data/time_series/time_series_list.py +182 -0
  41. gwsim/detector/__init__.py +8 -0
  42. gwsim/detector/base.py +156 -0
  43. gwsim/detector/detectors/E1_2L_Aligned_Sardinia.interferometer +22 -0
  44. gwsim/detector/detectors/E1_2L_Misaligned_Sardinia.interferometer +22 -0
  45. gwsim/detector/detectors/E1_Triangle_EMR.interferometer +19 -0
  46. gwsim/detector/detectors/E1_Triangle_Sardinia.interferometer +19 -0
  47. gwsim/detector/detectors/E2_2L_Aligned_EMR.interferometer +22 -0
  48. gwsim/detector/detectors/E2_2L_Misaligned_EMR.interferometer +22 -0
  49. gwsim/detector/detectors/E2_Triangle_EMR.interferometer +19 -0
  50. gwsim/detector/detectors/E2_Triangle_Sardinia.interferometer +19 -0
  51. gwsim/detector/detectors/E3_Triangle_EMR.interferometer +19 -0
  52. gwsim/detector/detectors/E3_Triangle_Sardinia.interferometer +19 -0
  53. gwsim/detector/noise_curves/ET_10_HF_psd.txt +3000 -0
  54. gwsim/detector/noise_curves/ET_10_full_cryo_psd.txt +3000 -0
  55. gwsim/detector/noise_curves/ET_15_HF_psd.txt +3000 -0
  56. gwsim/detector/noise_curves/ET_15_full_cryo_psd.txt +3000 -0
  57. gwsim/detector/noise_curves/ET_20_HF_psd.txt +3000 -0
  58. gwsim/detector/noise_curves/ET_20_full_cryo_psd.txt +3000 -0
  59. gwsim/detector/noise_curves/ET_D_psd.txt +3000 -0
  60. gwsim/detector/utils.py +90 -0
  61. gwsim/glitch/__init__.py +7 -0
  62. gwsim/glitch/base.py +69 -0
  63. gwsim/mixin/__init__.py +8 -0
  64. gwsim/mixin/detector.py +203 -0
  65. gwsim/mixin/gwf.py +192 -0
  66. gwsim/mixin/population_reader.py +175 -0
  67. gwsim/mixin/randomness.py +107 -0
  68. gwsim/mixin/time_series.py +295 -0
  69. gwsim/mixin/waveform.py +47 -0
  70. gwsim/noise/__init__.py +19 -0
  71. gwsim/noise/base.py +134 -0
  72. gwsim/noise/bilby_stationary_gaussian.py +117 -0
  73. gwsim/noise/colored_noise.py +275 -0
  74. gwsim/noise/correlated_noise.py +257 -0
  75. gwsim/noise/pycbc_stationary_gaussian.py +112 -0
  76. gwsim/noise/stationary_gaussian.py +44 -0
  77. gwsim/noise/white_noise.py +51 -0
  78. gwsim/repository/__init__.py +0 -0
  79. gwsim/repository/zenodo.py +269 -0
  80. gwsim/signal/__init__.py +11 -0
  81. gwsim/signal/base.py +137 -0
  82. gwsim/signal/cbc.py +61 -0
  83. gwsim/simulator/__init__.py +7 -0
  84. gwsim/simulator/base.py +315 -0
  85. gwsim/simulator/state.py +85 -0
  86. gwsim/utils/__init__.py +11 -0
  87. gwsim/utils/datetime_parser.py +44 -0
  88. gwsim/utils/et_2l_geometry.py +165 -0
  89. gwsim/utils/io.py +167 -0
  90. gwsim/utils/log.py +145 -0
  91. gwsim/utils/population.py +48 -0
  92. gwsim/utils/random.py +69 -0
  93. gwsim/utils/retry.py +75 -0
  94. gwsim/utils/triangular_et_geometry.py +164 -0
  95. gwsim/version.py +7 -0
  96. gwsim/waveform/__init__.py +7 -0
  97. gwsim/waveform/factory.py +83 -0
  98. gwsim/waveform/pycbc_wrapper.py +37 -0
  99. gwsim-0.1.0.dist-info/METADATA +157 -0
  100. gwsim-0.1.0.dist-info/RECORD +103 -0
  101. gwsim-0.1.0.dist-info/WHEEL +4 -0
  102. gwsim-0.1.0.dist-info/entry_points.txt +2 -0
  103. gwsim-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,22 @@
1
+ # Configuration for detector E1 of the ET 2L aligned network, following Bilby convention.
2
+ # E1 is located in Sardinia.
3
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
4
+ # E2 is located in the Meuse-Rhine region.
5
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper.
6
+ # The detector arms are defined on the tangent plane at the vertex position.
7
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
8
+ # Both vertices have the same height of the Virgo V1 vertex (51.88399887084961 m).
9
+ # Each detector is oriented w.r.t. its local North. The aligned configuration corresponds to a relative angle of 0◦ between E1 and E2 (North to East), from the COBA paper.
10
+ # The detector sensitivity follows the COBA paper.
11
+ name = 'E1_2L_aligned_sardinia'
12
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_15_full_cryo_psd.txt')
13
+ length = 15
14
+ minimum_frequency = 2
15
+ maximum_frequency = 10000
16
+ latitude = 40.5166666668747
17
+ longitude = 9.416666666888249
18
+ elevation = 51.884
19
+ xarm_azimuth = 70.56739976526205
20
+ yarm_azimuth = 340.56739976554263
21
+ xarm_tilt = 2.64278457158e-10
22
+ yarm_tilt = -2.11594666113e-17
@@ -0,0 +1,22 @@
1
+ # Configuration for detector E1 of the ET 2L misaligned network, following Bilby convention.
2
+ # E1 is located in Sardinia.
3
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
4
+ # E2 is located in the Meuse-Rhine region.
5
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper.
6
+ # The detector arms are defined on the tangent plane at the vertex position.
7
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
8
+ # Both vertices have the same height of the Virgo V1 vertex (51.88399887084961 m).
9
+ # Each detector is oriented w.r.t. its local North. The misaligned configuration corresponds to a relative angle of 45◦ between E1 and E2 (North to East), from the COBA paper.
10
+ # The detector sensitivity follows the COBA paper.
11
+ name = 'E1_2L_misaligned_sardinia'
12
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_15_full_cryo_psd.txt')
13
+ length = 15
14
+ minimum_frequency = 2
15
+ maximum_frequency = 10000
16
+ latitude = 40.5166666668747
17
+ longitude = 9.416666666888249
18
+ elevation = 51.884
19
+ xarm_azimuth = 70.56739976526205
20
+ yarm_azimuth = 340.56739976554263
21
+ xarm_tilt = 2.64278457158e-10
22
+ yarm_tilt = -2.11594666113e-17
@@ -0,0 +1,19 @@
1
+ # Configuration for detector E1 of the ET Triangle network located in the Meuse-Rhine region, following Bilby convention.
2
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
3
+ # The ET triangular configuration is derived from T1400308.
4
+ # The arms 1 and 2 of E1 are defined on the tangent plane at the E1 vertex position.
5
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
6
+ # The E1 vertex has the same height of the Virgo V1 vertex (51.88399887084961 m)
7
+ # The detector sensitivity follows the COBA paper.
8
+ name = 'E1_triangle_emr'
9
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_10_full_cryo_psd.txt')
10
+ length = 10
11
+ minimum_frequency = 2
12
+ maximum_frequency = 10000
13
+ latitude = 50.72305555575918
14
+ longitude = 5.920555555458927
15
+ elevation = 51.884
16
+ xarm_azimuth = 70.56739976411615
17
+ yarm_azimuth = 130.56739976371443
18
+ xarm_tilt = 2.93896654317e-10
19
+ yarm_tilt = 2.93896646164e-10
@@ -0,0 +1,19 @@
1
+ # Configuration for detector E1 of the ET Triangle network located in Sardinia, following Bilby convention.
2
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
3
+ # The ET triangular configuration is derived from T1400308.
4
+ # The arms 1 and 2 of E1 are defined on the tangent plane at the E1 vertex position.
5
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
6
+ # The E1 vertex has the same height of the Virgo V1 vertex (51.88399887084961 m)
7
+ # The detector sensitivity follows the COBA paper.
8
+ name = 'E1_triangle_sardinia'
9
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_10_full_cryo_psd.txt')
10
+ length = 10
11
+ minimum_frequency = 2
12
+ maximum_frequency = 10000
13
+ latitude = 40.5166666668747
14
+ longitude = 9.416666666888249
15
+ elevation = 51.884
16
+ xarm_azimuth = 70.56739976526205
17
+ yarm_azimuth = 130.56739976543332
18
+ xarm_tilt = 2.64278457158e-10
19
+ yarm_tilt = 2.64278469515e-10
@@ -0,0 +1,22 @@
1
+ # Configuration for detector E2 of the ET 2L aligned network, following Bilby convention.
2
+ # E1 is located in Sardinia.
3
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
4
+ # E2 is located in the Meuse-Rhine region.
5
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper.
6
+ # The detector arms are defined on the tangent plane at the vertex position.
7
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
8
+ # Both vertices have the same height of the Virgo V1 vertex (51.88399887084961 m).
9
+ # Each detector is oriented w.r.t. its local North. The aligned configuration corresponds to a relative angle of 0◦ between E1 and E2 (North to East), from the COBA paper.
10
+ # The detector sensitivity follows the COBA paper.
11
+ name = 'E2_2L_aligned_emr'
12
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_15_full_cryo_psd.txt')
13
+ length = 15
14
+ minimum_frequency = 2
15
+ maximum_frequency = 10000
16
+ latitude = 50.72305555575918
17
+ longitude = 5.920555555458927
18
+ elevation = 51.884
19
+ xarm_azimuth = 70.56739976411615
20
+ yarm_azimuth = 340.56739976382374
21
+ xarm_tilt = 2.93896654317e-10
22
+ yarm_tilt = 9.96198037968e-18
@@ -0,0 +1,22 @@
1
+ # Configuration for detector E2 of the ET 2L misaligned network, following Bilby convention.
2
+ # E1 is located in Sardinia.
3
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
4
+ # E2 is located in the Meuse-Rhine region.
5
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper.
6
+ # The detector arms are defined on the tangent plane at the vertex position.
7
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
8
+ # Both vertices have the same height of the Virgo V1 vertex (51.88399887084961 m).
9
+ # Each detector is oriented w.r.t. its local North. The misaligned configuration corresponds to a relative angle of 45◦ between E1 and E2 (North to East), from the COBA paper.
10
+ # The detector sensitivity follows the COBA paper.
11
+ name = 'E2_misaligned_emr'
12
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_15_full_cryo_psd.txt')
13
+ length = 15
14
+ minimum_frequency = 2
15
+ maximum_frequency = 10000
16
+ latitude = 50.72305555575918
17
+ longitude = 5.920555555458927
18
+ elevation = 51.884
19
+ xarm_azimuth = 25.567399766834725
20
+ yarm_azimuth = 295.56739976654234
21
+ xarm_tilt = -9.32242464849e-11
22
+ yarm_tilt = 1.01691246358e-17
@@ -0,0 +1,19 @@
1
+ # Configuration for detector E2 of the ET Triangle network located in the Meuse-Rhine region, following Bilby convention.
2
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
3
+ # The ET triangular configuration is derived from T1400308.
4
+ # The arms 1 and 2 of E1 are defined on the tangent plane at the E1 vertex position.
5
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
6
+ # The E1 vertex has the same height of the Virgo V1 vertex (51.88399887084961 m)
7
+ # The detector sensitivity follows the COBA paper.
8
+ name = 'E2_triangle_emr'
9
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_10_full_cryo_psd.txt')
10
+ length = 10
11
+ minimum_frequency = 2
12
+ maximum_frequency = 10000
13
+ latitude = 50.80781705209632
14
+ longitude = 5.967754811934958
15
+ elevation = 59.726
16
+ xarm_azimuth = 190.53081046539904
17
+ yarm_azimuth = 250.5308408925177
18
+ xarm_tilt = -0.000783073175756
19
+ yarm_tilt = -0.00156844142222
@@ -0,0 +1,19 @@
1
+ # Configuration for detector E2 of the ET Triangle network located in Sardinia, following Bilby convention.
2
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
3
+ # The ET triangular configuration is derived from T1400308.
4
+ # The arms 1 and 2 of E1 are defined on the tangent plane at the E1 vertex position.
5
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
6
+ # The E1 vertex has the same height of the Virgo V1 vertex (51.88399887084961 m)
7
+ # The detector sensitivity follows the COBA paper.
8
+ name = 'E2_triangle_sardinia'
9
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_10_full_cryo_psd.txt')
10
+ length = 10
11
+ minimum_frequency = 2
12
+ maximum_frequency = 10000
13
+ latitude = 40.60158246647564
14
+ longitude = 9.455973799867088
15
+ elevation = 59.739
16
+ xarm_azimuth = 190.5418104128176
17
+ yarm_azimuth = 250.54184090066977
18
+ xarm_tilt = -0.000783862464265
19
+ yarm_tilt = -0.0015710370848
@@ -0,0 +1,19 @@
1
+ # Configuration for detector E3 of the ET Triangle network located in the Meuse-Rhine region, following Bilby convention.
2
+ # The coordinates of the Meuse-Rhine region (latitude 50◦43’23”, longitude 5◦55’14”) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
3
+ # The ET triangular configuration is derived from T1400308.
4
+ # The arms 1 and 2 of E1 are defined on the tangent plane at the E1 vertex position.
5
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
6
+ # The E1 vertex has the same height of the Virgo V1 vertex (51.88399887084961 m)
7
+ # The detector sensitivity follows the COBA paper.
8
+ name = 'E3_triangle_emr'
9
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_10_full_cryo_psd.txt')
10
+ length = 10
11
+ minimum_frequency = 2
12
+ maximum_frequency = 10000
13
+ latitude = 50.79130480148969
14
+ longitude = 5.828325122252091
15
+ elevation = 59.72
16
+ xarm_azimuth = 310.6388297577274
17
+ yarm_azimuth = 10.638860082286627
18
+ xarm_tilt = -0.00156712398434
19
+ yarm_tilt = -0.000781755733176
@@ -0,0 +1,19 @@
1
+ # Configuration for detector E3 of the ET Triangle network located in Sardinia, following Bilby convention.
2
+ # The coordinates of the Sardinia location (latitude 40◦31’, longitude 9◦25’) follows the COBA paper [Marica Branchesi et al JCAP07(2023)068].
3
+ # The ET triangular configuration is derived from T1400308.
4
+ # The arms 1 and 2 of E1 are defined on the tangent plane at the E1 vertex position.
5
+ # The arm 1 of E1 has the same azimuth angle (0.33916285632 rad) and altitude (0.0 rad) of the Virgo arm 1 in the local horizontal coordinate system center at the E1 vertex.
6
+ # The E1 vertex has the same height of the Virgo V1 vertex (51.88399887084961 m)
7
+ # The detector sensitivity follows the COBA paper.
8
+ name = 'E3_triangle_sardinia'
9
+ power_spectral_density = PowerSpectralDensity(psd_file='./noise_curves/ET_10_full_cryo_psd.txt')
10
+ length = 10
11
+ minimum_frequency = 2
12
+ maximum_frequency = 10000
13
+ latitude = 40.585048823916765
14
+ longitude = 9.339849816516432
15
+ elevation = 59.73
16
+ xarm_azimuth = 310.6173402960931
17
+ yarm_azimuth = 10.61737063612216
18
+ xarm_tilt = -0.00156913521227
19
+ yarm_tilt = -0.000781960584882