Skip to content

Commit

Permalink
Calrify help message
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jun 12, 2023
1 parent 389fc5b commit af48618
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/pycbc_optimize_snr
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,12 @@ parser.add_argument('--pso-w', type=float, default=0.01,
'The hyperparameter w: the inertia parameter.')
parser.add_argument('--include-candidate-in-optimizer', action='store_true',
help='Include parameters of the candidate event in the '
'initialised array for the optimizer')
'initialised array for the optimizer. Only relevant for '
'--optimizer pso or differential_evolution')
parser.add_argument('--seed', type=int,
help='Seed to supply to the random generation of initial '
'array to pass to the optimizer. Only relevant for '
'--optimizer pso or differential_evolution')

scheme.insert_processing_option_group(parser)
fft.insert_fft_option_group(parser)
Expand All @@ -329,6 +334,9 @@ if args.optimizer == 'pso' and ps == None:
parser.error('You need to install pyswarms to use the pso optimizer.')
pycbc.init_logging(args.verbose)

if args.seed:
numpy.random.seed(args.seed)

scheme.verify_processing_options(args, parser)
fft.verify_fft_options(args, parser)

Expand Down

0 comments on commit af48618

Please sign in to comment.