Skip to content

Commit

Permalink
Need to import numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Urban committed Mar 12, 2019
1 parent 3f65d36 commit 2c13c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,7 +810,7 @@ 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 numpy.round(omegatimes, 2) if not
Expand Down

0 comments on commit 2c13c87

Please sign in to comment.