RSCH-RT / ImageJ_Macros

1 stars 0 forks source link

Inbuilt check of correct macro being used #11

Closed mbolt01 closed 7 years ago

mbolt01 commented 8 years ago

A possibility of ensuring the correct version of a macro is used would be to verify the last modified date against the date as entered into the macro code.

In ImageJ File.dateLastModified(path) will give the date and time last modified. The date could be extracted from this and compared to that stored in the update_date parameter.

A warning could pop up if these do not match. This would warn the user, and the developer (thus being able to update the code correctly) of mismatches.

mbolt01 commented 8 years ago

To simplify, could add a line to the results output with "Macro Version: 1.1". This could then be checked in QAtrack and flag up if it does not match. This is not strictly part of the macro functionality, but should be included with the v1.1 release to enable it to be used in QAtrack.

mbolt01 commented 7 years ago

Macro version included in results output which can be checked on QATrack.