lstosa 0.10.12__py3-none-any.whl → 0.10.13__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.10.12
3
+ Version: 0.10.13
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,5 +1,5 @@
1
1
  osa/__init__.py,sha256=crotf1NMTfNdZuCua_5T_jk3kvZrAAwVw4FPrfxv994,193
2
- osa/_version.py,sha256=iptzZkijfZOuLJEgzcWGVRKqYSdbRz1HyJHUd9sgNhw,415
2
+ osa/_version.py,sha256=c5Lgl5D7jKlT_lWX9E4XMtEyMNdztYHiVhsN32Kvd8g,415
3
3
  osa/conftest.py,sha256=NBeGqTUBRqCPirDSDPny4bf1e_OJXbiePazHwaoQPY4,20072
4
4
  osa/job.py,sha256=OnjF88kTVdURcrIR9iPenATNx2HteDFlAKtOX4fD144,26603
5
5
  osa/osadb.py,sha256=pkCuYbEG-moHG0uQHxwB7giQAv2XTld4HJ5gdn1F1hA,2422
@@ -39,12 +39,12 @@ osa/scripts/calibration_pipeline.py,sha256=g9o1chqCRRSo7GNuQZRABjGnJYjZyfhkPgRLP
39
39
  osa/scripts/closer.py,sha256=p11tq2YJLwsRK_CBWXU1465ArzLJ0qWlUCnubGqLPUo,18277
40
40
  osa/scripts/copy_datacheck.py,sha256=tfDs6oTdPbii4BOXp6bTHuED0xNJeqaPFrv6Ed7ZnWc,3104
41
41
  osa/scripts/datasequence.py,sha256=gXAp8arbLPEK-sca9VnME6-2XfUzBFIoEFchlUZYrXI,9260
42
- osa/scripts/gain_selection.py,sha256=0ZOFgX-ZaJFoe_B0UI5NYRr7CmeHL1_bxjlB0n8E5hs,13775
42
+ osa/scripts/gain_selection.py,sha256=w9ymJrADcp5G6YTBYSwPy_3ZFdenYv2KChv3s_GMnAc,13809
43
43
  osa/scripts/provprocess.py,sha256=mufkZe6_qwH3DGqTFxINIc01hciF5RMpw3n_Mp7vwXU,18629
44
44
  osa/scripts/reprocess_longterm.py,sha256=wMfc3UVwickkGFiviIhOlB9ebMIqQPWoUrgg8hQ78Lg,2138
45
45
  osa/scripts/reprocessing.py,sha256=D-J8Rl3GrkWpxYkk6ci79oJOMewgGdxLkQgaHCAZuqs,3417
46
46
  osa/scripts/sequencer.py,sha256=GM6B17YQNJfBOosWx0gpXBy4fIwga3DC4T2nGapGQEU,8763
47
- osa/scripts/sequencer_webmaker.py,sha256=99P1rJiBlvNidDeppvtw4kOoAfsOxSMJ2sm4xlgKCE8,4640
47
+ osa/scripts/sequencer_webmaker.py,sha256=YticifQRicxCp5YMeOaP4L8ZRWl7KF2raceVrCf2Ras,4765
48
48
  osa/scripts/show_run_summary.py,sha256=SoDLVKdQHOJkfenFguBOfXf10Gyv7heXSQAFnDVZqMs,2468
49
49
  osa/scripts/simulate_processing.py,sha256=NiRVYiwZENt_mnKncytgJT23_-tJMb1B5PswM12nnX4,6941
50
50
  osa/scripts/update_source_catalog.py,sha256=GHwWFc-y6S4KkUJxUVM5drdAnVDD0-n3D-Tv3CCmh4E,7218
@@ -59,7 +59,7 @@ osa/tests/test_raw.py,sha256=WkgwEc_vY0D6nREo-BSm6F-5xDpqidMC0DkS86pXlRU,1058
59
59
  osa/tests/test_report.py,sha256=OY-EsrXytoS6esfjUeLnIAmCMIw9EzoGD-elySafyhE,1365
60
60
  osa/tests/test_veto.py,sha256=UIsooji_5Z8TtAhc0UlD2VqheVd9DBufuMxinJ3e0w8,1066
61
61
  osa/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
- osa/utils/cliopts.py,sha256=XeVu6TjrIEoqQEqf4meIKSiRyobMqYTLuggj-iGU4SQ,14126
62
+ osa/utils/cliopts.py,sha256=PFxGh89SJBWjvqrWit05JFUeXnNz4w_ZXqVp4uZwlcc,14319
63
63
  osa/utils/iofile.py,sha256=kJ7KB1suynhS2cTf7EeHwhMXq3delC_ls2HFpCzvsZo,2021
64
64
  osa/utils/logging.py,sha256=1WcNPjjslo3y25jcEY_fe0yXOeJ6frZrGLAy1GJpu_k,1491
65
65
  osa/utils/mail.py,sha256=uQfqPQdiOVHTvEAXr9H15a7-g9DtYVNKjMEb9GnI0oY,554
