chrisjsewell / pytest-notebook

A pytest plugin for regression testing and regenerating Jupyter Notebooks
https://pytest-notebook.readthedocs.io
BSD 3-Clause "New" or "Revised" License
50 stars 10 forks source link

Subprocess stdout not stored in cell but captured outside of notebook #33

Open ibressler opened 2 years ago

ibressler commented 2 years ago

I am not sure if this is intended behavior or a bug of the pytest+pytest-notebook combination, but it behaves different to JupyterLab (3.2.2): If a notebook runs a python function with multiprocessing in parallel and this python function emits messages to stdout via simple print() calls, typically, this output goes to the output of the respective notebook cell.

When running pytest over the notebook, it fails because the new cell output misses the print() messages and thus mismatches the stored notebook which contains the print() messages in its outputs.

Source repo with notebook

(Make sure to clone it recursively as it contains subrepos) The function being run with multiprocessing.subprocess(stdout=PIPE) on line 159 calls an external binary, captures its stderr and prints the captured stderr on stdout with print() finally. This print() messages do not get stored in the cell outputs during test runs (but they do with JupyterLab).

Thanks for any insights on this!

A recording of my pytest run:

(The ordering of the second batch of messages below differs, but nevertheless, it should be shown prefixed with '+' for 'obtained', right?)

% pytest
================================================= test session starts ==================================================
platform darwin -- Python 3.9.10, pytest-6.2.5, py-1.10.0, pluggy-0.13.1 -- /Users/ingo/.py38/bin/python
rootdir: /Users/ingo/code/particle_concentration_from_dls, configfile: tox.ini
plugins: pytest_notebook-0.8.0, anyio-3.3.4, cov-3.0.0
collected 1 item                                                                                                       

Concentration from DLS.ipynb F                                                                                   [100%]

======================================================= FAILURES =======================================================
____________________________________ notebook: nbregression(Concentration from DLS) ____________________________________
pytest_notebook.nb_regression.NBRegressionError: 
--- expected
+++ obtained
## modified /cells/25/outputs/0/text:
@@ -1,242 +1,2 @@
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_122 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

-Scattering angle 130 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_090 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 98 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-Scattering angle 90 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_098 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 90 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_098 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_138 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 146 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_138 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 146 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-Scattering angle 58 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_066 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 122 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_130 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_026 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 34 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_058 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 66 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 122 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_130 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 138 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_146 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_058 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 66 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_074 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 82 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 42 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_050 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 90 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_098 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_026 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 34 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_106 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 114 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-Scattering angle 42 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_050 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 74 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_082 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_074 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 82 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_090 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 98 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 138 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_146 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 58 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_066 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_042 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 50 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_106 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 114 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 58 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_066 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 138 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_146 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_074 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 82 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_122 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 130 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-Scattering angle 26 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_034 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 106 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_114 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_090 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 98 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_042 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 50 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 106 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_114 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 42 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_050 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_042 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 50 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_138 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 146 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 74 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_082 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 106 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_114 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_106 7 2021 MW002-030000_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 114 not found!
-    Skipping '7 2021 MW002-030000_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_026 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 34 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 74 not found!
-    Skipping '7 2021 MW002-030001_0001.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_082 7 2021 MW002-030001_0001/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 26 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_034 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_058 7 2021 MW002-030000_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 66 not found!
-    Skipping '7 2021 MW002-030000_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_122 7 2021 MW002-030000_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 130 not found!
-    Skipping '7 2021 MW002-030000_0003.ASC'.
-Scattering angle 26 not found!
-    Skipping '7 2021 MW002-030001_0002.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_034 7 2021 MW002-030001_0002/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-Scattering angle 122 not found!
-    Skipping '7 2021 MW002-030001_0003.ASC'.
-/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_130 7 2021 MW002-030001_0003/contin_in.txt:
-Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
-
-
-CONTIN analysis with 12 threads took 16.6s.
+CONTIN analysis with 12 threads took 16.4s.

------------------------------------------------- Captured stdout call -------------------------------------------------
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_026 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 34 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_026 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 34 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 42 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_050 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 138 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_146 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_090 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 98 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_058 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 66 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 122 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_130 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 122 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_130 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_122 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 130 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_122 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 130 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
Scattering angle 26 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_034 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 90 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_098 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_074 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 82 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_106 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 114 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
Scattering angle 90 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_098 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 106 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_114 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_042 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 50 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_122 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 130 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 58 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_066 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 138 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_146 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_074 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 82 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_074 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 82 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 42 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_050 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 90 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_098 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_138 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 146 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_090 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 98 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
Scattering angle 74 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_082 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 58 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_066 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_042 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 50 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_090 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 98 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 26 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_034 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 122 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_130 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_058 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 66 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_106 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 114 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 138 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_146 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 74 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_082 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_106 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 114 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_138 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 146 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
Scattering angle 58 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_066 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 26 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_034 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_058 7 2021 MW002-030000_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 66 not found!
    Skipping '7 2021 MW002-030000_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_138 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 146 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 74 not found!
    Skipping '7 2021 MW002-030001_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_082 7 2021 MW002-030001_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 106 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_114 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_026 7 2021 MW002-030000_0002/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 34 not found!
    Skipping '7 2021 MW002-030000_0002.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_042 7 2021 MW002-030000_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 50 not found!
    Skipping '7 2021 MW002-030000_0003.ASC'.
Scattering angle 106 not found!
    Skipping '7 2021 MW002-030001_0001.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_114 7 2021 MW002-030001_0001/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Scattering angle 42 not found!
    Skipping '7 2021 MW002-030001_0003.ASC'.
/Users/ingo/code/particle_concentration_from_dls/analyse_dls_with_contin/testdata/mw002-03/contin_050 7 2021 MW002-030001_0003/contin_in.txt:
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

=============================================== short test summary info ================================================
FAILED Concentration from DLS.ipynb::nbregression(Concentration from DLS)
================================================== 1 failed in 43.05s ==================================================
arekfu commented 2 months ago

I'm experiencing the same problem with output written directly by a C++ extension module to stdout. For some reason, Jupyter captures it in the cell output, but pytest-notebook does not.