cbirdferrer / collatrix

this tool collates the outputs of the MorphoMetriX photogrammetry tool
MIT License
4 stars 2 forks source link

No Collatrix output for Whale Body Condition Function #16

Closed abaz-oceans closed 4 months ago

abaz-oceans commented 1 year ago

Hi Clara,

I'm attempting to use the Whale Body Condition Function in CollatriX and running into a snag.

I got the same message screenshotted below whether I selected the csv containing the collated measurements outputted by CollatriX from the allIDs (measured in m) or PixelCount (pixels). Does it matter which of the two files we select for the first input? I'm looking to calculate a BAI in pixels.

Thank you 2022_allIDs.csv

Capture 2022_PixelCount.csv 2022_allIDs.csv

cbirdferrer commented 1 year ago

Hi! Hmm.. well if you got the same error on both then I don't think it's a PixCount error, although that might cause problems later since the headers are different. The BAI value should be the same ever when calculated from the meters version. From the error message, it looks like the problem is that your Animal_ID is numeric (2022) and the image name is a character, so I'd suggest converting the animal ID column to a character (maybe even just add a character prefix or something) and then trying again. Let me know how it goes!

abaz-oceans commented 1 year ago

Hi Clara,

Thanks for your response. I corrected the Animal ID for the 2022 folder with a character prefix but received a new error screenshotted below. I also tried running the function on a PixelCount .csv where all the Animal ID's are just the name of the folder (ex., "Replicates") not separate names (i.e., "Whale1", "Whale2") and the Image names are like DJI_0026.jpeg, but got the same result attached.

I'm hoping I am one step closer if it is the same when trying all my different test folders.

All the best, AB

Capture

cbirdferrer commented 1 year ago

Ah, ok I thought this might come up. I'm not sure why, but mmx now outputs headers with .00% when it used to be .0%, so if you just replace the .00% in the headers with .0% then that should work!