1 from __future__ 
import division, absolute_import
 
    3 from .fieldWrapper 
import WrapperList, DocWrapper, ScalarWrapper, ArrayWrapper
 
   27     def _WrapperList(self):
 
   28         """!Create WrapperList cache if it does not already exist 
   30         if hasattr(self, 
"__WLCache"):
 
   33         wrapperList = WrapperList(name=
"Tune", obj=self,
 
   35                 DocWrapper(
"\nMiscellaneous Parameters\n"),
 
   37                 ScalarWrapper(
"doBrdTelPos", dtype=bool, help=
"Broadcast telescope position as UDP packets?"),
 
   38                 ScalarWrapper(
"doCollimate", dtype=bool, help=
"Update collimation?"),
 
   39                 ScalarWrapper(
"doStatus",    dtype=bool, help=
"Print status at regular intervals?"),
 
   41                 ScalarWrapper(
"maxUsers", dtype=int, help=
"maximum number of simultaneous users"),
 
   43                 ScalarWrapper(
"collimateInterval", dtype=float,
 
   44                     help=
"interval between collimation corrections (sec; 0 for none)",
 
   46                 ScalarWrapper(
"collimateSlewEnd", dtype=float,
 
   47                     help=
"""Time before slew end for an extra collimation update (sec); 
   48                             <0 for no extra update (0 simply starts it as the slew ends)""",
 
   50                 ArrayWrapper(
"statusInterval", numElts=3, dtype=float,
 
   51                     help=
"""Interval between status updates (sec; 0 for none): 
   52                             while tracking (ignored), during a slew, and other""",
 
   55                 DocWrapper(
"\nTracking and Slewing Parameters\n"),
 
   57                 ScalarWrapper(
"slewAdvTime", dtype=float,
 
   58                     help=
"How far in advance to send the first PVT of a slew (sec)",
 
   60                 ScalarWrapper(
"slewMinDuration", dtype=float,
 
   61                     help=
"""Minimum slew duration after the first PVT is sent (sec); 
   62                             provides time to send the remaining slew PVTs after the first""",
 
   65                 ScalarWrapper(
"trackInterval", dtype=float,
 
   66                     help=
"The interval between tracking updates (sec)",
 
   68                 ScalarWrapper(
"trackAdvTime",  dtype=float,
 
   69                     help=
"How far in advance to send a tracking update (sec)",
 
   72                 ScalarWrapper(
"slewConvTime",  dtype=float,
 
   73                     help=
"""Slew convergence criterion (sec); 
   74                         successive slews must have durations that match to within this time interval""",
 
   76                 ScalarWrapper(
"slewMaxIter",  dtype=int,
 
   77                     help=
"Max iterations of the slew computation",
 
   79                 ScalarWrapper(
"slewFudge",  dtype=float,
 
   80                     help=
"Time for axis controllers to settle after a slew (sec)",
 
   89         """!Load data from a file-like object 
   91         self._WrapperList.load(f)
 
   94         """!Load data from a file specified by path 
   96         self._WrapperList.loadPath(filePath)
 
   99         """!Dump data to a file-like object 
  101         self._WrapperList.dump(f)            
 
  104         return self._WrapperList.dumpStr()
 
def load
Load data from a file-like object. 
def dump
Dump data to a file-like object. 
def loadPath
Load data from a file specified by path.