lstosa 0.11.2__py3-none-any.whl → 0.11.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lstosa
3
- Version: 0.11.2
3
+ Version: 0.11.4
4
4
  Summary: Onsite analysis pipeline for the CTA LST-1
5
5
  Author: María Láinez, José Enrique Ruiz, Lab Saha, Andrés Baquero, José Luis Contreras, Maximilian Linhoff
6
6
  Author-email: Daniel Morcuende <dmorcuen@ucm.es>
@@ -1,9 +1,9 @@
1
1
  osa/__init__.py,sha256=crotf1NMTfNdZuCua_5T_jk3kvZrAAwVw4FPrfxv994,193
2
- osa/_version.py,sha256=1Ph4pvOzDnjh4d_nPyelQAADT24a8meFvWDaUi3ljuY,513
2
+ osa/_version.py,sha256=CM88WwpDGbWDl4mS-7JC0G71hVYzQYpuyk0Gyep3nBg,706
3
3
  osa/conftest.py,sha256=AdSHdWqjeMTgIeZEF8fdw6eSliySouivMWCPIqUV2os,24667
4
- osa/job.py,sha256=gLf-e7QRIvNhjGRINDTR5-k2PyYQqbEvPnUcg0DaVdw,27791
4
+ osa/job.py,sha256=CunwW7xA4mWEocS6KkDZ1K6h_LYh_ePZMyGHyCa6CKg,27863
5
5
  osa/osadb.py,sha256=pkCuYbEG-moHG0uQHxwB7giQAv2XTld4HJ5gdn1F1hA,2422
6
- osa/paths.py,sha256=_3-avNABr7I2koiOo4MMDymi98l7JdIj1zUVbTjHdYg,18011
6
+ osa/paths.py,sha256=B8-HA39YmThl2Dd9p3OFuYSYJf9MWg4Qdc0zmAhWjOE,18100
7
7
  osa/raw.py,sha256=ZNIsuqfx5ljoz_hwhSuafdKf-wr8-cxRJmel-A2endg,1337
8
8
  osa/report.py,sha256=sL2V7n8Y_UUaSDbWJY2o4UxDb4FU5AaFIRR8R25DB8o,4634
9
9
  osa/version.py,sha256=9T2TtuGBQeOy5PJDxMCeGlqx5baxLaq47VmFTDc09z8,796
@@ -12,7 +12,7 @@ osa/configs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  osa/configs/config.py,sha256=cX0Vr4sorBVQ2KRqPIRSEGENKH_uC5lrgVHx1hp6YTk,1148
13
13
  osa/configs/datamodel.py,sha256=L_WRM91PBlMrtuE30akh7YR-56P0g9D994qzKSfhNJc,1950
14
14
  osa/configs/options.py,sha256=WbsyKhOs1Ud4Yt21O8KcISUvJYmhipa8vl_pxD_TZf4,558
15
- osa/configs/sequencer.cfg,sha256=VALe3KDii6UPOkEjI2ZsjV4nhswR8h_t4UUu85jWU4s,5624
15
+ osa/configs/sequencer.cfg,sha256=49m-umbLo9w4gCv1oEdvFqukCh1py2nJDduOu28b_Qc,5652
16
16
  osa/high_level/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  osa/high_level/selection_cuts.toml,sha256=ReSmcKtOPZY5JsZ9ExnxYdz7OrJEB8gghCbzHmeOyFg,128
18
18
  osa/high_level/significance.py,sha256=mMeG_y2wDnt0O2lSosYkSjaGZQl0V4GnuFrqKwSKSbE,9066
@@ -39,12 +39,12 @@ osa/scripts/calibration_pipeline.py,sha256=oWX2L9WIofVHp5qYsX3YMfwoslfiUgnXtWA2E
39
39
  osa/scripts/closer.py,sha256=vhoe9wkvPvMc5O_kXqAiBuWeqm_KrBpYzgb9zs9ZORw,21718
40
40
  osa/scripts/copy_datacheck.py,sha256=rAJu5-5oJxspynjYqVWLDKnXTF7Ib9xtzSf3_DiIHsk,3212
41
41
  osa/scripts/datasequence.py,sha256=0EZYlkX7ouaD66Ia2a5SWKbL0Fhlk8p4knKh0TG-2Gw,8592
42
- osa/scripts/gain_selection.py,sha256=PUG1J2V2SIboVKXJ-u4-h_XJyOGzfurazPu37M7lmhA,23238
42
+ osa/scripts/gain_selection.py,sha256=1-wUCKuwI0W7yjja951sTXTKsGBl5YunLYcT1TwhCMQ,23240
43
43
  osa/scripts/gainsel_webmaker.py,sha256=40_DX7RUmImX-31iqRTFPEUvdVXXPSKp0xMEJWuAu80,5006
