-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from scipp/new-sciline-release
Compatibility with new sciline
- Loading branch information
Showing
11 changed files
with
57 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ graphviz | |
plopp | ||
pythreejs | ||
orsopy | ||
sciline>=23.9.1 | ||
sciline>=24.6.0 | ||
scipp>=23.8.0 | ||
scippneutron>=23.9.0 | ||
essreduce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,18 @@ | |
|
||
from ess import amor, reflectometry | ||
from ess.reflectometry import orso | ||
from ess.reflectometry.types import Filename, SampleRun | ||
from ess.reflectometry.types import Filename, ReferenceRun, SampleRun | ||
|
||
|
||
def test_build_orso_data_source(): | ||
pipeline = sciline.Pipeline( | ||
(*amor.load.providers, *orso.providers), | ||
params={Filename[SampleRun]: amor.data.amor_old_sample_run()}, | ||
params={ | ||
Filename[SampleRun]: amor.data.amor_old_sample_run(), | ||
Filename[ReferenceRun]: amor.data.amor_old_reference_run(), | ||
}, | ||
) | ||
pipeline[orso.OrsoInstrument] = None | ||
data_source = pipeline.compute(orso.OrsoDataSource) | ||
expected = fileio.data_source.DataSource( | ||
owner=fileio.base.Person( | ||
|
@@ -31,21 +35,13 @@ def test_build_orso_data_source(): | |
measurement=fileio.data_source.Measurement( | ||
data_files=[fileio.base.File(file="sample.nxs")], | ||
# We would need the full pipeline to determine this: | ||
additional_files=[], | ||
additional_files=[fileio.File("reference.nxs", comment="supermirror")], | ||
instrument_settings=None, | ||
), | ||
) | ||
assert data_source == expected | ||
|
||
|
||
def test_build_orso_reduction_without_creator(): | ||
pipeline = sciline.Pipeline(orso.providers) | ||
reduction = pipeline.compute(orso.OrsoReduction) | ||
assert reduction.software.name == "ess.reflectometry" | ||
assert reduction.software.version == str(reflectometry.__version__) | ||
assert reduction.creator is None | ||
|
||
|
||
def test_build_orso_reduction_with_creator(): | ||
creator = fileio.base.Person( | ||
name="Erika Mustermann", affiliation="ESS", contact="[email protected]" | ||
|