Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nvaytet
Copy link
Member

@nvaytet nvaytet commented Aug 29, 2022

These changes are mainly due to coordinate transformation graphs having been moved to a new location in scippneutron.

@nvaytet nvaytet requested a review from jl-wynen August 29, 2022 11:28
- scippneutron=0.8.0
- scippnexus=0.1.7
- scipp=0.16.2
- scippneutron=0.9.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait for scippneutron 0.9.2 (building now)

from scippneutron.tof import conversions
from scippneutron.core.conversions import _elem_dtype, _elem_unit
from scippneutron.conversion.graph import beamline, tof
from scippneutron._utils import elem_dtype, elem_unit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a proper way of exposing these! (This is a comment about scipp...)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering once more whether dtype and unit should just forward to the elem dtype and unit? There are several questions:

  • What to do for Dataset buffer? There is not unique dtype and unit in this case. unit could be None.
  • How to get the buffer type, if not via dtype?
  • Is there code that will break, and why?

from scippneutron._utils import elem_unit

# from scippneutron.tof import conversions
# from scippneutron.core.conversions import _elem_unit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

@nvaytet nvaytet merged commit c16aa33 into main Aug 29, 2022
@nvaytet nvaytet deleted the update_to_scipp0.16 branch August 29, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants