This fix has been created in order to avoid a threading issue when running the unit tests. It is caused by using the matplotlib gui backend outside of the main thread (I believe due to the use of subtests).
The fix is to use a non-interactive backend when running the unit tests.
This fix has been created in order to avoid a threading issue when running the unit tests. It is caused by using the matplotlib gui backend outside of the main thread (I believe due to the use of subtests).
The fix is to use a non-interactive backend when running the unit tests.
An example of the error is:
The fix is also mentioned here: https://stackoverflow.com/questions/52839758/matplotlib-and-runtimeerror-main-thread-is-not-in-main-loop