Skip to content

Commit

Permalink
Merge branch 'develop' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
avigan committed Jan 4, 2021
2 parents 7f4eb80 + 514ee31 commit 66fcaf1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# setup
setup(
name='vlt-sphere',
version='1.4.1',
version='1.4.2',
description='Reduction and analysis code for the VLT/SPHERE instrument',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
12 changes: 8 additions & 4 deletions sphere/SPARTA.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ def sph_sparta_dtts(self, plot=True):
toolbox.compute_times(dtts_info, logger=self._logger)

# compute angles (ra, dec, parang)
ret = toolbox.compute_angles(dtts_info, logger=self._logger)
true_north = self.config['cal_true_north']
ret = toolbox.compute_angles(dtts_info, true_north, logger=self._logger)
if ret == sphere.ERROR:
self._update_recipe_status('sph_sparta_dtts', sphere.ERROR)
self._status = sphere.FATAL
Expand Down Expand Up @@ -809,7 +810,8 @@ def sph_sparta_wfs_parameters(self):
toolbox.compute_times(visloop_info, logger=self._logger)

# compute angles (ra, dec, parang)
ret = toolbox.compute_angles(visloop_info, logger=self._logger)
true_north = self.config['cal_true_north']
ret = toolbox.compute_angles(visloop_info, true_north, logger=self._logger)
if ret == sphere.ERROR:
self._update_recipe_status('sph_sparta_wfs_parameters', sphere.ERROR)
self._status = sphere.FATAL
Expand Down Expand Up @@ -872,7 +874,8 @@ def sph_sparta_wfs_parameters(self):
toolbox.compute_times(irloop_info, logger=self._logger)

# compute angles (ra, dec, parang)
ret = toolbox.compute_angles(irloop_info, logger=self._logger)
true_north = self.config['cal_true_north']
ret = toolbox.compute_angles(irloop_info, true_north, logger=self._logger)
if ret == sphere.ERROR:
self._update_recipe_status('sph_sparta_wfs_parameters', sphere.ERROR)
self._status = sphere.FATAL
Expand Down Expand Up @@ -957,7 +960,8 @@ def sph_sparta_atmospheric_parameters(self):
toolbox.compute_times(atmos_info, logger=self._logger)

# compute angles (ra, dec, parang)
ret = toolbox.compute_angles(atmos_info, logger=self._logger)
true_north = self.config['cal_true_north']
ret = toolbox.compute_angles(atmos_info, true_north, logger=self._logger)
if ret == sphere.ERROR:
self._update_recipe_status('sph_sparta_atmospheric_parameters', sphere.ERROR)
self._status = sphere.FATAL
Expand Down
2 changes: 1 addition & 1 deletion sphere/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__author__ = 'Arthur Vigan'
__copyright__ = 'Copyright (C) 2017-2021 Arthur Vigan'
__license__ = 'MIT'
__version__ = '1.4.1'
__version__ = '1.4.2'

import logging
import enum
Expand Down
3 changes: 3 additions & 0 deletions sphere/instruments/SPARTA.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ name = 'SPARTA'
#
[reduction]

# true North
cal_true_north = -1.75

# misc
misc_plot = True
misc_query_databases = True
Expand Down

0 comments on commit 66fcaf1

Please sign in to comment.