Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Add Numpy-Array <-> DM-Image support #2

Open
Bejoscha opened this issue Sep 9, 2020 · 1 comment
Open

Add Numpy-Array <-> DM-Image support #2

Bejoscha opened this issue Sep 9, 2020 · 1 comment

Comments

@Bejoscha
Copy link

Bejoscha commented Sep 9, 2020

This will maybe be a bit trickier than than the others, but supporting image-variables (at least the data content) in this simplified hybrid-concept would be great. It's possible doable by storing values as Array-tags and/or having Python/DM code create the image an passing image-ID around. The latter might have difficulties with images not being kept in scope when not being shown, though.

@miile7
Copy link
Owner

miile7 commented Nov 19, 2020

This can be done after refactoring by using a DMType then (#4). The type then decides how it is saved to the persistent tags and how it is loaded from there.

The DMImageType could then write its tag and its data separately to the persistent tags on the dm-script side. On the python side it could then load both values and create a Py_Image instance from that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants