Skip to content

Commit

Permalink
Merge 6873155 into 4936d40
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Torres committed Oct 8, 2020
2 parents 4936d40 + 6873155 commit eee41ef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Expand Up @@ -3,7 +3,7 @@ channels:
- astroconda
dependencies:
- numpy
- pandas==0.23.0
- pandas
- matplotlib
- scipy
- cython
Expand Down
14 changes: 7 additions & 7 deletions goodman_pipeline/core/core.py
Expand Up @@ -3798,10 +3798,10 @@ def get_reference_lamp(self, header):
if len(filtered_collection) == 1:
self.log.info(
"Reference Lamp Found: {:s}"
"".format(filtered_collection.file.to_string(index=False)))
"".format("".join(filtered_collection.file.to_string(index=False).split())))
full_path = os.path.join(self.reference_dir,
filtered_collection.file.to_string(
index=False))
"".join(filtered_collection.file.to_string(
index=False).split()))
self._ccd = CCDData.read(full_path, unit=u.adu)
self._recover_lines()
return self._ccd
Expand Down Expand Up @@ -4052,7 +4052,7 @@ def get_saturation_value(self, ccd):
self.__saturation = None
return None
else:
self.__saturation = float(hfw.to_string(index=False))
self.__saturation = float("".join(hfw.to_string(index=False).split()))
self.log.debug("Set saturation_threshold level as {:.0f}".format(
self.__saturation))
return self.__saturation
Expand Down Expand Up @@ -4180,7 +4180,7 @@ def get_mode(self, grating, camera_targ, grating_targ, blocking_filter):
return 'Custom_{:d}nm'.format(int(round(
central_wavelength.value)))
else:
return _mode['wavmode'].to_string(index=False)
return "".join(_mode['wavmode'].to_string(index=False).split())

def get_cam_grt_targ_angle(self, grating, mode):
"""Get the camera and grating target values grating and mode
Expand All @@ -4207,8 +4207,8 @@ def get_cam_grt_targ_angle(self, grating, mode):
self.log.error("No data")
return None, None
else:
return (angle['camtarg'].to_string(index=False),
angle['grttarg'].to_string(index=False))
return ("".join(angle['camtarg'].to_string(index=False).split()),
"".join(angle['grttarg'].to_string(index=False).split()))


class IdentifySpectroscopicTargets(object):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -8,7 +8,7 @@ recommonmark
matplotlib
mock
numpy
pandas==0.23.0
pandas
scipy
sphinx
sphinxcontrib.napoleon
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Expand Up @@ -24,12 +24,12 @@ edit_on_github = False
github_project = soar-telescope/goodman_pipeline
install_requires =
numpy
pandas==0.23.0
pandas
matplotlib
scipy
cython
astropy
ccdproc
astroplan
# version should be PEP440 compatible (http://www.python.org/dev/peps/pep-0440)
version = 1.3.1
version = 1.3.2.dev1

0 comments on commit eee41ef

Please sign in to comment.