| | |
- NonPersistentConfig
-
- AddImageCalibsConfig
- AplastromConfig
- MakeDistortConfig
- MakeSscConfig
- PrephotomConfig
- Params
-
- SextractorParams
-
- CosmicParams
- common.database.DBMain.DBObject(__builtin__.object)
-
- Config
-
- AssociateConfig
- AstromConfig
- CosmicConfig
- PreastromConfig
- ScampConfig
- SextractorConfig
- SwarpConfig
- exceptions.Exception(exceptions.BaseException)
-
- ConfigError
- NonPersistentConfigError
- ParamsError
class AddImageCalibsConfig(NonPersistentConfig) |
| | |
Data and other attributes defined here:
- VERBOSE = 'NORMAL'
- program_name = 'LDAC.add_image_calibs'
Methods inherited from NonPersistentConfig:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- get_properties(self)
- info(self)
- Show information about the settings, specifically, the configurable
parameters and their current settings.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
|
class AplastromConfig(NonPersistentConfig) |
| | |
Data and other attributes defined here:
- program_name = 'LDAC.aplastrom'
Methods inherited from NonPersistentConfig:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- get_properties(self)
- info(self)
- Show information about the settings, specifically, the configurable
parameters and their current settings.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
|
class AssociateConfig(Config) |
| | |
- Method resolution order:
- AssociateConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- INTER_COLOR_TOL
- The factor with which the object dimensions (second order moments) are multiplied to search for overlap between objects of different input catalogs [None]
- ISO_COLOR_TOL
- The factor with which the object dimensions (second order moments) are multiplied to search for overlap between objects within the same input catalog [None]
- MASK
- The SExtractor mask to select objects for astrometric pairing: Flag & FLAG_MASK [None]
- PAIR_COLS
- Enable the output of the PAIRS association column [None]
- VERBOSE
- Verbosity level (NONE, NORMAL, VERBOSE, DEBUG) [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'LDAC.associate'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class AstromConfig(Config) |
| | |
- Method resolution order:
- AstromConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- FDEG
- Degrees of freedom of Chebychev polynomials [None]
- NITER
- The number of iterations during solving [None]
- PDEG
- Degrees of freedom for plate polynomials [None]
- THRESHFRAC
- The fraction of the maximum threshold below which the iteration is allowed to threshold [None]
- VERBOSE
- Verbosity level (NONE, NORMAL, VERBOSE, DEBUG) [None]
- XMAX
- Maximum X-coordinate of useful pixel plane [pixel]
- XMIN
- Minimum X-coordinate of useful pixel plane [pixel]
- XPIXSIZE
- The scaling of pixels with which CDELT1 is multiplied [None]
- YMAX
- Maximum Y-coordinate of useful pixel plane [pixel]
- YMIN
- Minimum Y-coordinate of useful pixel plane [pixel]
- YPIXSIZE
- The scaling of pixels with which CDELT2 is multiplied [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'LDAC.astrom'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class Config(common.database.DBMain.DBObject) |
| |
The base class for all persistent config classes.
The purpose of Config and derived classes is to provide a uniform
interface for the canonical configuration of all external programs.
This is a step towards process parameters, which would require proper
classes for all external programs, a rather large feat to accomplish.
All KW_LISTS are now deprecated as all their information is now
contained in the Config classes. Use an instance's get_kw_list()
method to return the original KW_LIST.
NOTE: _default_kw_list and _default_kw_dict are private class
attributes and should not be modified as they contain the default
configuration of the class. |
| |
- Method resolution order:
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Methods defined here:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Data descriptors defined here:
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = ''
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class CosmicConfig(Config) |
| | |
- Method resolution order:
- CosmicConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- ANALYSIS_THRESH
- Threshold at which CLASS_STAR and FWHM_ operate [mag / arcsec^2]
- BACKPHOTO_THICK
- Thickness of the background LOCAL annulus [pixel]
- BACKPHOTO_TYPE
- Background used to compute magnitudes (GLOBAL, LOCAL) [None]
- BACK_FILTERSIZE
- Size of background-filtering mask [background mesh]
- BACK_SIZE
- Size of a background mesh [pixel]
- BACK_TYPE
- The type of background subtracted from the images (AUTO, MANUAL) [None]
- BACK_VALUE
- The constant value to be subtracted from the images if BACK_TYPE is MANUAL [None]
- CATALOG_NAME
- Name of the output catalog [None]
- CATALOG_TYPE
- Format of the output catalog (ASCII, ASCII_HEAD, ASCII_SKYCAT, ASCII_VOTABLE, FITS_1.0, FITS_LDAC) [None]
- CHECKIMAGE_NAME
- Filename for the check-image [None]
- CHECKIMAGE_TYPE
- Type of information to put in the check-image (NONE, IDENTICAL, BACKGROUND, BACKGROUND_RMS, MINIBACKGROUND, MINIBACK_RMS, -BACKGROUND, FILTERED, OBJECTS, -OBJECTS, APERTURES, SEGMENTATION) [None]
- CLEAN
- Clean the catalog before writing to disk (Y, N) [None]
- CLEAN_PARAM
- Efficiency of cleaning [None]
- DEBLEND_MINCONT
- Minimum contrast parameter for deblending [None]
- DEBLEND_NTHRESH
- Number of deblending sub-thresholds [None]
- DETECT_MINAREA
- Minimum number of pixels above threshold triggering detection [pixel]
- DETECT_THRESH
- Detection threshold relative to background RMS (when THRESH_TYPE is RELATIVE) [None]
- DETECT_TYPE
- Type of device that produced the image (CCD, PHOTO) [None]
- FILTER
- Apply filtering to the data before extraction (Y, N) [None]
- FILTER_NAME
- Name of file contianing the filter definition [None]
- FILTER_THRESH
- Lower and higher thresholds (in background standard deviations) for a pixel to be considered in filtering [None]
- FLAG_IMAGE
- filename of the flag-image [None]
- FLAG_TYPE
- Combination method for flags on the same object (OR, AND, MIN, MAX, MOST) [None]
- GAIN
- Conversion factor used for error estimates of CCD magnitudes [e^- / ADU]
- MAG_GAMMA
- Gamma of the emulsion (when DETECT_TYPE is PHOTO) [None]
- MAG_ZEROPOINT
- Zero-point offset to be applied to magnitudes [mag]
- MASK_TYPE
- Method of masking of neighbors for photometry (NONE, BLANK, CORRECT) [None]
- MEMORY_BUFSIZE
- Number of scan-lines in the image buffer [None]
- MEMORY_OBJSTACK
- Maximum number of objects that the object-stack can contain [None]
- MEMORY_PIXSTACK
- Maximum number of pixels that the pixel-stack can contain [None]
- PARAMETERS_NAME
- Name of the file containing the list of parameters that will be computed and put into the catalog for each object [None]
- PHOT_APERTURES
- MAG_APER aperture diameter [pixel]
- PHOT_AUTOAPERS
- MAG_AUTO minimum circular aperture diameters (estimation disk, measurement disk) [None]
- PHOT_AUTOPARAMS
- MAG_AUTO controls (scaling parameter k of the first order moment and minimum R_min in units of A and B) [None]
- PIXEL_SCALE
- Pixel size [arcsec / pixel]
- SATUR_LEVEL
- Pixel value above which it is considered saturated (in applicable units) [None]
- SEEING_FWHM
- FWHM of stellar sources (for star/galaxy separation only) [arcsec]
- STARNNW_NAME
- Name of the file containing the neural-network weights for star/galaxy separation [None]
- THRESH_TYPE
- Meaning of DETECT_THRESH and ANALYSIS_THRESH parameters (RELATIVE, ABSOLUTE) [None]
- VERBOSE_TYPE
- Verbosity level (QUIET, NORMAL, EXTRA_WARNINGS, FULL) [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'Cosmic'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class CosmicParams(SextractorParams) |
| | |
- Method resolution order:
- CosmicParams
- SextractorParams
- Params
Data and other attributes defined here:
- program_name = 'Cosmic'
Methods inherited from Params:
- __init__(self, filename=None)
- filename: name of file to save settings to
- get_defaults(self)
- Return the default list of parameters.
- get_param_list(self)
- Return a list of parameters.
- info(self)
- Show information about the settings, specifically, the parameters.
- is_config(self)
- Test for being a configuration (Params are not configurations).
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_list(self, param_list)
- Extend parameter list with param_list (duplicates are removed).
param_list: a list of parameters
- show(self)
- Show the settings as they will be written to the file.
- update_list(self, param_list)
|
class MakeDistortConfig(NonPersistentConfig) |
| | |
Data and other attributes defined here:
- VERBOSE = 'NORMAL'
- program_name = 'LDAC.make_distort'
Methods inherited from NonPersistentConfig:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- get_properties(self)
- info(self)
- Show information about the settings, specifically, the configurable
parameters and their current settings.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
|
class MakeSscConfig(NonPersistentConfig) |
| | |
Data and other attributes defined here:
- COL_CHAN = ['ALL', 'ALL', 'ALL', 'ALL', 'ALL', 'ALL', 'ALL', 'ALL', 'ALL']
- COL_INPUT = ['FIELD_POS', 'SeqNr', 'Ra', 'Dec', 'Xpos', 'Ypos', 'PosErr', 'ERRA_IMAGE', 'Flag']
- COL_MERGE = ['AVERAGE', 'AVERAGE', 'AVERAGE', 'AVERAGE', 'AVERAGE', 'AVERAGE', 'AVE_ERR', 'AVE_ERR', 'AVE_FLAG']
- COL_NAME = ['Field', 'SeqNr', 'Ra', 'Dec', 'Xpos', 'Ypos', 'PosErr', 'ERRA_IMAGE', 'Flag']
- MAKE_PAIRS = 'YES'
- VERBOSE = 'NORMAL'
- program_name = 'LDAC.make_ssc'
Methods inherited from NonPersistentConfig:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- get_properties(self)
- info(self)
- Show information about the settings, specifically, the configurable
parameters and their current settings.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
|
class NonPersistentConfig |
| |
The base class for all non-persistent config classes.
The purpose of NonPersistentConfig and derived classes is to provide a
uniform interface for the canonical configuration of all external
programs that don't need persistency in the database. This is a step
towards process parameters, which would require proper classes for all
external programs, a rather large feat to accomplish.
All KW_LISTS are now deprecated as all their information is now
contained in the NonPersistentConfig classes. Use an instance's
get_kw_list() method to return the original KW_LIST.
NOTE: _default_kw_list and _default_kw_dict are private class
attributes and should not be modified as they contain the default
configuration of the class. |
| |
Methods defined here:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- get_properties(self)
- info(self)
- Show information about the settings, specifically, the configurable
parameters and their current settings.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Data and other attributes defined here:
- program_name = ''
|
class Params |
| |
Base class for all non-persistent Params classes.
The purpose of Params and derived classes is to provide a uniform
interface for the parameters of all external programs. This is a step
towards process parameters, which would require proper classes for all
external programs, a rather large feat to accomplish.
All PARAM_LISTS are now deprecated as all their information is now
contained in the Params classes. Use an instance's get_param_list()
method to return the original PARAM_LIST. |
| |
Methods defined here:
- __init__(self, filename=None)
- filename: name of file to save settings to
- get_defaults(self)
- Return the default list of parameters.
- get_param_list(self)
- Return a list of parameters.
- info(self)
- Show information about the settings, specifically, the parameters.
- is_config(self)
- Test for being a configuration (Params are not configurations).
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_list(self, param_list)
- Extend parameter list with param_list (duplicates are removed).
param_list: a list of parameters
- show(self)
- Show the settings as they will be written to the file.
- update_list(self, param_list)
Data and other attributes defined here:
- program_name = ''
|
class PreastromConfig(Config) |
| | |
- Method resolution order:
- PreastromConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- AFFINE_PARS
- List of Parameters for the affine transformation (a0, a1, a2, b0, b1, b2) [None]
- FLAG_MASK
- The SExtractor mask to select objects for astrometric pairing: Flag & FLAG_MASK [None]
- MAX_OFFSET
- Maximum allowed offset between extracted and reference objects [pixel]
- MIN_OBJ
- The minimum number of reference objects required to determine affine transformation [None]
- MIN_PHOTS
- List of photometric parameter limits for pairing with reference objects [None]
- PHOT
- Name of the table column containing object flux measures [None]
- POS_ERROR
- Positional error between extracted and reference objects [pixel]
- RMS_TOL
- RMS tolerenace for triangulation matching [pixel]
- SEL_MIN
- Minumim number of objects used in triangulation method [None]
- VERBOSE
- Verbosity level (NONE, NORMAL, VERBOSE, DEBUG) [None]
- XMAX
- Maximum X-coordinate allowed in pairing [pixel]
- XMIN
- Minimum X-coordinate allowed in pairing [pixel]
- XPIXSIZE
- The scaling of pixels with which CDELT1 is multiplied [None]
- YMAX
- Maximum Y-coordinate allowed in pairing [pixel]
- YMIN
- Minimum Y-coordinate allowed in pairing [pixel]
- YPIXSIZE
- The scaling of pixels with which CDELT2 is multiplied [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'LDAC.preastrom'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class PrephotomConfig(NonPersistentConfig) |
| | |
Data and other attributes defined here:
- DEC = 'DELTA_SKY'
- EPOCH = 2000.0
- FLAG = 'Flag'
- MULTIPLE = 'NO'
- PHOT = 'FLUX_ISO'
- PHOTERR = 'FLUXERR_ISO'
- RA = 'ALPHA_SKY'
- STDMAG = ['JohnsonU', 'JohnsonB', 'CousinsI']
- TOL = 5.0
- VERBOSE = 'NORMAL'
- program_name = 'LDAC.prephotom'
Methods inherited from NonPersistentConfig:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- get_properties(self)
- info(self)
- Show information about the settings, specifically, the configurable
parameters and their current settings.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
|
class ScampConfig(Config) |
| |
#----------------------------------------------------------------------------- |
| |
- Method resolution order:
- ScampConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- AIRMASS_KEY
- FITS header keyword containing the airmass [None]
- ASTRCLIP_NSIGMA
- Clipping boundry for the second astrometric pass in standard deviations [None]
- ASTREFCAT_NAME
- Filenames of local astrometric reference catalogs, used when ASTREF_CATALOG is set to FILE [None]
- ASTREFCENT_KEYS
- Column names containing the coordinates in degrees of the centroids of each source for the reference catalog(s), used when ASTREF_CATALOG is set to FILE [None]
- ASTREFERR_KEYS
- Column names containing the major axis, minor axis, and position angle in pixels, respectively, of the error ellipses for the reference catalog(s), used when ASTREF_CATALOG is set to FILE [None]
- ASTREFMAG_KEY
- Column name containing the astrometric reference magnitudes, used when ASTREF_CATALOG is set to FILE [None]
- ASTREF_BAND
- Column name of photometric band used for astrometric reference magnitudes or one of: DEFAULT, BLUEST, REDDEST [None]
- ASTREF_CATALOG
- Name of reference catalog for astrometry, one of: NONE, FILE, USNO-A1, USNO-A2, USNO-B1, GSC-1.3, GSC-2.2, UCAC-1, UCAC-2, NOMAD-1, 2MASS, DENIS-3, SDSS-R3, SDSS-R5, SDSS-R6 [None]
- ASTREF_WEIGHT
- Relative weight of the astrometric reference catalog [None]
- ASTRINSTRU_KEY
- FITS header keyword(s) defining the astrometric context/instrument [None]
- CENTROIDERR_KEYS
- Column names containing the major axis, minor axis, and position angle in pixels, respectively, of the error ellipses for the input catalog(s) [None]
- CENTROID_KEYS
- Column names containing the coordinates in degrees of the centroids of each source for the input ctalog(s) [None]
- CORRECT_COLOURSHIFTS
- Correct for colour shifts [None]
- CROSSID_RADIUS
- Search radius used for all cross-identifications [arcsec]
- DISTORT_DEGREES
- Polynomial degree of each group [None]
- DISTORT_GROUPS
- Polynomial group that each DISTORT_KEY belongs to [None]
- DISTORT_KEYS
- Column names or FITS keywords (indicated by a colon prefix) containing measurements used to map astrometric distortions for the input catalog(s) [None]
- EXPOTIME_KEY
- FITS header keyword containing the exposure time [None]
- FGROUP_RADIUS
- Maximum angular distance allowed between field centers to include them in the same group of fields [deg]
- FIXFOCALPLANE_NMIN
- Minimum number of detections per focal plane array required to be part of MOSAIC_TYPE FIX_FOCALPLANE statistics [None]
- FLAGS_MASK
- Binary mask applied to FLAGS column to reject flagged detections [None]
- FWHM_THRESHOLDS
- Range of Full-Width at Half-Maximum allowed for input detections [pixel]
- HEADER_SUFFIX
- Filename extension of output header files [None]
- HEADER_TYPE
- Type of WCS information in output header files, one of: NORMAL, FOCAL_PLANE [None]
- IMAFLAGS_MASK
- Binary mask applied to IMAFLAGS column to reject flagged detections [None]
- MAGZERO_INTERR
- Internal zero-point accuracy [mag]
- MAGZERO_KEY
- FITS header keyword containing the zero-point [None]
- MAGZERO_OUT
- Arbitrary magnitude zero-point for output flux scale [mag]
- MAGZERO_REFERR
- Photometric field zero-point accuracy [mag]
- MATCH
- Do pattern-matching of input detections with sources from the astrometric reference catalog (i.e., preastrom) [None]
- MATCH_FLIPPED
- Consider a possible flipping of input frames during MATCHing [None]
- MATCH_NMAX
- Maximum number of detections used to compute the position angle and pixel scale while MATCHing (0=auto) [None]
- MATCH_RESOL
- MATCHing resolution (0.0=auto) [arcsec]
- MERGEDOUTCAT_NAME
- Filename of merged output catalog (i.e., astrometrically corrected input catalog) [None]
- MERGEDOUTCAT_TYPE
- Type of the merged output catalog, one of: NONE, ASCII_HEAD, ASCII, FITS, FITS_LDAC [None]
- MOSAIC_TYPE
- Type of pre-processing for mosaics of focal plane arays, one of: UNCHANGED, SAME_CRVAL, SHARE_PROJAXIS, FIX_FOCALPLANE, LOOSE [None]
- PHOTCLIP_NSIGMA
- Clipping boundry for the second photometric pass in standard deviations [None]
- PHOTFLUXERR_KEY
- Column name containg the flux error estimate for the input catalog(s) [None]
- PHOTFLUX_KEY
- Column name containg the flux measurement for the input catalog(s) [None]
- PHOTINSTRU_KEY
- FITS header keyword(s) defining the photometric context/instrument [None]
- PIXSCALE_MAXERR
- Search range of the pixel scale factor used in astrometric MATCHing (e.g., 1.2 is equivalent to +/- 20% of the original pixel scale) [None]
- POSANGLE_MAXERR
- Search range for the position angle in astrometric MATCHing [deg]
- POSITION_MAXERR
- Search range for the position in astrometric MATCHing [arcmin]
- REFOUT_CATPATH
- Directory name where downloaded reference catalogs will be saved [None]
- SAVE_REFCATALOG
- Save a copy of the downloaded astrometric reference catalogs in FITS_LDAC format to REFOUT_CATPATH [None]
- SN_THRESHOLDS
- The pair of signal-to-noise ratio (S/N) thresholds (in standard deviations) indicating the minumum threshold for the sample of all sources and of high-S/N sources, respectively [None]
- SOLVE_ASTROM
- Compute astrometric solution in 2 passes, or just compute statistics [None]
- SOLVE_PHOTOM
- Compute photometric solution in 2 passes, or just compute statistics [None]
- STABILITY_TYPE
- Type of stability of the astrometric instrument, one of: EXPOSURE, GROUP, INSTRUMENT, FILE [None]
- VERBOSE_TYPE
- Degree of verbosity output, one of: QUIET, NORMAL, LOG or FULL [None]
- WEIGHTFLAGS_MASK
- Binary mask applied to FLAGS_WEIGHT column to reject flagged detections [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'Scamp'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class SextractorConfig(Config) |
| | |
- Method resolution order:
- SextractorConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- ANALYSIS_THRESH
- Threshold at which CLASS_STAR and FWHM_ operate [mag / arcsec^2]
- BACKPHOTO_THICK
- Thickness of the background LOCAL annulus [pixel]
- BACKPHOTO_TYPE
- Background used to compute magnitudes (GLOBAL, LOCAL) [None]
- BACK_FILTERSIZE
- Size of background-filtering mask [background mesh]
- BACK_SIZE
- Size of a background mesh [pixel]
- BACK_TYPE
- The type of background subtracted from the images (AUTO, MANUAL) [None]
- BACK_VALUE
- The constant value to be subtracted from the images if BACK_TYPE is MANUAL [None]
- CATALOG_NAME
- Name of the output catalog [None]
- CATALOG_TYPE
- Format of the output catalog (ASCII, ASCII_HEAD, ASCII_SKYCAT, ASCII_VOTABLE, FITS_1.0, FITS_LDAC) [None]
- CHECKIMAGE_NAME
- Filename for the check-image [None]
- CHECKIMAGE_TYPE
- Type of information to put in the check-image (NONE, IDENTICAL, BACKGROUND, BACKGROUND_RMS, MINIBACKGROUND, MINIBACK_RMS, -BACKGROUND, FILTERED, OBJECTS, -OBJECTS, APERTURES, SEGMENTATION) [None]
- CLEAN
- Clean the catalog before writing to disk (Y, N) [None]
- CLEAN_PARAM
- Efficiency of cleaning [None]
- DEBLEND_MINCONT
- Minimum contrast parameter for deblending [None]
- DEBLEND_NTHRESH
- Number of deblending sub-thresholds [None]
- DETECT_MINAREA
- Minimum number of pixels above threshold triggering detection [pixel]
- DETECT_THRESH
- Detection threshold relative to background RMS (when THRESH_TYPE is RELATIVE) [None]
- DETECT_TYPE
- Type of device that produced the image (CCD, PHOTO) [None]
- FILTER
- Apply filtering to the data before extraction (Y, N) [None]
- FILTER_NAME
- Name of file contianing the filter definition [None]
- FLAG_IMAGE
- filename of the flag-image [None]
- FLAG_TYPE
- Combination method for flags on the same object (OR, AND, MIN, MAX, MOST) [None]
- GAIN
- Conversion factor used for error estimates of CCD magnitudes [e^- / ADU]
- MAG_GAMMA
- Gamma of the emulsion (when DETECT_TYPE is PHOTO) [None]
- MAG_ZEROPOINT
- Zero-point offset to be applied to magnitudes [mag]
- MASK_TYPE
- Method of masking of neighbors for photometry (NONE, BLANK, CORRECT) [None]
- MEMORY_BUFSIZE
- Number of scan-lines in the image buffer [None]
- MEMORY_OBJSTACK
- Maximum number of objects that the object-stack can contain [None]
- MEMORY_PIXSTACK
- Maximum number of pixels that the pixel-stack can contain [None]
- PARAMETERS_NAME
- Name of the file containing the list of parameters that will be computed and put into the catalog for each object [None]
- PHOT_APERTURES
- MAG_APER aperture diameter [pixel]
- PHOT_AUTOAPERS
- MAG_AUTO minimum circular aperture diameters (estimation disk, measurement disk) [None]
- PHOT_AUTOPARAMS
- MAG_AUTO controls (scaling parameter k of the first order moment and minimum R_min in units of A and B) [None]
- PIXEL_SCALE
- Pixel size [arcsec / pixel]
- SATUR_LEVEL
- Pixel value above which it is considered saturated (in applicable units) [None]
- SEEING_FWHM
- FWHM of stellar sources (for star/galaxy separation only) [arcsec]
- STARNNW_NAME
- Name of the file containing the neural-network weights for star/galaxy separation [None]
- THRESH_TYPE
- Meaning of DETECT_THRESH and ANALYSIS_THRESH parameters (RELATIVE, ABSOLUTE) [None]
- VERBOSE_TYPE
- Verbosity level (QUIET, NORMAL, EXTRA_WARNINGS, FULL) [None]
- WEIGHT_IMAGE
- Filename of the detection and measurement weight-image [None]
- WEIGHT_TYPE
- Weighting scheme for weight-image (NONE, BACKGROUND, MAP_RMS, MAP_VAR, MAP_WEIGHT) [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'SExtractor'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
|
class SextractorParams(Params) |
| | |
Data and other attributes defined here:
- program_name = 'SExtractor'
Methods inherited from Params:
- __init__(self, filename=None)
- filename: name of file to save settings to
- get_defaults(self)
- Return the default list of parameters.
- get_param_list(self)
- Return a list of parameters.
- info(self)
- Show information about the settings, specifically, the parameters.
- is_config(self)
- Test for being a configuration (Params are not configurations).
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_list(self, param_list)
- Extend parameter list with param_list (duplicates are removed).
param_list: a list of parameters
- show(self)
- Show the settings as they will be written to the file.
- update_list(self, param_list)
|
class SwarpConfig(Config) |
| | |
- Method resolution order:
- SwarpConfig
- Config
- common.database.DBMain.DBObject
- __builtin__.object
Data descriptors defined here:
- BACK_DEFAULT
- Default background to be subtracted in BACK_TYPE MANUAL mode [None]
- BACK_FILTERSIZE
- Size of background filtering mask in factors of BACK_SIZE [None]
- BACK_SIZE
- Size of a background mesh [pixel]
- BACK_TYPE
- The type of background to subtract (AUTO, MANUAL) [None]
- CELESTIAL_TYPE
- Celestial coordinate system in output (NATIVE, PIXEL, EQUATORIAL, GALACTIC, ECLIPTIC) [None]
- CENTER
- Position of center in CENTER_TYPE MANUAL mode [deg]
- CENTER_TYPE
- The way the output frame is centered (ALL, MOST, MANUAL) [None]
- COMBINE
- Combine resampled images (Y, N) [None]
- COMBINE_BUFSIZE
- Amount of megabytes of buffer memory used for coaddition [None]
- COMBINE_TYPE
- The image combination method (MEDIAN, AVERAGE, MIN, MAX, WEIGHTED, CHI2, SUM) [None]
- COPY_KEYWORDS
- String containing comma-separated FITS keywords to copy to output images [None]
- DELETE_TMPFILES
- Delete temporary image files [None]
- FSCALASTRO_TYPE
- How to compute the astrometric part of the flux scaling (NONE, FIXED) [None]
- FSCALE_DEFAULT
- Default flux scale to adopt if FSCALE_KEYWORD nonexistent [None]
- FSCALE_KEYWORD
- FITS keyword containing flux scale in input images [None]
- GAIN_DEFAULT
- Default gain to adopt if GAIN_KEYWORD nonexistent [e^- / ADU]
- GAIN_KEYWORD
- FITS keyword containing the gain in input images [None]
- HEADER_ONLY
- Only create the header in the combined image (Y, N) [None]
- HEADER_SUFFIX
- Extension of the replacement header files [None]
- IMAGEOUT_NAME
- Filename of output image [None]
- IMAGE_SIZE
- Dimensions of the output image [pixel]
- INTERPOLATE
- Interpolate upon resampling (Y, N) [None]
- MEM_MAX
- Maximum amount of megabytes allowed for RAM storage [None]
- NTHREADS
- Number of threads to run simultaneously during resampling (0 is automatic) [None]
- OVERSAMPLING
- Amount of oversampling in each dimension [None]
- PIXELSCALE_TYPE
- How the output pixel size is set (MEDIAN, MIN, MAX, MANUAL, FIT) [None]
- PIXEL_SCALE
- Step between pixels in each dimension [arcsec / pixel]
- PROJECTION_TYPE
- Projection system used in output in standard WCS notation (AZP, TAN, STG, SIN, ARC, ZPN, ZEA, AIR, CYP, CEA, CAR, MER, COP, COE, COD, COO, BON, PCO, GLS, PAR, MOL, AIT, TCS, CSC, QSC) [None]
- RESAMPLE
- Resample the input images (Y, N) [None]
- RESAMPLE_DIR
- Path of the directory where the resampled images are written [None]
- RESAMPLE_SUFFIX
- Extension of the resampled images [None]
- RESAMPLING_TYPE
- Resampling method (NEAREST, BILINEAR, LANCZOS2, LANCZOS3, LANCZOS4) [None]
- SUBTRACT_BACK
- Background-subtract images prior to resampling [None]
- VERBOSE_TYPE
- Verbosity level (QUIET, NORMAL, FULL) [None]
- VMEM_DIR
- Path of the directory where virtual-memory and other temporary files are written [None]
- VMEM_MAX
- Maximum amount of megabytes allowed for virtual-memory storage [None]
- WEIGHTOUT_NAME
- Filename of the output weight-map [None]
- WEIGHT_IMAGE
- List of filenames of input weight-maps [None]
- WEIGHT_SUFFIX
- Extension of the input weight-maps [None]
- WEIGHT_TYPE
- Type of input weight-map (NONE, MAP_WEIGHT, MAP_VARIANCE, MAP_RMS) [None]
- WRITE_FILEINFO
- Write extended information from input images to output images [None]
- object_id
- The object identifier
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
Data and other attributes defined here:
- program_name = 'SWarp'
Methods inherited from Config:
- __init__(self, filename=None)
- filename: name of file to save configuration to
- clone(self)
- get_defaults(self)
- Return a list of tuples (keyword, value)
- get_kw_dict(self)
- Return a dictionary of parameters and their values.
- get_kw_list(self)
- Return a list of (parameters, value) tuples.
- is_config(self)
- Test for being a configuration.
- remove(self, filename=None)
- Delete the settings file.
filename: name of file to delete
NOTE: If filename is given, it is used instead of self.filename.
If filename is None or if it doesn't exist, nothing will be
done.
- save(self, filename=None)
- Save the settings to a file.
filename: name of file to write settings to
NOTE: If filename is given, it is used instead of self.filename.
If neither are given, an error results.
- set_defaults(self)
- Set object attributes to their default values.
NOTE: Default values are defined in the Config module.
- set_from_dict(self, config)
- Set object attributes from a dictionary.
config: a dictionary containing the keywords as keys and values as
key values
- set_from_keys(self, **config)
- Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
- set_from_list(self, config_list)
- Set object attributes from a list of tuples.
config_list: a list of tuples (keyword, value)
- show(self)
- Show the settings as they will be written to the file.
- update_dict(self, class_parameter_dict)
- Method for setting class specific parameters and updating the class
parameter dictionary.
class_parameter_dict: the class parameter dictionary, with class
specific parameter values
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.
Methods inherited from common.database.DBMain.DBObject:
- __del__(self)
- Destructor for the DBObject
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
- __reduce__(self)
- Method necessary to create picklable objects
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
- as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
- Method much like the info method, but returns a dictionary.
Dictionary looks like:
{'<classname>.<property1_name>.<property2_name>': value,
'<classname>.<property2_name>.<property3_name>': value}
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
- commit(self)
- Commits object including objects that are referenced and have been changed.
If this object refers to other persistent object a commit() ensures that
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
- get_creator(self)
- Returns the name of the user who created this object.
- get_persistent(self)
- get_project(self)
- Returns the name of the project to which this object belongs.
- info(self, level=0, doc=False, _indent=0, _printclass=True)
- Print the values of all persistent properties of the object.
level : level of introspection
doc : display docstrings for attributes
_indent : internal parameter used for formatting
_printclass : internal parameter used for formatting
- inverse_objects(self, max_results=100)
- Iterate through and return all objects that use the current object
max_results The maximum number of objects returned per query
- inverse_query(self)
- go through all inverse properties to see if this object is used
- persists(self)
- Returns whether an object is already made persistent or transient.
- recommit(self)
- Commits changes to an object, without following links.
Class methods inherited from common.database.DBMain.DBObject:
- get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
- return all inverse properties
that are all the properties that point to this class
Data descriptors inherited from common.database.DBMain.DBObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from common.database.DBMain.DBObject:
- __metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
- This is the metaclass for persistent classes
Provides:
__new__ -- manages class construction
__call__ -- manages object instantiation
- database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
- pickle_id = None
| |