Skip to content

Shape5D with floats? #11

@k-dominik

Description

@k-dominik

Shape5D seems to be a shape that has floating point number extents - fine. to_tuple will cast those to integers. Also in some other places it looks weird allowing floating point extents. Take is_scalar for example. How do you even define this with floats? Is something with a c extent of 1.9 still scalar?! And what would this even mean in channel dimension...
Also think of a shape with integers size along x=9.0, is 9 included [probing at 9.0 should be possible] (like it would be in a continuous world) or excluded (in the discrete world [probing not possible at this position]).

What was your motivation? Were you concerned with world coordinates? Then it might be better to allow for a transformation to world coordinates. Where do you need that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions