Classes | |
class | TestModificationTracking |
Variables | |
_isModified | |
_modifications | |
ACTIVATE_INSPECTION | |
def EnablePSetHistory.auto_inspect | ( | ) |
helpers for inspection ####
Definition at line 11 of file EnablePSetHistory.py.
Referenced by new__ModuleSequenceType__iadd__(), new__ModuleSequenceType__imul__(), new__ModuleSequenceType_remove(), new__ModuleSequenceType_replace(), new_Parameterizable_addParameter(), new_Parameterizable_setattr(), new_Parameterizeable_delattr(), and new_setattr().
def EnablePSetHistory.new___init__ | ( | self, | |
l, | |||
k | |||
) |
Definition at line 46 of file EnablePSetHistory.py.
def EnablePSetHistory.new__Module_name | ( | self | ) |
Definition at line 488 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType__iadd__ | ( | self, | |
other | |||
) |
Definition at line 546 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType__imul__ | ( | self, | |
other | |||
) |
Definition at line 538 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType__init__ | ( | self, | |
arg, | |||
argv | |||
) |
Definition at line 496 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_copy | ( | self | ) |
Definition at line 511 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_isModified | ( | self | ) |
Definition at line 507 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_remove | ( | self, | |
original | |||
) |
Definition at line 530 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType_replace | ( | self, | |
original, | |||
replacement | |||
) |
Definition at line 519 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType_resetModified | ( | self | ) |
Definition at line 502 of file EnablePSetHistory.py.
def EnablePSetHistory.new__place | ( | self, | |
name, | |||
mod, | |||
d | |||
) |
def EnablePSetHistory.new__placeLooper | ( | self, | |
name, | |||
mod | |||
) |
Definition at line 77 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new__placeService | ( | self, | |
typeName, | |||
mod | |||
) |
Definition at line 83 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new__placeSource | ( | self, | |
name, | |||
mod | |||
) |
Definition at line 71 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new__Sequenceable_name | ( | self | ) |
sequence history ####
Definition at line 447 of file EnablePSetHistory.py.
References str.
def EnablePSetHistory.new__SequenceIgnore_name | ( | self | ) |
Definition at line 474 of file EnablePSetHistory.py.
References str.
def EnablePSetHistory.new__SequenceNegation_name | ( | self | ) |
Definition at line 467 of file EnablePSetHistory.py.
References str.
def EnablePSetHistory.new__SequencePlaceholder_name | ( | self | ) |
Definition at line 463 of file EnablePSetHistory.py.
def EnablePSetHistory.new_addAction | ( | self, | |
tool | |||
) |
def EnablePSetHistory.new_checkRecording | ( | self | ) |
Definition at line 156 of file EnablePSetHistory.py.
def EnablePSetHistory.new_deleteAction | ( | self, | |
i | |||
) |
Definition at line 139 of file EnablePSetHistory.py.
def EnablePSetHistory.new_disableRecording | ( | self | ) |
Definition at line 143 of file EnablePSetHistory.py.
Definition at line 111 of file EnablePSetHistory.py.
References join(), and edm.print().
def EnablePSetHistory.new_dumpModifications | ( | self, | |
comments = True , |
|||
process = True , |
|||
module = False , |
|||
sequence = True , |
|||
value = True , |
|||
sort = True , |
|||
group = True |
|||
) |
Return some text describing all the modifications that have been made. * comments: print out comments describing the file and line which triggered the modification, if determined. * process: print "process." in front of every name * module: only print out one entry per top-level module that has been changed, rather than the details * sequence: include changes to sequences * value: print out the latest value of each name * sort: whether to sort all the names before printing (otherwise they're in more-or-less time order, within each category)
Definition at line 294 of file EnablePSetHistory.py.
References any(), join(), list(), and cms::dd.split().
Definition at line 352 of file EnablePSetHistory.py.
def EnablePSetHistory.new_enableRecording | ( | self | ) |
Definition at line 152 of file EnablePSetHistory.py.
Definition at line 101 of file EnablePSetHistory.py.
def EnablePSetHistory.new_items_ | ( | self | ) |
Definition at line 375 of file EnablePSetHistory.py.
def EnablePSetHistory.new_modificationCheckpoint | ( | self | ) |
Set a checkpoint, ie get the current list of all known top-level names and store them. Later, when we print out modifications we ignore any modifications that do not affect something in this list. There is currently no way of clearing this, but I think this is generally a use-once feature.
Definition at line 268 of file EnablePSetHistory.py.
References list().
def EnablePSetHistory.new_modifiedObjects | ( | self | ) |
Definition at line 56 of file EnablePSetHistory.py.
def EnablePSetHistory.new_moduleItems_ | ( | self | ) |
Definition at line 367 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_addParameter | ( | self, | |
name, | |||
value | |||
) |
Definition at line 406 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_Parameterizable_init | ( | self, | |
a, | |||
k | |||
) |
parameterizable history ####
Definition at line 399 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_resetModified | ( | self | ) |
Definition at line 431 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_setattr | ( | self, | |
name, | |||
value | |||
) |
Definition at line 413 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_Parameterizeable_delattr | ( | self, | |
name | |||
) |
Definition at line 422 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_ParameterTypeBase_resetModified | ( | self | ) |
Definition at line 440 of file EnablePSetHistory.py.
def EnablePSetHistory.new_recurseDumpModifications_ | ( | self, | |
name, | |||
o | |||
) |
Recursively return a standardised list of modifications from the object hierarchy.
Definition at line 205 of file EnablePSetHistory.py.
References ConfigBuilder.dumpPython().
def EnablePSetHistory.new_recurseResetModified_ | ( | self, | |
o | |||
) |
Empty all the _modifications lists for all objects beneath this one.
Definition at line 187 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetHistory | ( | self | ) |
Definition at line 105 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetModified | ( | self | ) |
Empty out all the modification lists, so we only see changes that happen from now onwards.
Definition at line 284 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetModifiedObjects | ( | self | ) |
Definition at line 60 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Sequence_name | ( | self | ) |
def EnablePSetHistory.new_setattr | ( | self, | |
name, | |||
value | |||
) |
This catches modifications that occur during process.load, and only records a modification if there was an existing object and the version after __setattr__ has a different id(). This does not mean that the object is different, only redefined. We still really need a recursive-comparison function for parameterizeable objects to determine if a real change has been made.
Definition at line 160 of file EnablePSetHistory.py.
References auto_inspect(), and triggerObjects_cff.id.
def EnablePSetHistory.new_setLooper_ | ( | self, | |
lpr | |||
) |
def EnablePSetHistory.new_setSchedule_ | ( | self, | |
sch | |||
) |
Definition at line 89 of file EnablePSetHistory.py.
References mps_setup.append.
def EnablePSetHistory.new_SortedKeysDict__copy__ | ( | self | ) |
Definition at line 26 of file EnablePSetHistory.py.
Definition at line 30 of file EnablePSetHistory.py.
References triggerObjects_cff.id.
|
private |
Definition at line 417 of file EnablePSetHistory.py.
|
private |
Definition at line 402 of file EnablePSetHistory.py.
EnablePSetHistory.ACTIVATE_INSPECTION |
Definition at line 7 of file EnablePSetHistory.py.