AFM-SPM / TopoStats

An AFM image analysis program to batch process data and obtain statistics from images
https://afm-spm.github.io/TopoStats/
GNU Lesser General Public License v3.0
55 stars 10 forks source link

chore: Update dependency to AFMReader #854

Closed MaxGamill-Sheffield closed 3 weeks ago

MaxGamill-Sheffield commented 3 weeks ago

Fixes #853. Based off PR #852 (due to testing on asd)

This adds a line within the broad exception capturing incorrect channels to output the error thrown by that channel.

Works as intended for asd files, however, other for filetypes it produces duplicate error messages. This is because asd uses AFMReader whose except logging statement is super-seeded by the broad except statement. As the rest of the io.py functions are moved to AFMReader, this duplication issue should resolve itself.

MaxGamill-Sheffield commented 3 weeks ago

Closing as I'm redoing this branching from main, not PR #852