[FLASH-USERS] FLASH's python tools

Ryan Farber rjfarber at umich.edu
Fri May 28 11:06:58 EDT 2021


Hi Ong,

I remember being mystified the first time I encountered that archaic
"diamond operator."

The easiest solutions are:
1. Use the latest FLASH, where they updated the python code to be
compatible with python3
2. Use python2 if you need to use an old version of FLASH (like me :))

Or, you can replace "<>" with "!=", although there will be many more issues
you'll subsequently need to convert.

Best,
--------
Ryan


On Fri, May 28, 2021 at 8:33 AM Ong Jian Fuh <jianfuh.ong at eli-np.ro> wrote:

> Dear all,
>
> Good afternoon. I am trying to install the FLASH python tools for the
> plotting.
>
> Doing
> *python setup.py install --user *
>
> return
>
> *running install*
> *running build*
> *running build_py*
> *copying python/metadata.json -> build/lib/flash*
> *running build_scripts*
> *running install_lib*
> *copying build/lib/flash/metadata.json ->
> /home/ong/.local/lib/python3.8/site-packages/flash*
> *byte-compiling
> /home/ong/.local/lib/python3.8/site-packages/flash/flmake/utils.py to
> utils.cpython-38.pyc*
> *  File
> "/home/ong/.local/lib/python3.8/site-packages/flash/flmake/utils.py", line
> 423*
> *    if len(parts) <> 2:*
> *                         ^*
> *SyntaxError: invalid syntax*
>
> I am using python3.8. What can I do to fix this or use it with new python?
> Thanks.
>
> --
> Regards,
>
> Dr. Ong Jian Fuh
> Extreme Light Infrastructure - Nuclear Physics
> "Horia Hulubei" National Institute for Physics and Nuclear Engineering
> 30 Reactorului Street, 077125 Magurele (Ilfov), Romaniawww.eli-np.ro
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210528/53510a1c/attachment-0001.htm>


More information about the flash-users mailing list