Skip to content

Conversation

@SimonHeybrock
Copy link
Member

What the title says. Needed for processing ZOOM polarized data.

So far I do not have permission to share the files, so there is no added test.

# Loading many small files with Mantid is, for some reason, very slow when using
# the default number of threads in the Dask threaded scheduler (1 thread worked
# best, 2 is a bit slower but still fast). We can either limit that thread count,
# or add a lock here, which is more specific.
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. This might also help with other loaders. I saw some slowdown in BIFROST when using a threaded scheduler.

Copy link
Member Author

@SimonHeybrock SimonHeybrock Jun 10, 2025

Choose a reason for hiding this comment

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

You think this is due to HDF5 and not just Mantid?

Copy link
Member

Choose a reason for hiding this comment

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

Possibly. But I don't know. We should investigate

)
except TypeError:
# Not loaded using LoadEventNexus, so LoadMonitor option is not available.
loaded = _mantid_simpleapi.Load(Filename=str(filename), StoreInADS=False)
Copy link
Member

Choose a reason for hiding this comment

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

Why do you call Load again after the lock?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, should have been inside the lock. See update,

SimonHeybrock and others added 5 commits June 10, 2025 09:20
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
@SimonHeybrock SimonHeybrock merged commit c09c0e2 into fix-run-mapping Jun 10, 2025
4 checks passed
@SimonHeybrock SimonHeybrock deleted the isis-histogram-files branch June 10, 2025 08:55
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.

3 participants