Skip to content

Commit 1816768

Browse files
Fix bug when no other search is done
1 parent 49879d8 commit 1816768

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

hendrics/efsearch.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def plot_transient_search(results, gif_name=None):
632632

633633
if not HAS_IMAGEIO:
634634
warnings.warn("imageio needed to save the transient search results into a gif image.")
635-
return None
635+
return []
636636

637637
mpl.use("Agg")
638638
if gif_name is None:
@@ -1728,8 +1728,10 @@ def _common_main(args, func):
17281728
oversample=oversample,
17291729
)
17301730
plot_transient_search(results, out_fname + "_transient.gif")
1731+
if not args.fast and not args.ffa:
1732+
continue
17311733

1732-
if not args.fast and not args.ffa and not args.transient:
1734+
if not args.fast and not args.ffa:
17331735
fdotmin = args.fdotmin if args.fdotmin is not None else 0
17341736
fdotmax = args.fdotmax if args.fdotmax is not None else 0
17351737
results = folding_search(
@@ -1787,6 +1789,7 @@ def _common_main(args, func):
17871789
M = length // segment_size
17881790

17891791
fdots = 0
1792+
17901793
if len(results) == 4:
17911794
frequencies, stats, step, length = results
17921795
elif len(results) == 6:

0 commit comments

Comments
 (0)