Skip to content

Commit

Permalink
cli bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soleti committed Dec 2, 2021
1 parent 2aad18a commit cbf90fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/simulate_pixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def run_simulation(input_filename,
pixel_layout,
detector_properties,
output_filename='',
output_filename,
response_file='../larndsim/response_44.npy',
light_lut_filename='../larndsim/lightLUT.npy',
bad_channels=None,
Expand Down Expand Up @@ -122,7 +122,7 @@ def run_simulation(input_filename,
if consts.light_simulated:
light_sim_dat = light_sim_dat[:n_tracks]

if 'n_photons' not in selected_tracks.dtype.names:
if 'n_photons' not in tracks.dtype.names:
n_photons = np.zeros(tracks.shape[0], dtype=[('n_photons', 'f4')])
tracks = rfn.merge_arrays((tracks, n_photons), flatten=True)

Expand Down

0 comments on commit cbf90fb

Please sign in to comment.