Skip to content

How to consolidate different API needs for different backends? #9

Closed
@pllim

Description

@pllim

One of the things we had discussed before but didn't resolve was how does this API consolidate backend differences? For example, glue needs extra things like "reference image" and so on for linking, which no one else cares about.

A more concrete problem is like this: If Imviz has 2 images linked by WCS, but you use the markers API and input only has pixel coordinates, you need to tell Imviz which image the coordinates are for. This is further complicated by the fake that Imviz does create a hidden "fake WCS" image that is only 10x10 when WCS linking happens, and makes it the "reference image", which is useless for all pixel inputs, so you have to provide a non-reference image for the pixel coordinates. I hope this makes sense.

There are other problems that would require special inputs for Imviz here and there but I cannot recall right now. The gist is, whenever one of these situations arise in any of the backend that adopts this API, how are they supposed to implement this API while still make things work for their backends?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions