Skip to content

Commit 810bd45

Browse files
committed
pre-commit
1 parent 7cde988 commit 810bd45

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

DL2/generate_DL2_file.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def cli(filenames, cut_level, debug, output, layout, event_type):
111111
if event_type > 0:
112112
logging.info(f"Number of events within event_type file: {len(event_types)}")
113113
ratio = np.sum(event_types == -1) / len(event_types)
114-
logging.info(
115-
f"Ratio of training to simulated events: {ratio}"
116-
)
114+
logging.info(f"Ratio of training to simulated events: {ratio}")
117115
logging.info(f"len(data_mask): {len(data_mask)}")
118116
data_mask[data_mask] = event_types == event_type
119117
if np.sum(data_mask) == 0:
@@ -165,12 +163,12 @@ def cli(filenames, cut_level, debug, output, layout, event_type):
165163
# Create primary HDU:
166164
primary_hdu = fits.PrimaryHDU()
167165
primary_hdu.header["TELESCOP"] = layout, "Telescope and array codename"
168-
primary_hdu.header[
169-
"COMMENT"
170-
] = "FITS (Flexible Image Transport System) format is defined in 'Astronomy"
171-
primary_hdu.header[
172-
"COMMENT"
173-
] = "and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H"
166+
primary_hdu.header["COMMENT"] = (
167+
"FITS (Flexible Image Transport System) format is defined in 'Astronomy"
168+
)
169+
primary_hdu.header["COMMENT"] = (
170+
"and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H"
171+
)
174172

175173
# Create HDU
176174
header = fits.Header()

DL3-IRFs/src/test_cta_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Test program for OGADF scheme using ogadf_schema
22
"""
3-
usage: python src/test_cta_file.py <file.fits.gz>
4-
(only 3D implemented at this point)
3+
usage: python src/test_cta_file.py <file.fits.gz>
4+
(only 3D implemented at this point)
55
"""
66
import logging
77
import sys

0 commit comments

Comments
 (0)