LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Classes | Functions
lsst.obs.base.ingest Namespace Reference

Classes

class  RawExposureData
 
class  RawFileData
 
class  RawFileDatasetInfo
 
class  RawIngestConfig
 
class  RawIngestTask
 

Functions

def makeTransferChoiceField (doc="How to transfer files (None for no transfer).", default=None)
 

Function Documentation

◆ makeTransferChoiceField()

def lsst.obs.base.ingest.makeTransferChoiceField (   doc = "How to transfer files (None for no transfer).",
  default = None 
)
Create a Config field with options for how to transfer files between
data repositories.

The allowed options for the field are exactly those supported by
`lsst.daf.butler.Datastore.ingest`.

Parameters
----------
doc : `str`
    Documentation for the configuration field.

Returns
-------
field : `lsst.pex.config.ChoiceField`
    Configuration field.

Definition at line 123 of file ingest.py.

123 def makeTransferChoiceField(doc="How to transfer files (None for no transfer).", default=None):
124  """Create a Config field with options for how to transfer files between
125  data repositories.
126 
127  The allowed options for the field are exactly those supported by
128  `lsst.daf.butler.Datastore.ingest`.
129 
130  Parameters
131  ----------
132  doc : `str`
133  Documentation for the configuration field.
134 
135  Returns
136  -------
137  field : `lsst.pex.config.ChoiceField`
138  Configuration field.
139  """
140  return ChoiceField(
141  doc=doc,
142  dtype=str,
143  allowed={"move": "move",
144  "copy": "copy",
145  "auto": "choice will depend on datastore",
146  "link": "hard link falling back to symbolic link",
147  "hardlink": "hard link",
148  "symlink": "symbolic (soft) link",
149  "relsymlink": "relative symbolic link",
150  },
151  optional=True,
152  default=default
153  )
154 
155 
lsst.obs.base.ingest.makeTransferChoiceField
def makeTransferChoiceField(doc="How to transfer files (None for no transfer).", default=None)
Definition: ingest.py:123