Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider creating a fake for GenericNeXusWorkflow #121

Open
SimonHeybrock opened this issue Oct 23, 2024 · 0 comments
Open

Consider creating a fake for GenericNeXusWorkflow #121

SimonHeybrock opened this issue Oct 23, 2024 · 0 comments

Comments

@SimonHeybrock
Copy link
Member

Usage in a unit test:

def test_loki():
    wf = LokiWorkflow(nexus_workflow=FakeGenericNeXusWorkflow())
    wf.compute(IofQ[SampleRun])

This would allow for bypassing file I/O as well as dealing with large data (or having to create small files). The challenge is that unless instrument parameters are reasonable the workflow may fail or return data that is not verifiable, e.g., if all data is in unphysical regions.

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

No branches or pull requests

1 participant