LSST Applications  22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
Public Member Functions | List of all members
lsst.pipe.base.config.TemplateField Class Reference
Inheritance diagram for lsst.pipe.base.config.TemplateField:

Public Member Functions

def __set__ (self, instance, value, at=None, label='assignment')
 

Detailed Description

This Field is specialized for use with connection templates.
Specifically it treats strings or numbers as valid input, as occasionally
numbers are used as a cycle counter in templates.

The reason for the specialized field, is that when numbers are involved
with the config override system through pipelines or from the command line,
sometimes the quoting to get appropriate values as strings gets
complicated. This will simplify the process greatly.

Definition at line 46 of file config.py.

Member Function Documentation

◆ __set__()

def lsst.pipe.base.config.TemplateField.__set__ (   self,
  instance,
  value,
  at = None,
  label = 'assignment' 
)

Definition at line 66 of file config.py.

66  def __set__(self, instance, value, at=None, label='assignment'):
67  # validate first, even though validate will be called in super
68  self._validateValue(value)
69  # now, explicitly make it into a string
70  value = str(value)
71  super().__set__(instance, value, at, label)
72 
73 

The documentation for this class was generated from the following file: