Skip to content

[NMX] Allow setting output time bin unit.#545

Open
YooSunYoung wants to merge 2 commits intomainfrom
nmx-output-t-unit
Open

[NMX] Allow setting output time bin unit.#545
YooSunYoung wants to merge 2 commits intomainfrom
nmx-output-t-unit

Conversation

@YooSunYoung
Copy link
Copy Markdown
Member

I added output configuration to manually set output time bin unit.

At first, I thought it should be in the output configuration but then i realized it may be misleading when someone wants to use save_results function separately... So I just added it to workflow configuration.

@YooSunYoung YooSunYoung changed the title Allow setting output time bin unit. [NMX] Allow setting output time bin unit. Apr 27, 2026
@YooSunYoung YooSunYoung added the essnmx Issues for essnmx. label Apr 27, 2026
@github-project-automation github-project-automation Bot moved this to In progress in Development Board Apr 27, 2026
@YooSunYoung YooSunYoung moved this from In progress to Selected in Development Board Apr 27, 2026

# Histogram detector counts
output_tunit = config.workflow.result_time_bin_unit
t_bin_edges = t_bin_edges.to(unit=output_tunit)
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.

If DIALS expects ns (the default), does it also expect integers?
I.e. if the output unit is ns, do we then need to convert also to int?

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.

I'm not sure... but it computes wavelength from the time again so shouldn't it prefer float...?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

essnmx Issues for essnmx.

Projects

Status: Selected

Development

Successfully merging this pull request may close these issues.

2 participants