The python cms.Process object defines the property process to get and set the process name.
Getting the name works:
>>> process = cms.Process('TEST')
>>> process.process
'TEST'
Setting it doesn't work:
>>> process.process = 'TEST2'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_1_0_pre6/python/FWCore/ParameterSet/Config.py", line 392, in __setattr__
+"an instance of "+str(type(value))+" will not work - requested label is "+name)
TypeError: can only assign labels to an object that inherits from '_ConfigureComponent'
an instance of <type 'str'> will not work - requested label is process
Setting the name directly or via the setter does work:
The python
cms.Process
object defines the propertyprocess
to get and set the process name.Getting the name works:
Setting it doesn't work:
Setting the name directly or via the setter does work: