Skip to content

Commit

Permalink
Move astropy import to top
Browse files Browse the repository at this point in the history
It is always going to be imported so we use the standard location.
  • Loading branch information
timj committed Jul 10, 2018
1 parent 3b76eb5 commit 04ee37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin.src/showPsfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import re
import sys

from astropy.io import fits
import numpy as np
from matplotlib.mlab import griddata
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -249,7 +250,6 @@ def main(dataDir, visit, title="", outputTxtFileName=None,
plt.axis([-20000, 20000, -20000, 20000])

def frameInfoFrom(filepath):
from astropy.io import fits
with fits.open(filepath) as hdul:
h = hdul[0].header
'object=ABELL2163 filter=HSC-I exptime=360.0 alt=62.11143274 azm=202.32265181 hst=(23:40:08.363-23:40:48.546)'
Expand Down

0 comments on commit 04ee37d

Please sign in to comment.