Classes | |
class | TestModificationTracking |
Variables | |
_isModified | |
_modifications | |
ACTIVATE_INSPECTION = True | |
def EnablePSetHistory.auto_inspect | ( | ) |
helpers for inspection ####
Definition at line 8 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, | |
name | |||
) |
Definition at line 43 of file EnablePSetHistory.py.
def EnablePSetHistory.new__Module_name | ( | self | ) |
Definition at line 485 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType__iadd__ | ( | self, | |
other | |||
) |
Definition at line 540 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType__imul__ | ( | self, | |
other | |||
) |
Definition at line 532 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType__init__ | ( | self, | |
arg, | |||
argv | |||
) |
Definition at line 493 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_copy | ( | self | ) |
Definition at line 508 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_isModified | ( | self | ) |
Definition at line 504 of file EnablePSetHistory.py.
def EnablePSetHistory.new__ModuleSequenceType_remove | ( | self, | |
original | |||
) |
Definition at line 524 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType_replace | ( | self, | |
original, | |||
replacement | |||
) |
Definition at line 516 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new__ModuleSequenceType_resetModified | ( | self | ) |
Definition at line 499 of file EnablePSetHistory.py.
def EnablePSetHistory.new__place | ( | self, | |
name, | |||
mod, | |||
d | |||
) |
def EnablePSetHistory.new__placeLooper | ( | self, | |
name, | |||
mod | |||
) |
def EnablePSetHistory.new__placeService | ( | self, | |
typeName, | |||
mod | |||
) |
def EnablePSetHistory.new__placeSource | ( | self, | |
name, | |||
mod | |||
) |
def EnablePSetHistory.new__Sequenceable_name | ( | self | ) |
sequence history ####
Definition at line 444 of file EnablePSetHistory.py.
def EnablePSetHistory.new__SequenceIgnore_name | ( | self | ) |
Definition at line 471 of file EnablePSetHistory.py.
def EnablePSetHistory.new__SequenceNegation_name | ( | self | ) |
Definition at line 464 of file EnablePSetHistory.py.
def EnablePSetHistory.new__SequencePlaceholder_name | ( | self | ) |
Definition at line 460 of file EnablePSetHistory.py.
def EnablePSetHistory.new_addAction | ( | self, | |
tool | |||
) |
def EnablePSetHistory.new_checkRecording | ( | self | ) |
Definition at line 153 of file EnablePSetHistory.py.
def EnablePSetHistory.new_deleteAction | ( | self, | |
i | |||
) |
Definition at line 136 of file EnablePSetHistory.py.
def EnablePSetHistory.new_disableRecording | ( | self | ) |
Definition at line 140 of file EnablePSetHistory.py.
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 291 of file EnablePSetHistory.py.
References any(), alcazmumu_cfi.filter, join(), list(), and split.
Definition at line 349 of file EnablePSetHistory.py.
def EnablePSetHistory.new_enableRecording | ( | self | ) |
Definition at line 149 of file EnablePSetHistory.py.
Definition at line 98 of file EnablePSetHistory.py.
def EnablePSetHistory.new_items_ | ( | self | ) |
Definition at line 372 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 265 of file EnablePSetHistory.py.
References list().
def EnablePSetHistory.new_modifiedObjects | ( | self | ) |
Definition at line 53 of file EnablePSetHistory.py.
def EnablePSetHistory.new_moduleItems_ | ( | self | ) |
Definition at line 364 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_addParameter | ( | self, | |
name, | |||
value | |||
) |
Definition at line 403 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_Parameterizable_init | ( | self, | |
a, | |||
k | |||
) |
parameterizable history ####
Definition at line 396 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_resetModified | ( | self | ) |
Definition at line 428 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Parameterizable_setattr | ( | self, | |
name, | |||
value | |||
) |
Definition at line 410 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_Parameterizeable_delattr | ( | self, | |
name | |||
) |
Definition at line 419 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_ParameterTypeBase_resetModified | ( | self | ) |
Definition at line 437 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 202 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 184 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetHistory | ( | self | ) |
Definition at line 102 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 281 of file EnablePSetHistory.py.
def EnablePSetHistory.new_resetModifiedObjects | ( | self | ) |
Definition at line 57 of file EnablePSetHistory.py.
def EnablePSetHistory.new_Sequence_name | ( | self | ) |
Definition at line 478 of file EnablePSetHistory.py.
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 157 of file EnablePSetHistory.py.
References auto_inspect().
def EnablePSetHistory.new_setLooper_ | ( | self, | |
lpr | |||
) |
def EnablePSetHistory.new_setSchedule_ | ( | self, | |
sch | |||
) |
def EnablePSetHistory.new_SortedKeysDict__copy__ | ( | self | ) |
Definition at line 23 of file EnablePSetHistory.py.
def EnablePSetHistory.new_SortedKeysDict__deepcopy__ | ( | self, | |
memo = None |
|||
) |
Definition at line 27 of file EnablePSetHistory.py.
EnablePSetHistory._isModified |
Definition at line 414 of file EnablePSetHistory.py.
EnablePSetHistory._modifications |
Definition at line 399 of file EnablePSetHistory.py.
EnablePSetHistory.ACTIVATE_INSPECTION = True |
Definition at line 4 of file EnablePSetHistory.py.