Skip to content

[ESSdiffraction] Save XYE files in tests and apply masks - #673

Merged
jl-wynen merged 3 commits into
mainfrom
test-save-xye
Jul 24, 2026
Merged

[ESSdiffraction] Save XYE files in tests and apply masks#673
jl-wynen merged 3 commits into
mainfrom
test-save-xye

Conversation

@jl-wynen

Copy link
Copy Markdown
Member

Fixes #618 and #672

The XYE files do not contain any metadata (see scipp/scippneutron#706) but they should be good enough to run some integration tests.

@jl-wynen
jl-wynen requested a review from nvaytet July 23, 2026 16:36
@jl-wynen jl-wynen added the essdiffraction Issues for essdiffraction. label Jul 23, 2026
"""
result.save(output_folder / "dream_reduced.cif")

wf.bind_and_call(save_xye)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the reason why we don't use bind_and_call for CIF files because we want to add the result.comment?

At first glance it seems strange that we use one method for CIF file and another for XYE file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We could handle the comment differently. And having a free-form comment for XYE or other files could be useful, too. The difference comes mainly from there being this CIF object that you build in memory. So the workflow has something to return. But we don't have that for other formats. (We do for SQW but that is way more complicated.)
We can talk about a good, common interface if you like.

@jl-wynen
jl-wynen added this pull request to the merge queue Jul 24, 2026
Merged via the queue into main with commit 471d94f Jul 24, 2026
8 checks passed
@jl-wynen
jl-wynen deleted the test-save-xye branch July 24, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

essdiffraction Issues for essdiffraction.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[essdiffraction]: Publish reduced files in xye format

2 participants