Redirecting progress to file

I have a minor issue: I’m currently running PyFR in the background and saving the output to a file.

When PyFR is running in the foreground, it prints progress updates about every second, reporting both elapsed and estimated remaining time, which is quite useful.

However, when running it in the background like I am, the frequent output makes the saved file quite large, making it hard to open. I end up having to use tail -f xxx to check progress.

I’m wondering if there’s a way to adjust the settings so that it prints progress updates approximately every minute instead. I didn’t compile PyFR from source, so I’m not sure if this is feasible.

Best regards.

There is not a ‘mainstream’ way to do this from the terminal, but you can adjust mindelta on your local version to change the output frequency.

Could you tell me which function in which PyFR document I should modify? Also, if I installed PyFR using pip install , can changes made directly to the PyFR source code take effect?
Best regards.

The line you need to change is linked above, and you will need the source code locally. So you will need to clone the current develop branch from github.

I apologize for my oversight in not noticing the link.
So I must download the source code from the latest branch, compile it, and then reinstall my PyFR. I understand, and this might be somewhat cumbersome. I’ll reassess my needs accordingly.
Thank you for your help.

You should just be able to do:

$ python3.1x -m venv pyfr_venv
$ cd pyfr_venv
$ . ./bin/activate
$ pip install pyfr
$ pip uninstall pyfr
$ git clone git@github.com:PyFR/PyFR.git
$ pip install -e PyFR

Thank you, it truly helped me a lot.