Skip to content

Gemmi setup MapReorderOnly never sets AxisOrder for a grid #322

@gabriellareggiano

Description

@gabriellareggiano

Hello,

I've been using gemmi for a bit and I wanted to check that this was the intended behavior. I load in a X-ray map which has a map extent that is not equal to the unit cell. When I attempt to do setup with the MapReorderOnly, the axis order of the grid stays as unknown. Here's my ipython session (just removed some typo lines), gemmi version 0.6.4:

In [17]: m8jsd = gemmi.read_ccp4_map("8jsd-createmap-out-0.ccp4")

In [21]: m8jsd.setup(float('nan'), mode=gemmi.MapSetup.ReorderOnly)

In [22]: m8jsd.grid.axis_order
Out[22]: <AxisOrder.Unknown: 0>

In [24]: m8jsd.full_cell()
Out[24]: False

In [26]: m8jsd.setup(float('nan'))

In [28]: m8jsd.grid.axis_order
Out[28]: <AxisOrder.XYZ: 1>

I believe this happens because it's not in the full cell. Is this the intended usage? It's confusing to me that the axis_order is not updated unless the grid is in the full cell, since we already have the full cell function. Is it to prevent other functions from running on a non-full cell grid?

For context, I just wanted to use set_subarray for this non-full cell grid, which understandably asks for XYZ axis order.

Thank you for your help!

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