Skip to content

Commit

Permalink
Merge pull request #115 from alurban/patch
Browse files Browse the repository at this point in the history
Patch to hveto for omega scan directories
  • Loading branch information
Alex L. Urban authored Mar 12, 2019
2 parents 1221312 + 2c13c87 commit a3444e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/hveto
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ try:
except ImportError: # python 2.x
import ConfigParser as configparser

from numpy import unique
import numpy

from matplotlib import use
use('agg')
Expand Down Expand Up @@ -810,10 +810,10 @@ logger.debug("Summary JSON written to %s" % f.name)
# -- generate workflow for omega scans

if args.omega_scans:
omegatimes = list(map(str, sorted(unique(
omegatimes = list(map(str, sorted(numpy.unique(
[t['time'] for r in rounds for t in r.scans]))))
logger.debug("Collected %d times to omega scan" % len(omegatimes))
newtimes = [t for t in omegatimes if not
newtimes = [t for t in numpy.round(omegatimes, 2) if not
os.path.exists(os.path.join(omegadir, str(t)))]
logger.debug("%d scans already complete or in progress, %d remaining"
% (len(omegatimes) - len(newtimes), len(newtimes)))
Expand Down

0 comments on commit a3444e6

Please sign in to comment.