Skip to content
Snippets Groups Projects
Commit 3ba320b6 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

SSB-42: enforced ra_dec to be a numpy array

parent c135f169
No related branches found
No related tags found
1 merge request!44Merge back holography to master
...@@ -256,7 +256,11 @@ class HolographyMeasurementSet(object): ...@@ -256,7 +256,11 @@ class HolographyMeasurementSet(object):
rotation_matrix, rotation_matrix,
mjd_times): mjd_times):
ra, dec, epoch = list(ra_dec_epoch) if not isinstance(ra_dec_epoch, numpy.ndarray):
raise TypeError('Expected a structured numpy array for ra_dec obtained {}'.
format(ra_dec_epoch))
ra, dec, epoch = ra_dec_epoch.tolist()
astropy_times = [HolographyMeasurementSet.__mjd_to_astropy_time(mjd_time) astropy_times = [HolographyMeasurementSet.__mjd_to_astropy_time(mjd_time)
for mjd_time in mjd_times] for mjd_time in mjd_times]
n_samples = len(astropy_times) n_samples = len(astropy_times)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment