EOGrady21 / vprr

Video Plankton Recorder Data Processing
https://eogrady21.github.io/vprr/
Other
2 stars 1 forks source link

complexity of vpr_autoid_read() #55

Open EOGrady21 opened 10 months ago

EOGrady21 commented 10 months ago

Copliot brought to my attention that vpr_autoid_read() has a very high cyclomatic complexity of 23

It should be reduced by removing some of the conditional (if) statements. I think this issue is mainly due to the inclusion of aid and aidmeas data within the same function. Now that we have moved away from Visual Plankton we could split this into two functions, one to read measurement data (from ImageJ) and one to read aid files. Really the measurement data workflow has been separated from vprr in practicality. Maybe it could be removed all together.

@kevinsorochan thoughts?