@@ -74,9 +74,9 @@ osa/workflow/dl3.py,sha256=kz7L5jcKHFJ--UdQ8HQKLzWO6nxc2LLOTz42ExcqzTk,9921
74
74
  osa/workflow/stages.py,sha256=WYgUM2XDIaUjCc4_Zs_VSGW6gk73EaKcHk6ZMnPds74,6692
75
75
  osa/workflow/tests/test_dl3.py,sha256=aY5bb-8OcZGAXG3JPCZihChzkA_GsWjRIa31BHZn3Dg,299
76
76
  osa/workflow/tests/test_stages.py,sha256=TmC00XFACWZp740TQeFaokWi3C50ovj_XGiySWrrdZk,3944
77
- lstosa-0.10.12.dist-info/LICENSE,sha256=h6iWot11EtMvaDaS_AvCHKLTNByO5wEbMyNj1c90y1c,1519
78
- lstosa-0.10.12.dist-info/METADATA,sha256=HmGZoRfvvKndHKpKPPxBbsC85Rj7Eel1Q9lQhbZyJoM,7349
79
- lstosa-0.10.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
80
- lstosa-0.10.12.dist-info/entry_points.txt,sha256=e5x7xddaqZhfdZPsErhHInqR4UGHsxXIlylEbTie0_8,928
81
- lstosa-0.10.12.dist-info/top_level.txt,sha256=_Tj8zVHdrOoWZuuWTHbDpNofxW0imUmKdlXhnxsXJek,4
82
- lstosa-0.10.12.dist-info/RECORD,,
77
+ lstosa-0.10.13.dist-info/LICENSE,sha256=h6iWot11EtMvaDaS_AvCHKLTNByO5wEbMyNj1c90y1c,1519
78
+ lstosa-0.10.13.dist-info/METADATA,sha256=_1DEBMLyudnTjOHqjqJXNun16SP7dmLWWzZfm28B7Z0,7349
79
+ lstosa-0.10.13.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
80
+ lstosa-0.10.13.dist-info/entry_points.txt,sha256=e5x7xddaqZhfdZPsErhHInqR4UGHsxXIlylEbTie0_8,928
81
+ lstosa-0.10.13.dist-info/top_level.txt,sha256=_Tj8zVHdrOoWZuuWTHbDpNofxW0imUmKdlXhnxsXJek,4
82
+ lstosa-0.10.13.dist-info/RECORD,,
osa/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.10.12'
16
- __version_tuple__ = version_tuple = (0, 10, 12)
15
+ __version__ = version = '0.10.13'
16
+ __version_tuple__ = version_tuple = (0, 10, 13)
@@ -208,7 +208,8 @@ def apply_gain_selection(date: str, start: int, end: int, output_basedir: Path =
208
208
  log.info(f"Found {len(calib_runs)} NO-DATA runs")
209
209
 
210
210
  for run in calib_runs:
211
- log.info(f"Copying R0 files corresponding to run {run} directly to {output_dir}")
211
+ run_id = run["run_id"]
212
+ log.info(f"Copying R0 files corresponding to run {run_id} directly to {output_dir}")
212
213
  # Avoid copying files while it is still night time
213
214
  wait_for_daytime(start, end)
214
215
 
@@ -55,7 +55,7 @@ def html_content(body: str, date: str) -> str:
55
55
  )
56
56
 
57
57
 
58
- def get_sequencer_output(date: str, config: str, test=False) -> list:
58
+ def get_sequencer_output(date: str, config: str, test=False, no_gainsel=False) -> list:
59
59
  """Call sequencer to get table with the sequencer status report.
60
60
 
61
61
  Parameters
@@ -82,6 +82,9 @@ def get_sequencer_output(date: str, config: str, test=False) -> list:
82
82
  options.tel_id,
83
83
  ]
84
84
 
85
+ if no_gainsel:
86
+ commandargs.insert(1, "--no-gainsel")
87
+
85
88
  if test:
86
89
  commandargs.insert(-1, "-t")
87
90
 
@@ -144,7 +147,7 @@ def main():
144
147
  sys.exit(1)
145
148
 
146
149
  # Get the table with the sequencer status report:
147
- lines = get_sequencer_output(date, args.config, args.test)
150
+ lines = get_sequencer_output(date, args.config, test=args.test, no_gainsel=args.no_gainsel)
148
151
 
149
152
  # Build the html sequencer table that will be place in the body of the HTML file
150
153
  matrix = lines_to_matrix(lines)
osa/utils/cliopts.py CHANGED
@@ -447,6 +447,12 @@ def sequencer_webmaker_argparser():
447
447
  parser = ArgumentParser(
448
448
  description="Script to make an xhtml from LSTOSA sequencer output", parents=[common_parser]
449
449
  )
450
+ parser.add_argument(
451
+ "--no-gainsel",
452
+ action="store_true",
453
+ default=False,
454
+ help="Do not check if the gain selection finished correctly (default False)",
455
+ )
450
456
  options.tel_id = "LST1"
451
457
  options.prod_id = get_prod_id()
452
458