| |
- exceptions.Exception(exceptions.BaseException)
-
- ResultsError
- su_util.su(__builtin__.dict)
-
- visit
-
- metrics_visit
- su_util.su_list(__builtin__.object)
-
- visit_list
- instrument_usage
class instrument_usage |
|
A class to hold instrument usage data. |
|
Methods defined here:
- __init__(self, iu=None)
- Constructor for an instrument_usage.
- __repr__(self)
- The string representation of an instrument_usage object is the formatted available syntax
- get(self, field)
- Gets the value of field.
Will retrieve it from the PMDB if needed.
- rptfmt(self)
- textfmt(self)
Data and other attributes defined here:
- relation = {'acs_hrc': 'visit_derived_data', 'acs_sbc': 'visit_derived_data', 'acs_wfc': 'visit_derived_data', 'cos_fuv': 'visit_derived_data', 'cos_nuv': 'visit_derived_data', 'fgs': 'visit_derived_data', 'foc': 'visit_derived_data', 'nic1': 'visit_derived_data', 'nic2': 'visit_derived_data', 'nic3': 'visit_derived_data', ...}
|
class metrics_visit(visit) |
|
For data contained in the hst_metrics database. |
|
- Method resolution order:
- metrics_visit
- visit
- su_util.su
- __builtin__.dict
- __builtin__.object
Methods defined here:
- get(self, field, failobj=None)
- Gets the value of field.
Will retrieve it from the PMDB if needed.
Static methods defined here:
- __new__(cls, data={})
Data and other attributes defined here:
- METRICS_DB = 'hst_metrics'
- conversion = {'activation_req_date': <class 'time_util.spss_time'>, 'approval_status': None, 'dd_status_date': <class 'time_util.spss_time'>, 'phaseone_id': None, 'submission_date': <class 'time_util.spss_time'>, 'too_status_date': <class 'time_util.spss_time'>}
- conversion_imports = ['time_util']
- relation = {'activation_req_date': 'too_track', 'approval_status': 'too_track', 'dd_status_date': 'dd_track', 'phaseone_id': 'dd_track', 'submission_date': 'dd_track', 'too_status_date': 'too_track'}
Methods inherited from visit:
- __contains__(self, item)
- __init__(self, data={})
- Constructor for a visit object.
If the input parameter is not a string, dictionary, or list, a
TypeError will be raised.
- __repr__(self)
- The string representation of a visit object is the sunit_id
- delete_constraint_windows(self)
- get_all_target_types(self)
- Return a concatenation of all the different internal and external target types
for the exposures within this visit.
Target types:
(E)arth, (D)ark Earth, (M)oon, (I)nternal, orbit-(P)ole, (A)nti-sun, (B)ackground pointing,
(F)ixed, (G)eneric or (S)olar system.
- get_config_map(self, Format='full')
- Return a configuration mapping. See available.py for details.
- get_config_map_key(self, Format='full')
- Return the header string for a particular config map format.
- get_constraint_windows(self, scenario_name=None)
- get_exposure_special_requirements(self)
- Returns a list of exposure special requirements.
- get_failure_cause(self, lrp)
- Return failure_cause from lrp_schedulables.
- get_instrument_usage(self)
- get_lrps(self)
- Return a list of the LRP this visit is in.
- get_numexp_with_datavolume(self)
- Returns the number of exposures in the visit that contribute to the max_data_vol
for the visit.
- get_plan_orient(self, lrp)
- Return a planOrient object containing the plan orient for the
given LRP.
- get_plan_window_history(self)
- get_plan_windows(self, lrp)
- Return a planWindow object containing all the plan windows for the
given LRP.
- get_primary_target_type(self)
- Take all the target types returned from get_all_target_types and reduce it to
the single most important target type based on the following ranking (from most
important to least): S, F, G, M, A, P, D, E, I, B.
- get_pw_count(self, lrp)
- Return the number of plan windows for this SU in a given lrp.
- get_pw_span(self, lrp)
- Return a window object with the begin time as the earliest plan window begin and
the end time as the latest plan window end.
- get_pw_status(self, lrp)
- Return the status from plan_window_status for this visit and the
input LRP.
- get_sched_end(self, baseline='GLOBAL')
- Retrieve the scheduled end time from the global baseline.
- get_sched_start(self, baseline='GLOBAL')
- Retrieve the scheduled start time from the baseline.
- get_sched_times(self, baseline='GLOBAL')
- Retrieve the scheduled start and end times from the baseline.
- get_special_req_map(self)
- Produce the special requirement map. See available report for mapping details.
- get_special_requirements(self)
- get_suitability_string(self, ttime=None, scenario_name=None)
- Produce the suitability string used in the available report.
Requirements from Ian:
1. The fields in the cw table should start out being populated with '-'
to represent no constraint windows.
2. If an SAA-free constraint window intersects the interval, re-populate
the field with a '.'.
3. If a PSA coded constraint window intersects the interval, re-populate
the field with a 'p'.
4. If an SAA coded constraint window intersects the interval, re-populate
the field with an 'S'.
5. If a PAC coded constraint window intersects the interval, re-populate
the field with an 'x' unless it already contans and 'S'--in which case
re-populate with an 'X' instead.
6. If an SAC coded constraint window intersects the interval, re-populate
the field with an 'X'.
7. If a CVZ coded constraint window intersects the interval, re-populate
the field with an 'X' if it is populated with 'S', 'x' if it is populated
with 'p', and 'C' if populated by '.' or '-'.
- get_targets(self, data=None)
- Query ASSIST to determine the targets contained in the visit.
Returns target list object; returns a null list if no records
were found in the database.
- get_visit_special_requirements(self)
- Returns a list of visit special requirements.
- has_field(self, field)
- Check the object for the existence of 'field' in its internal dictionary.
Returns TRUE if it is there, FALSE otherwise.
- has_key(self, field)
- is_coronographic(self)
- Return TRUE if this SU has exposures using coronographic
apertures.
- is_cos_mirrorb(self)
- Returns True if this visit contains a COS MIRROR B exposure.
Otherwise, returns False.
- is_earthflat(self)
- Check to see if this visit is an earthflat.
Returns TRUE or FALSE
- is_parallel(self)
- Return TRUE if this SU has the PAR special requirement.
Return False otherwise.
- is_prime(self)
- Check to see if this is a prime visit.
Returns TRUE or FALSE
- other_after_by(self)
- Return a list of special_req objects from another SU which points to this SU
with AFTER BY or an empty list if there is no such SU.
- other_orient_from(self)
- Return a list of special_req objects from another SU which points to this SU
with ORIENT FROM or an empty list if there is no such SU.
- set(self, field, value)
- Set a 'field' to 'value'.
'Field' is set to 'value' only in the object. This function does not affect
the PMDB.
Methods inherited from su_util.su:
- __cmp__(self, other)
- Compare two SUs.
If 'other' is a string, assume it is an SU id, otherwise 'other'
must be an su object. 'Self' and 'other' are compared using the string
value for their sunit_id. If the two SUs have the sunit_id, then the
version numbers are compared. Raises a TypeError if something other
than string or su object is passed in.
- __eq__(self, other)
- __ne__(self, other)
- get_configs(self)
- Return a list of all the different configs used in this SU.
- get_error(self)
- get_non_parallel_configs(self)
- Return a list of all the configs used in non-parallel exposures
in this SU.
- get_obsets(self)
- Query QSBRANCHING to determine the obsets contained in the SU.
Returns list of obset objects; returns a null list if no records
were found in the database.
- get_orient_linkset(self)
- Return the linkset id if this SU is in a orient linkset or None if it is not.
- get_parallel_configs(self)
- Return a list of all the configs used in parallel exposures
in this SU.
- get_qelogsheet_data(self)
- Retrieve info from QELOGSHEET relation for all exposures in SU.
Returns a list of exposure objects sorted by obset sequence number
(if exposure is in a multi-obset SU), obset id, exposure number
in the logsheet, then exposure ID.
- get_timing_linkset(self)
- Return the linkset id if this SU is in a timing linkset or None if it is not.
- get_trans_date(self)
- Retrieve the Transformation date of the SU as populated in a
comment field in the QSUCOMMENTS relation.
- get_usc_windows(self)
- Returns a dictionary where the keys are the window types
from assist..usc_name and the values are window_lists.
- get_verified_constraint_windows(self)
- Returns a list of dictionaries, each dictionary containing the data from
one record of constraint_windows_ver for this SU.
- get_wistat_sunit(self, baseline='GLOBAL')
- Retrieve the data from wistat_sunit from the baseline.
- in_executing_linkset(self)
- in_executing_orient_linkset(self)
- Returns TRUE if this is SU is part of an executing orient linkset.
- in_executing_timing_linkset(self)
- Returns TRUE if this is SU is part of an executing timing linkset.
- intersect_usc_windows(self)
- Performs an intersection on all the window lists in the usc_windows dictionary.
Returns a single window list.
- is_baselined(self)
- Determines if SU is on global baseline according to the database.
Returns 0 (false) or 1 (true).
- set_error(self, message)
- Simple mutator method to set error attribute.
- set_priority(self, priority)
- Set the current scheduling units priority.
Returns the rowcount. This should be 1 if the set priority
worked, 0 if it did not.
Priority must be an integer between 1 and 100.
- update(self, start_t=None, end_t=None, verbose=True)
- Execute a pmdb/update for this su.
Returns the status flag from the pmdb -update.
- vis_fit_estimate(self, vis_size=22)
- Determine how friendly this SU is to orbits with limited visibility.
vis_size is given in minutes.
Returns the number of estimated orbits that will fit in orbits of size
'vis_size'.
Static methods inherited from su_util.su:
- __get_sunit__(data)
Data descriptors inherited from su_util.su:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from su_util.su:
- valid_10_char_su_re = r'^\s([0-9,A-Z]{7,7}):([0-9,A-Z]{2,2})\s$'
- valid_7_char_su_re = r'^\s([0-9,A-Z]{7,7})\s$'
- valid_vn_re = r'^\s([0-9,A-Z]{2,2})\s$'
Methods inherited from __builtin__.dict:
- __delitem__(...)
- x.__delitem__(y) <==> del x[y]
- __ge__(...)
- x.__ge__(y) <==> x>=y
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getitem__(...)
- x.__getitem__(y) <==> x[y]
- __gt__(...)
- x.__gt__(y) <==> x>y
- __iter__(...)
- x.__iter__() <==> iter(x)
- __le__(...)
- x.__le__(y) <==> x<=y
- __len__(...)
- x.__len__() <==> len(x)
- __lt__(...)
- x.__lt__(y) <==> x<y
- __setitem__(...)
- x.__setitem__(i, y) <==> x[i]=y
- __sizeof__(...)
- D.__sizeof__() -> size of D in memory, in bytes
- clear(...)
- D.clear() -> None. Remove all items from D.
- copy(...)
- D.copy() -> a shallow copy of D
- fromkeys(...)
- dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
- items(...)
- D.items() -> list of D's (key, value) pairs, as 2-tuples
- iteritems(...)
- D.iteritems() -> an iterator over the (key, value) items of D
- iterkeys(...)
- D.iterkeys() -> an iterator over the keys of D
- itervalues(...)
- D.itervalues() -> an iterator over the values of D
- keys(...)
- D.keys() -> list of D's keys
- pop(...)
- D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
- popitem(...)
- D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
- setdefault(...)
- D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
- values(...)
- D.values() -> list of D's values
- viewitems(...)
- D.viewitems() -> a set-like object providing a view on D's items
- viewkeys(...)
- D.viewkeys() -> a set-like object providing a view on D's keys
- viewvalues(...)
- D.viewvalues() -> an object providing a view on D's values
Data and other attributes inherited from __builtin__.dict:
- __hash__ = None
|
class visit(su_util.su) |
|
A class for visits derived from the su class. |
|
- Method resolution order:
- visit
- su_util.su
- __builtin__.dict
- __builtin__.object
Methods defined here:
- __contains__(self, item)
- __init__(self, data={})
- Constructor for a visit object.
If the input parameter is not a string, dictionary, or list, a
TypeError will be raised.
- __repr__(self)
- The string representation of a visit object is the sunit_id
- delete_constraint_windows(self)
- get(self, field, failobj=None)
- Gets the value of field.
Will retrieve it from the PMDB if needed.
- get_all_target_types(self)
- Return a concatenation of all the different internal and external target types
for the exposures within this visit.
Target types:
(E)arth, (D)ark Earth, (M)oon, (I)nternal, orbit-(P)ole, (A)nti-sun, (B)ackground pointing,
(F)ixed, (G)eneric or (S)olar system.
- get_config_map(self, Format='full')
- Return a configuration mapping. See available.py for details.
- get_config_map_key(self, Format='full')
- Return the header string for a particular config map format.
- get_constraint_windows(self, scenario_name=None)
- get_exposure_special_requirements(self)
- Returns a list of exposure special requirements.
- get_failure_cause(self, lrp)
- Return failure_cause from lrp_schedulables.
- get_instrument_usage(self)
- get_lrps(self)
- Return a list of the LRP this visit is in.
- get_numexp_with_datavolume(self)
- Returns the number of exposures in the visit that contribute to the max_data_vol
for the visit.
- get_plan_orient(self, lrp)
- Return a planOrient object containing the plan orient for the
given LRP.
- get_plan_window_history(self)
- get_plan_windows(self, lrp)
- Return a planWindow object containing all the plan windows for the
given LRP.
- get_primary_target_type(self)
- Take all the target types returned from get_all_target_types and reduce it to
the single most important target type based on the following ranking (from most
important to least): S, F, G, M, A, P, D, E, I, B.
- get_pw_count(self, lrp)
- Return the number of plan windows for this SU in a given lrp.
- get_pw_span(self, lrp)
- Return a window object with the begin time as the earliest plan window begin and
the end time as the latest plan window end.
- get_pw_status(self, lrp)
- Return the status from plan_window_status for this visit and the
input LRP.
- get_sched_end(self, baseline='GLOBAL')
- Retrieve the scheduled end time from the global baseline.
- get_sched_start(self, baseline='GLOBAL')
- Retrieve the scheduled start time from the baseline.
- get_sched_times(self, baseline='GLOBAL')
- Retrieve the scheduled start and end times from the baseline.
- get_special_req_map(self)
- Produce the special requirement map. See available report for mapping details.
- get_special_requirements(self)
- get_suitability_string(self, ttime=None, scenario_name=None)
- Produce the suitability string used in the available report.
Requirements from Ian:
1. The fields in the cw table should start out being populated with '-'
to represent no constraint windows.
2. If an SAA-free constraint window intersects the interval, re-populate
the field with a '.'.
3. If a PSA coded constraint window intersects the interval, re-populate
the field with a 'p'.
4. If an SAA coded constraint window intersects the interval, re-populate
the field with an 'S'.
5. If a PAC coded constraint window intersects the interval, re-populate
the field with an 'x' unless it already contans and 'S'--in which case
re-populate with an 'X' instead.
6. If an SAC coded constraint window intersects the interval, re-populate
the field with an 'X'.
7. If a CVZ coded constraint window intersects the interval, re-populate
the field with an 'X' if it is populated with 'S', 'x' if it is populated
with 'p', and 'C' if populated by '.' or '-'.
- get_targets(self, data=None)
- Query ASSIST to determine the targets contained in the visit.
Returns target list object; returns a null list if no records
were found in the database.
- get_visit_special_requirements(self)
- Returns a list of visit special requirements.
- has_field(self, field)
- Check the object for the existence of 'field' in its internal dictionary.
Returns TRUE if it is there, FALSE otherwise.
- has_key(self, field)
- is_coronographic(self)
- Return TRUE if this SU has exposures using coronographic
apertures.
- is_cos_mirrorb(self)
- Returns True if this visit contains a COS MIRROR B exposure.
Otherwise, returns False.
- is_earthflat(self)
- Check to see if this visit is an earthflat.
Returns TRUE or FALSE
- is_parallel(self)
- Return TRUE if this SU has the PAR special requirement.
Return False otherwise.
- is_prime(self)
- Check to see if this is a prime visit.
Returns TRUE or FALSE
- other_after_by(self)
- Return a list of special_req objects from another SU which points to this SU
with AFTER BY or an empty list if there is no such SU.
- other_orient_from(self)
- Return a list of special_req objects from another SU which points to this SU
with ORIENT FROM or an empty list if there is no such SU.
- set(self, field, value)
- Set a 'field' to 'value'.
'Field' is set to 'value' only in the object. This function does not affect
the PMDB.
Static methods defined here:
- __new__(cls, data={})
Data and other attributes defined here:
- conversion = {'active_flag': None, 'beg_tim': <class 'time_util.spss_time'>, 'end_tim': <class 'time_util.spss_time'>, 'est_orbits': <type 'int'>, 'external_su': None, 'first_sci': <class 'time_util.spss_time'>, 'flight_ready_date': <function <lambda>>, 'internal_su': None, 'lrp_state': None, 'priority': None, ...}
- conversion_imports = ['time_util', 'string']
- relation = {'active_flag': 'su_track', 'est_orbits': 'su_track', 'external_su': 'su_track', 'flight_ready_date': 'su_track', 'internal_su': 'su_track', 'lrp_state': 'su_track', 'prop_id': 'su_track', 'schedulability_time': 'su_track', 'spss_prep_done': 'su_track', 'status': 'su_track', ...}
Methods inherited from su_util.su:
- __cmp__(self, other)
- Compare two SUs.
If 'other' is a string, assume it is an SU id, otherwise 'other'
must be an su object. 'Self' and 'other' are compared using the string
value for their sunit_id. If the two SUs have the sunit_id, then the
version numbers are compared. Raises a TypeError if something other
than string or su object is passed in.
- __eq__(self, other)
- __ne__(self, other)
- get_configs(self)
- Return a list of all the different configs used in this SU.
- get_error(self)
- get_non_parallel_configs(self)
- Return a list of all the configs used in non-parallel exposures
in this SU.
- get_obsets(self)
- Query QSBRANCHING to determine the obsets contained in the SU.
Returns list of obset objects; returns a null list if no records
were found in the database.
- get_orient_linkset(self)
- Return the linkset id if this SU is in a orient linkset or None if it is not.
- get_parallel_configs(self)
- Return a list of all the configs used in parallel exposures
in this SU.
- get_qelogsheet_data(self)
- Retrieve info from QELOGSHEET relation for all exposures in SU.
Returns a list of exposure objects sorted by obset sequence number
(if exposure is in a multi-obset SU), obset id, exposure number
in the logsheet, then exposure ID.
- get_timing_linkset(self)
- Return the linkset id if this SU is in a timing linkset or None if it is not.
- get_trans_date(self)
- Retrieve the Transformation date of the SU as populated in a
comment field in the QSUCOMMENTS relation.
- get_usc_windows(self)
- Returns a dictionary where the keys are the window types
from assist..usc_name and the values are window_lists.
- get_verified_constraint_windows(self)
- Returns a list of dictionaries, each dictionary containing the data from
one record of constraint_windows_ver for this SU.
- get_wistat_sunit(self, baseline='GLOBAL')
- Retrieve the data from wistat_sunit from the baseline.
- in_executing_linkset(self)
- in_executing_orient_linkset(self)
- Returns TRUE if this is SU is part of an executing orient linkset.
- in_executing_timing_linkset(self)
- Returns TRUE if this is SU is part of an executing timing linkset.
- intersect_usc_windows(self)
- Performs an intersection on all the window lists in the usc_windows dictionary.
Returns a single window list.
- is_baselined(self)
- Determines if SU is on global baseline according to the database.
Returns 0 (false) or 1 (true).
- set_error(self, message)
- Simple mutator method to set error attribute.
- set_priority(self, priority)
- Set the current scheduling units priority.
Returns the rowcount. This should be 1 if the set priority
worked, 0 if it did not.
Priority must be an integer between 1 and 100.
- update(self, start_t=None, end_t=None, verbose=True)
- Execute a pmdb/update for this su.
Returns the status flag from the pmdb -update.
- vis_fit_estimate(self, vis_size=22)
- Determine how friendly this SU is to orbits with limited visibility.
vis_size is given in minutes.
Returns the number of estimated orbits that will fit in orbits of size
'vis_size'.
Static methods inherited from su_util.su:
- __get_sunit__(data)
Data descriptors inherited from su_util.su:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from su_util.su:
- valid_10_char_su_re = r'^\s([0-9,A-Z]{7,7}):([0-9,A-Z]{2,2})\s$'
- valid_7_char_su_re = r'^\s([0-9,A-Z]{7,7})\s$'
- valid_vn_re = r'^\s([0-9,A-Z]{2,2})\s$'
Methods inherited from __builtin__.dict:
- __delitem__(...)
- x.__delitem__(y) <==> del x[y]
- __ge__(...)
- x.__ge__(y) <==> x>=y
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getitem__(...)
- x.__getitem__(y) <==> x[y]
- __gt__(...)
- x.__gt__(y) <==> x>y
- __iter__(...)
- x.__iter__() <==> iter(x)
- __le__(...)
- x.__le__(y) <==> x<=y
- __len__(...)
- x.__len__() <==> len(x)
- __lt__(...)
- x.__lt__(y) <==> x<y
- __setitem__(...)
- x.__setitem__(i, y) <==> x[i]=y
- __sizeof__(...)
- D.__sizeof__() -> size of D in memory, in bytes
- clear(...)
- D.clear() -> None. Remove all items from D.
- copy(...)
- D.copy() -> a shallow copy of D
- fromkeys(...)
- dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
- items(...)
- D.items() -> list of D's (key, value) pairs, as 2-tuples
- iteritems(...)
- D.iteritems() -> an iterator over the (key, value) items of D
- iterkeys(...)
- D.iterkeys() -> an iterator over the keys of D
- itervalues(...)
- D.itervalues() -> an iterator over the values of D
- keys(...)
- D.keys() -> list of D's keys
- pop(...)
- D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
- popitem(...)
- D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
- setdefault(...)
- D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
- values(...)
- D.values() -> list of D's values
- viewitems(...)
- D.viewitems() -> a set-like object providing a view on D's items
- viewkeys(...)
- D.viewkeys() -> a set-like object providing a view on D's keys
- viewvalues(...)
- D.viewvalues() -> an object providing a view on D's values
Data and other attributes inherited from __builtin__.dict:
- __hash__ = None
|
class visit_list(su_util.su_list) |
|
A class to hold a list of visits; it inherits from the su_list class |
|
- Method resolution order:
- visit_list
- su_util.su_list
- __builtin__.object
Methods defined here:
- __init__(self, visitlist=None)
- Constructor for a visit_list object.
If the input parameter is not a string, dictionary, or list, a
TypeError will be raised.
The constructor requires a list of visit objects or a
string containing a file name. The file should contain
a list of sunit_id's, one sunit_id per line. If 'visitlist' contains
something other than list or a file name as a string,
an TypeError will be raised.
Note: the visit_list object uses the input list of visit
objects in place, it does not copy them.
- append(self, v=None)
- Appends another visit or visit_list onto the current visit_list.
Raises -- TypeError - Raised if the input is something other than
a target_list or target.
- apply_usc(self, usc_name, usc_windows, usc_value=1.0, usc_mode='combine', usc_comment='No comment provided.', **usc_keyword_args)
- delete_cws(self, visits)
- Deletes constraint windows from the DB fo input visit list
- format(self, formats=[])
- Return this visit list as a string formatted in various ways.
- get(self, field)
- Populates all visit objects in the list with the value of 'field' from DB if not already in the object.
Returns the value of 'field'.
- get_visit(self, visit)
- Returns the visit object for the 'visit' from the list.
Given a visit, go through the visit_list until the visit object
matching that visit is found. Return that visit object. If
no matching visit object is found, None is returned.
- search(self, param, value_pattern)
- Search the list of visits for visits where the value of 'param' matches 'value_pattern'.
'Value_pattern' should be a regular expresion. 'search' is case-insensitive.
Returns su_list object containing all the matching visits.
- set(self, field, value)
- Set a 'field' to 'value'.
'Field' is set to 'value' only in the object. This function does not affect
the PMDB.
Methods inherited from su_util.su_list:
- __add__(self, other)
- Add an this su_list to another su_list or su.
Returns a new su_list.
Raises a TypeError if the input is not an su_list or su.
- __getitem__(self, offset)
- __getslice__(self, low, high)
- __len__(self)
- __radd__(self, other)
- Add an this su_list to another su_list or su.
Returns a new su_list.
- __repr__(self)
- create_sunit_id_file(self, filename)
- Create a file with the sunit_ids from the su_list.
For use with commands like 'cclist -create' which can take as
input a file with a list of sus.
- equals(self, other)
- Checks if 'self' and 'other' are the same.
Returns true if 'self' and 'other' contain all the same sus and
only the same sus. Otherwise, returns false.
- get_sunit(self, sunit_id)
- Returns the su object with 'sunit_id' from the list.
Given an sunit_id, go through the su_list until the su object
matching that sunit_id is found. Return that su object. If
no matching SU object is found, None is returned.
- index(self, su)
- Return the smallest i where sulist[i] == su.
- prop_id_string(self)
- Returns a string with the prop_ids formatted for an IN clause in an ISQL query.
- reverse(self)
- Reverse the list of SUs.
- set_priority(self, priority)
- Set the priority for all the SUs in the su_list.
Returns a tuple. The first value in the tuple is the number
of SUs successfully processed, the second, the number of
SUs not processed.
- sort(self, cmpfunc=None, key=None, reverse=False)
- Sort the list of sus.
If 'cmpfunc' and 'key' defaulted, sort the SUs based on their sunit id.
Otherwise use the passed in 'cmpfunc' and 'key' to compare them.
- sunit_id_string(self)
- Returns a string with the sunit_ids formatted for an IN clause in an ISQL query.
- update(self, start_t=None, end_t=None, verbose=True)
- runs su update for each su in list.
Data descriptors inherited from su_util.su_list:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |