LSST Applications  21.0.0+75b29a8a7f,21.0.0+e70536a077,21.0.0-1-ga51b5d4+62c747d40b,21.0.0-10-gbfb87ad6+3307648ee3,21.0.0-15-gedb9d5423+47cba9fc36,21.0.0-2-g103fe59+fdf0863a2a,21.0.0-2-g1367e85+d38a93257c,21.0.0-2-g45278ab+e70536a077,21.0.0-2-g5242d73+d38a93257c,21.0.0-2-g7f82c8f+e682ffb718,21.0.0-2-g8dde007+d179fbfa6a,21.0.0-2-g8f08a60+9402881886,21.0.0-2-ga326454+e682ffb718,21.0.0-2-ga63a54e+08647d4b1b,21.0.0-2-gde069b7+26c92b3210,21.0.0-2-gecfae73+0445ed2f95,21.0.0-2-gfc62afb+d38a93257c,21.0.0-27-gbbd0d29+ae871e0f33,21.0.0-28-g5fc5e037+feb0e9397b,21.0.0-3-g21c7a62+f4b9c0ff5c,21.0.0-3-g357aad2+57b0bddf0b,21.0.0-3-g4be5c26+d38a93257c,21.0.0-3-g65f322c+3f454acf5d,21.0.0-3-g7d9da8d+75b29a8a7f,21.0.0-3-gaa929c8+9e4ef6332c,21.0.0-3-ge02ed75+4b120a55c4,21.0.0-4-g3300ddd+e70536a077,21.0.0-4-g591bb35+4b120a55c4,21.0.0-4-gc004bbf+4911b9cd27,21.0.0-4-gccdca77+f94adcd104,21.0.0-4-ge8fba5a+2b3a696ff9,21.0.0-5-gb155db7+2c5429117a,21.0.0-5-gdf36809+637e4641ee,21.0.0-6-g00874e7+c9fd7f7160,21.0.0-6-g4e60332+4b120a55c4,21.0.0-7-gc8ca178+40eb9cf840,21.0.0-8-gfbe0b4b+9e4ef6332c,21.0.0-9-g2fd488a+d83b7cd606,w.2021.05
LSST Data Management Base Package
Classes | Functions
lsst.obs.base.ingest Namespace Reference

Classes

class  RawFileDatasetInfo
 
class  RawFileData
 
class  RawExposureData
 
class  RawIngestConfig
 
class  RawIngestTask
 

Functions

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

Function Documentation

◆ makeTransferChoiceField()

def lsst.obs.base.ingest.makeTransferChoiceField (   doc = "How to transfer files (None for no transfer).",
  default = "auto" 
)
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="auto"):
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  "direct": "use URI to ingested file directly in datastore",
147  "link": "hard link falling back to symbolic link",
148  "hardlink": "hard link",
149  "symlink": "symbolic (soft) link",
150  "relsymlink": "relative symbolic link",
151  },
152  optional=True,
153  default=default
154  )
155 
156 
def makeTransferChoiceField(doc="How to transfer files (None for no transfer).", default="auto")
Definition: ingest.py:123