Skip to content

Commit

Permalink
setting snr_opt_options to None if not optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurTolley committed Oct 5, 2023
1 parent d48cfb7 commit ac755cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/pycbc_live
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ class LiveEventManager(object):
self.fu_cores = 1
# Convert SNR optimizer options into a string
self.snr_opt_options = snr_optimizer.args_to_string(args)
else:
self.snr_opt_options = None

if args.enable_embright_has_massgap:
if args.embright_massgap_max < self.mc_area_args['mass_bdary']['ns_max']:
Expand Down Expand Up @@ -327,7 +329,7 @@ class LiveEventManager(object):
cmd += exepath + ' '

# Add SNR optimization options to the command
if self.snr_opt_options:
if self.snr_opt_options is not None:
cmd += self.snr_opt_options

# Add data files according to the event we are optimizing
Expand Down

0 comments on commit ac755cd

Please sign in to comment.