I managed to write something that changes the acquisition date so that it matches the "last modified" date from the original file stat. I'm not sure I should do it this way (accessing a hidden attribute of an object is not very pretty), but here is how I do:
- Code: Select all
date = os.stat(filename)[ST_MTIME]
img._obj.acquisitionDate._val = long(1000*date)
("filename" is based on the name of the image, and I look in the DropBox if it exists.)
I'm also able to change the "creationEvent" time of images but it seems I can't modify the "updateEvent" time which is used to define the "import date". With something like :
- Code: Select all
img._obj.details.creationEvent.time._val = long(1000*date)
Now people importing their data for the first time get hundred of images in one week, which is not very practical to sort them out. That's why I'd like to let them "adjust" the import date.
An other way to display the data as they'd like to see it would be to modify Insight's code. I remember patching it myself once last year but I can't build it anymore on Windows (using build.py)... I get some error with a library, but I don't know how to correct it for omero to work correctly. I will try it on linux though.
- Code: Select all
org.apache.fop.tools.anttasks.Fop cannot be found