Skip to content

Use correct comparison in correlation detection

Henrik Stooss requested to merge Fix-timeseries into main

The if-condition for the correlation analysis checked for None, as that is the return value of a method not returning anything else, i.e. a _single_frame method with no correlation value implemented. The values however are stored in an array of numpy.float64, so the None casts to np.nan.

The if condition was basically always true, this MR corrects this behaviour.

The correlation analysis should be a separate function, this would make it easier to test it.

Changes:

  • Created a separate function in lib.util that is tested.

  • Fixed problems with logging displayed during the main loop

  • Fixed duplicate display of citations.

  • Tests

Edited by Henrik Stooss

Merge request reports