From 0be309b25e081af1e189a44fc5fe1046b6962bef Mon Sep 17 00:00:00 2001 From: sphemakh Date: Fri, 4 Jan 2019 13:59:29 +0200 Subject: [PATCH] re-enable setting limits --- simms/casasm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simms/casasm.py b/simms/casasm.py index 527277e..655dae8 100644 --- a/simms/casasm.py +++ b/simms/casasm.py @@ -145,9 +145,9 @@ def toFloat(val): else: raise RuntimeError('Observatory name is not known, please provide antenna configuration') -# if shadow_limit or elevationlimit: -# sm.setlimits(shadowlimit=shadow_limit or 0,elevationlimit=elevation_limit or 0) -# sm.setauto(autocorrwt=1.0 if auto_corr else 0.0) + if shadow_limit or elevation_limit: + sm.setlimits(shadowlimit=shadow_limit or 0,elevationlimit=elevation_limit or 0) + sm.setauto(autocorrwt=1.0 if auto_corr else 0.0) sm.setfeed(mode=feed) # set date to today (start of observation) if not set by user