44
44
  osa/scripts/provprocess.py,sha256=Zv8sHTOgGNuEzu1QPUF142VQbHyfOsrxO073-xA6KG8,19107
45
45
  osa/scripts/reprocess_longterm.py,sha256=wMfc3UVwickkGFiviIhOlB9ebMIqQPWoUrgg8hQ78Lg,2138
46
46
  osa/scripts/reprocessing.py,sha256=IL30e2McFA0EGbzvkTXdzmKJGBTbafYlCA-PsafyzyY,4571
47
- osa/scripts/sequencer.py,sha256=2t-fcD1pTvYV54vFSxxKID-L7pkRg7geXo-E43cnL6M,11927
47
+ osa/scripts/sequencer.py,sha256=TpxQPY4K_CpIpvfqSdpgf8737utCeMZw0ozrslmDlmo,12162
48
48
  osa/scripts/sequencer_catB_tailcuts.py,sha256=zVBuCBiiIoO3HKHbJ0zqaDtuwxkxcziR4T5i-2WyDX8,10476
49
49
  osa/scripts/sequencer_webmaker.py,sha256=a9okC-l9UMJHELTLLM2Q933-JELFOhXEbbH1Kbp1E8g,4936
50
50
  osa/scripts/show_run_summary.py,sha256=ofznLdoFHKQB-TELD6g5zMqD_TE9M9BuJR12zHvNdXE,2518
@@ -76,9 +76,9 @@ osa/workflow/dl3.py,sha256=ZMXPrdJA0WOxDiHEW9sdM2vmYix8R3eSMTGc6o42yxg,9860
76
76
  osa/workflow/stages.py,sha256=ILg91VyNXcy--si7CpDa1UFRiugqIH6nKl10Ru2zZVc,7422
77
77
  osa/workflow/tests/test_dl3.py,sha256=81Vt4lNxNjdKi_ehzymqfFWFjncw7GuQcix9S0Yigaw,384
78
78
  osa/workflow/tests/test_stages.py,sha256=aslfOIjf-rvf3r9N7NtimaOKkVB6K1M3bidgHOzRkMs,3985
79
- lstosa-0.11.2.dist-info/LICENSE,sha256=h6iWot11EtMvaDaS_AvCHKLTNByO5wEbMyNj1c90y1c,1519
80
- lstosa-0.11.2.dist-info/METADATA,sha256=EiJmaibt0JPYuEQlXDwbpK3JEeZGLajGf8b9K79LQ5A,7302
81
- lstosa-0.11.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
82
- lstosa-0.11.2.dist-info/entry_points.txt,sha256=CzDKpLjZZQm8jJBxOVpMR8Czpgg_Yh-k6IPETp30VZE,1048
83
- lstosa-0.11.2.dist-info/top_level.txt,sha256=_Tj8zVHdrOoWZuuWTHbDpNofxW0imUmKdlXhnxsXJek,4
84
- lstosa-0.11.2.dist-info/RECORD,,
79
+ lstosa-0.11.4.dist-info/LICENSE,sha256=h6iWot11EtMvaDaS_AvCHKLTNByO5wEbMyNj1c90y1c,1519
80
+ lstosa-0.11.4.dist-info/METADATA,sha256=-Xpxb7cFIvr3dqwB0rWr1Ocbeqjcpjnc5tgr5jtvOqA,7302
81
+ lstosa-0.11.4.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
82
+ lstosa-0.11.4.dist-info/entry_points.txt,sha256=CzDKpLjZZQm8jJBxOVpMR8Czpgg_Yh-k6IPETp30VZE,1048
83
+ lstosa-0.11.4.dist-info/top_level.txt,sha256=_Tj8zVHdrOoWZuuWTHbDpNofxW0imUmKdlXhnxsXJek,4
84
+ lstosa-0.11.4.dist-info/RECORD,,
osa/_version.py CHANGED
@@ -1,7 +1,14 @@
1
1
  # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
3
 
4
- __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
5
12
 
6
13
  TYPE_CHECKING = False
7
14
  if TYPE_CHECKING:
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
9
16
  from typing import Union
10
17
 
11
18
  VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
12
20
  else:
13
21
  VERSION_TUPLE = object
22
+ COMMIT_ID = object
14
23
 
15
24
  version: str
16
25
  __version__: str
17
26
  __version_tuple__: VERSION_TUPLE
18
27
  version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
19
30
 
20
- __version__ = version = '0.11.2'
21
- __version_tuple__ = version_tuple = (0, 11, 2)
31
+ __version__ = version = '0.11.4'
32
+ __version_tuple__ = version_tuple = (0, 11, 4)
33
+
34
+ __commit_id__ = commit_id = None
osa/configs/sequencer.cfg CHANGED
@@ -44,6 +44,7 @@ PROD_ID: v0.1.0
44
44
  # Change this to produce a different DL1b or DL2 sub-productions.
45
45
  # Otherwise, keep it empty to use the common PROD-ID
46
46
  DL1_PROD_ID: tailcut84
47
+ DL1_PROD_ID_PREFIX: tailcut
47
48
  DL2_PROD_ID: model2
48
49
 
49
50
  [lstchain]
osa/job.py CHANGED
@@ -99,7 +99,10 @@ def are_all_jobs_correctly_finished(sequence_list):
99
99
  flag = True
100
100
  analysis_directory = Path(options.directory)
101
101
  for sequence in sequence_list:
102
- history_files_list = analysis_directory.rglob(f"*{sequence.run}*.history")
102
+ if sequence.type != "DATA":
103
+ continue
104
+ else:
105
+ history_files_list = analysis_directory.rglob(f"*{sequence.run}*.history")
103
106
 
104
107
  if not options.test:
105
108
  try:
@@ -719,7 +722,7 @@ def get_sacct_output(sacct_output: StringIO) -> pd.DataFrame:
719
722
 
720
723
  # Keep only the jobs corresponding to OSA sequences
721
724
  sacct_output = sacct_output[
722
- (sacct_output["JobName"].str.contains("batch"))
725
+ (~sacct_output["JobID"].str.contains(r"\."))
723
726
  | (sacct_output["JobName"].str.contains("LST1"))
724
727
  ]
725
728
 
osa/paths.py CHANGED
@@ -433,11 +433,12 @@ def get_dl1_prod_id(config_filename):
433
433
 
434
434
  picture_thresh = data["tailcuts_clean_with_pedestal_threshold"]["picture_thresh"]
435
435
  boundary_thresh = data["tailcuts_clean_with_pedestal_threshold"]["boundary_thresh"]
436
+ dl1_prod_id_prefix = cfg.get("LST1", "DL1_PROD_ID_PREFIX")
436
437
 
437
438
  if boundary_thresh == 4:
438
- return f"tailcut{picture_thresh}{boundary_thresh}"
439
+ return f"{dl1_prod_id_prefix}{picture_thresh}{boundary_thresh}"
439
440
  else:
440
- return f"tailcut{picture_thresh}{boundary_thresh:02d}"
441
+ return f"{dl1_prod_id_prefix}{picture_thresh}{boundary_thresh:02d}"
441
442
 
442
443
 
443
444
  def get_dl2_nsb_prod_id(rf_model: Path) -> str:
@@ -224,10 +224,10 @@ def launch_gainsel_for_data_run(
224
224
  else:
225
225
  log.warning(f"Gain selection failed for run {run_id:05d}.{subrun:04d}")
226
226
  elif gainsel_rc == "0":
227
- log.debug(f"Gain selection finished successfully for run {run_id:05d}.{subrun:04d},"
227
+ log.debug(f"Gain selection finished successfully for run {run_id:05d}.{subrun:04d}, "
228
228
  "no additional jobs will be submitted for this subrun.")
229
229
  else:
230
- log.debug("Creating and launching the gain selection sbatch script for subrun {run_id:05d}.{subrun:04d}")
230
+ log.debug(f"Creating and launching the gain selection sbatch script for subrun {run_id:05d}.{subrun:04d}")
231
231
  if not simulate:
232
232
  log_file = log_dir / f"r0_to_r0g_{run_id:05d}.{subrun:04d}.log"
233
233
  job_file = log_dir / f"gain_selection_{run_id:05d}.{subrun:04d}.sh"
osa/scripts/sequencer.py CHANGED
@@ -238,7 +238,10 @@ def get_status_for_sequence(sequence, data_level) -> int:
238
238
  elif data_level == "DATACHECK":
239
239
  try:
240
240
  directory = options.directory / sequence.dl1_prod_id
241
+ alternative_directory = destination_dir(concept="DATACHECK", create_dir=False, dl1_prod_id=sequence.dl1_prod_id)
241
242
  files = list(directory.glob(f"datacheck_dl1_LST-1*{sequence.run}*.h5"))
243
+ files += list(alternative_directory.glob(f"datacheck_dl1_LST-1*{sequence.run}*.h5"))
244
+
242
245
  except AttributeError:
243
246
  return 0
244
247