New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Image identification in FitsImagePanel views #8
Comments
In |
What should be displayed for input images ? ie images loaded manually not coming from results. |
Note : There is also different labels for images in the "Image Input list". |
Two case:
If no hduname use its number |
|
Problem: |
This reflect the weakness of just calling setFitsImageIdentifier once to modify the display. But I think it is an actual issue, not only impacting the development of the ticket here |
As you described, the FitsImage identifier was aim to indicate 'filename ... 0/1..." so it is automatically updated by FitsImageLoader and FitsImageWriter to compute its value once. I am a bit lost in your problem description as several Object instances are used in the workflow:
I think you should modify the FitsImage identifier once an image is loaded (in memory), so you just overwrite the value by what you want. I agree with you that 3 will modify the FitsImage identifier of images loaded (2), so it seems necessary to add a new runtime flag in oitools to discard automatic update in FitsImageWriter... See https://github.com/JMMC-OpenDev/oitools/blob/master/src/main/java/fr/jmmc/oitools/model/DataModel.java that has few OITools flags.
|
Yes what you described is what I meant, -3 modify -2. |
Not finished. I only renamed the images from the result for now. |
The FitsImagePanel displays a too complicated title (file name ...) from FitsImage.getFitsImageIdentifier()
It would be better to use the HDU_NAME (or renamed by the GUI) for the image, but also indicate the associated result.
Two solutions:
To be investigated as the ViewerPanel only deals with FitsImageHDU so no mean to get its ServiceResult.
The text was updated successfully, but these errors were encountered: