Page History
...
- https://pswww.slac.stanford.edu/swdoc/releases/ana-current/pyana-ref/html/ for pyana and
- https://pswww.slac.stanford.edu/swdoc/releases/ana-current/psana-ref/html/ for python-psana.
Code of examples
...
can be found in the packages
- https://pswww.slac.stanford.edu/trac/psdm/browser/psdm/pyana_examples#trunk/src - pyana_examples, and
- https://pswww.slac.stanford.edu/trac/psdm/browser/psdm/psana_examples#trunk/src - psana_examples.
From this documentation it is clear that there is no full backward compatibility between these libraries; data types and access methods are different. Below we present a list of references with code examples for both frameworks.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="61dccca26bffa47a-16c7ae52-48354132-9015ad27-f268b8d9188ae96bd4eefdf1"><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="60c1381d0476ee9f-890f9f5e-48904f10-b21ea54c-4091ab916ec564394ae676dd"><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="a7150c02505168c2-f439b24e-45904cf0-8900a0cf-1367c6e403365fff685cc845"><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="6f4b360481fb5236-5e938e24-47cf4c26-b8e9b6ff-1f5415a8f585ce9a95a80415"><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="d54634057c6ebfd8-3bf7e36a-40c04844-9684a28a-4533e79573249e4b3294fd98"><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="a2e9d7281960091f-56dee395-4cfc4521-8321a01a-368ef9609c89241b73aa7e20"><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="2f699699404673b2-13733439-49794538-843093b4-9427936dba20b7a8b1814e01"><ac:plain-text-body><![CDATA[ | | | ]]></ac:plain-text-body></ac:structured-macro> |
| |
...