PlanktoScope / PlanktoScope

Open and Affordable Quantitative Imaging Platform
https://www.planktoscope.org
Creative Commons Attribution Share Alike 4.0 International
55 stars 23 forks source link

Export the filtered volume metadata field on all sample types #364

Closed ethanjli closed 5 months ago

ethanjli commented 5 months ago

This PR fixes #316 by making the Node-RED dashboard export the sample_total_volume metadata field (corresponding to the "Filtered volume" input field on the "Sample" page) for all sample types, instead of only exporting it on horizontal Plankton tow sample types.

This PR also (hopefully) fixes a regression caused by #352, in which the segmenter would be unable to create a done.txt file within /home/pi/data/img because that directory would be automatically created with root ownership.

ethanjli commented 5 months ago

I tested this PR with an image acquisition using the "Plankton net" sample type and then ran the segmenter on the resulting dataset and confirmed that sample_total_volume is exported as a metadata field in the EcoTaxa export from the segmenter.