Page History
...
Configuration file in both frameworks is starting from section pyana
or psana
with followed by the list of parameters. The list of parameters is different for historical reasons. When python modules are designed to support both frameworks, both sections may be presented in the same configuration file. Alien section is ignored at run time of each framework. Example of these sections in the same configuration file:
Code Block | ||
---|---|---|
| ||
[pyana] files = /reg/d/psdm/xcs/xcs72913/xtc/e265-r0049-s00-c00.xtc /reg/d/psdm/xcs/xcs72913/xtc/e265-r0049-s04-c00.xtc /reg/d/psdm/xcs/xcs72913/xtc/e265-r0049-s05-c00.xtc num-events = 500 #skip-events = 0 #num-cpu = 1 verbose = 1 modules = py_img_algos.tahometer py_img_algos.cspad_arr_producer py_img_algos.cspad_image_producer py_img_algos.image_save_in_file [psana] files = exp=xcs72913:run=49 events = 500 #skip-events = 0 modules = py_img_algos.tahometer py_img_algos.cspad_arr_producer py_img_algos.cspad_image_producer py_img_algos.image_save_in_file |
At least 4 A few differences can be clearly seen:
- psana accepts both forms for
files
, pyana - only explicit list of files. - Parameter for number of events is has different name
events
andnum-events
for psana and pyana, respectively. verbose
mode currently works for pyana only. Logger does not have interface in psana yet.- psana currently does not support multiprocessor mode
num-cpu
.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b3fe57c415c29c94-4b9a1374-4d5547aa-b569b063-3dde3cf980417db2a7aeafa9"><ac:plain-text-body><![CDATA[ | | returns value of parameter as a boolean value, strings "yes", "true", "True", "on", "1" represent true value, strings "no", "false", "False", "off", "0" represent false value, any other string will raise exception. If parameter is not defined in a file then default value is returned without conversion, if default value was not given then exception is raised. | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="70196a07b3e44ddd-35e31e32-44584ff2-8085bdab-b33d9d0255eae63611135af2"><ac:plain-text-body><![CDATA[ | | returns value of parameter as integer value. If parameter is not defined in a file then default value is returned without conversion, if default value was not given then exception is raised. If conversion from string to integer fails the standard exception is raised. | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="288cd9ab221ca0a6-dc196d5f-4a824d0c-86609de7-e69a8a24748b767fa183cb0a"><ac:plain-text-body><![CDATA[ | | returns value of parameter as floating point value. If parameter is not defined in a file then default value is returned without conversion, if default value was not given then exception is raised. If conversion from string to floating point fails the standard exception is raised. | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="76deb6b22cb841fe-17f9b605-4b0b4dba-ad14a086-ebd7639ce496817af79c948c"><ac:plain-text-body><![CDATA[ | | returns value of parameter as string. If parameter is not defined in a file then default value is returned without conversion, if default value was not given then exception is raised. | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="eb455167ef41160c-0ed2274b-402e4ee5-acd6a26b-b6695779bc11915b6eeda0f9"><ac:plain-text-body><![CDATA[ | | returns value of parameter as "source address" string. If parameter is not defined in a file then default value is returned without conversion, if default value was not given then exception is raised. This method does the same as | ]]></ac:plain-text-body></ac:structured-macro> |
| returns value of parameter as a list of boolean values. If parameter is not defined in a file then empty list is returned, otherwise every word in a parameter value is converted to boolean (according to same rules as defined for | ||
| returns value of parameter as a list of integers. If parameter is not defined in a file then empty list is returned, otherwise every word in a parameter value is converted to integers and all numbers are returned in one list. Conversion errors will raise exception. | ||
| returns value of parameter as a list of floating point numbers. If parameter is not defined in a file then empty list is returned, otherwise every word in a parameter value is converted to float and all numbers are returned in one list. Conversion errors will raise exception. | ||
| returns value of parameter as a list of strings. If parameter is not defined in a file then empty list is returned, otherwise parameter value is split into words which are returned in one list. | ||
| returns value of parameter as a list of "source address" strings. If parameter is not defined in a file then empty list is returned, otherwise parameter value is split into words which are returned in one list. |
...
pyana | psana | ||
---|---|---|---|
| | ||
| | ||
|
| ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="079368fb9f2cca23-1167b4dc-40fd4a8d-86e49a55-e354d327361a2ea1c3e0b0d8"><ac:plain-text-body><![CDATA[ | | | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="515394387a28a181-ebadc580-439145d3-b53ba689-745b2b87610fee34548213e8"><ac:plain-text-body><![CDATA[ | | | ]]></ac:plain-text-body></ac:structured-macro> |
| |
...