LSSTApplications
16.0-10-g1758552+4,16.0-10-g4f78f78+4,16.0-10-gc1446dd+30,16.0-11-g39ac3c7+2,16.0-13-g066a532+3,16.0-14-g6c7ed55+4,16.0-14-gd373004+3,16.0-15-g072d20e+4,16.0-15-gb461e1a+2,16.0-16-g48c959a+3,16.0-16-g89065d4+2,16.0-16-gd8e3590+4,16.0-19-gb830ed4e+4,16.0-2-g0febb12+20,16.0-2-g9d5294e+53,16.0-2-ga8830df+3,16.0-20-g17d57d5+2,16.0-22-gf7a7fdf+3,16.0-27-g78173a71+3,16.0-3-g324faa9+3,16.0-3-gcfd6c53+51,16.0-3-ge00e371+9,16.0-4-g03cf288+42,16.0-4-g5f3a788+19,16.0-4-ga3eb747+9,16.0-4-gabf74b7+4,16.0-4-gb13d127+3,16.0-5-g6a53317+9,16.0-5-gb3f8a4b+62,16.0-5-gef99c9f+4,16.0-57-g90e7ba260+2,16.0-6-g0838257+3,16.0-6-g9321be7+3,16.0-6-gcbc7b31+3,16.0-6-gf49912c+4,16.0-7-gd2eeba5+12,16.0-8-g21fd5fe+4,16.0-8-g3a9f023+4,16.0-9-g85d1a16+4,master-g7b902255af+4,w.2018.43
LSSTDataManagementBasePackage
|
Configuration for culling garbage peaks after merging footprints. More...
Public Member Functions | |
def | __iter__ (self) |
Iterate over fields. More... | |
def | keys (self) |
Return the list of field names. More... | |
def | values (self) |
Return the list of field values. More... | |
def | items (self) |
Return the list of (field name, field value) pairs. More... | |
def | iteritems (self) |
Iterate over (field name, field value) pairs. More... | |
def | itervalues (self) |
Iterate over field values. More... | |
def | iterkeys (self) |
Iterate over field names. More... | |
def | __contains__ (self, name) |
Return True if the specified field exists in this config. More... | |
def | __new__ (cls, args, kw) |
Allocate a new Config object. More... | |
def | __reduce__ (self) |
def | setDefaults (self) |
def | update (self, kw) |
Update values specified by the keyword arguments. More... | |
def | load (self, filename, root="config") |
Modify this config in place by executing the Python code in the named file. More... | |
def | loadFromStream (self, stream, root="config", filename=None) |
Modify this config in place by executing the python code in the provided stream. More... | |
def | save (self, filename, root="config") |
Save a python script to the named file, which, when loaded, reproduces this Config. More... | |
def | saveToStream (self, outfile, root="config") |
Save a python script to a stream, which, when loaded, reproduces this Config. More... | |
def | freeze (self) |
Make this Config and all sub-configs read-only. More... | |
def | toDict (self) |
Return a dict of field name: value. More... | |
def | names (self) |
Return all the keys in a config recursively. More... | |
def | validate (self) |
Validate the Config; raise an exception if invalid. More... | |
def | formatHistory (self, name, kwargs) |
Format the specified config field's history to a more human-readable format. More... | |
def | __setattr__ (self, attr, value, at=None, label="assignment") |
Regulate which attributes can be set. More... | |
def | __setattr__ (cls, name, value) |
def | __delattr__ (self, attr, at=None, label="deletion") |
def | __eq__ (self, other) |
def | __ne__ (self, other) |
def | __str__ (self) |
def | __repr__ (self) |
def | compare (self, other, shortcut=True, rtol=1E-8, atol=1E-8, output=None) |
Compare two Configs for equality; return True if equal. More... | |
Static Public Attributes | |
nBandsSufficient | |
rankSufficient | |
rankConsidered | |
rankNormalizedConsidered | |
Properties | |
history = property(lambda x: x._history) | |
Configuration for culling garbage peaks after merging footprints.
Peaks may also be culled after detection or during deblending; this configuration object only deals with culling after merging Footprints.
These cuts are based on three quantities:
The formula that identifie peaks to cull is:
nBands < nBandsSufficient AND (rank >= rankSufficient) AND (rank >= rankConsider OR rank >= rankNormalizedConsider)
To disable peak culling, simply set nBandsSufficient=1.
Definition at line 624 of file multiBand.py.
|
inherited |
Return True if the specified field exists in this config.
[in] | name | field name to test for |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Allocate a new Config object.
In order to ensure that all Config object are always in a proper state when handed to users or to derived Config classes, some attributes are handled at allocation time rather than at initialization
This ensures that even if a derived Config class implements init, the author does not need to be concerned about when or even if he should call the base Config.__init__
Definition at line 458 of file config.py.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Regulate which attributes can be set.
Unlike normal python objects, Config objects are locked such that no additional attributes nor properties may be added to them dynamically.
Although this is not the standard Python behavior, it helps to protect users from accidentally mispelling a field name, or trying to set a non-existent field.
Definition at line 717 of file config.py.
|
inherited |
|
inherited |
Compare two Configs for equality; return True if equal.
If the Configs contain RegistryFields or ConfigChoiceFields, unselected Configs will not be compared.
[in] | other | Config object to compare with self. |
[in] | shortcut | If True, return as soon as an inequality is found. |
[in] | rtol | Relative tolerance for floating point comparisons. |
[in] | atol | Absolute tolerance for floating point comparisons. |
[in] | output | If not None, a callable that takes a string, used (possibly repeatedly) to report inequalities. |
Floating point comparisons are performed by numpy.allclose; refer to that for details.
Definition at line 776 of file config.py.
|
inherited |
Format the specified config field's history to a more human-readable format.
[in] | name | name of field whose history is wanted |
[in] | kwargs | keyword arguments for lsst.pex.config.history.format |
Definition at line 702 of file config.py.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Modify this config in place by executing the Python code in the named file.
[in] | filename | name of file containing config override code |
[in] | root | name of variable in file that refers to the config being overridden |
For example: if the value of root is "config" and the file contains this text: "config.myField = 5" then this config's field "myField" is set to 5.
Definition at line 528 of file config.py.
|
inherited |
Modify this config in place by executing the python code in the provided stream.
[in] | stream | open file object, string or compiled string containing config override code |
[in] | root | name of variable in stream that refers to the config being overridden |
[in] | filename | name of config override file, or None if unknown or contained in the stream; used for error reporting |
For example: if the value of root is "config" and the stream contains this text: "config.myField = 5" then this config's field "myField" is set to 5.
Definition at line 545 of file config.py.
|
inherited |
|
inherited |
Save a python script to the named file, which, when loaded, reproduces this Config.
[in] | filename | name of file to which to write the config |
[in] | root | name to use for the root config variable; the same value must be used when loading |
|
inherited |
Save a python script to a stream, which, when loaded, reproduces this Config.
outfile | [inout] open file object to which to write the config. Accepts strings not bytes. |
root | [in] name to use for the root config variable; the same value must be used when loading |
Definition at line 601 of file config.py.
|
inherited |
|
inherited |
Return a dict of field name: value.
Correct behavior is dependent on proper implementation of Field.toDict. If implementing a new Field type, you may need to implement your own toDict method.
Definition at line 637 of file config.py.
|
inherited |
Update values specified by the keyword arguments.
Definition at line 510 of file config.py.
|
inherited |
Validate the Config; raise an exception if invalid.
The base class implementation performs type checks on all fields by calling Field.validate().
Complex single-field validation can be defined by deriving new Field types. As syntactic sugar, some derived Field types are defined in this module which handle recursing into sub-configs (ConfigField, ConfigChoiceField)
Inter-field relationships should only be checked in derived Config classes after calling this method, and base validation is complete
Definition at line 685 of file config.py.
|
inherited |
|
static |
Definition at line 647 of file multiBand.py.
|
static |
Definition at line 651 of file multiBand.py.
|
static |
Definition at line 654 of file multiBand.py.
|
static |
Definition at line 649 of file multiBand.py.
|
staticinherited |