Closed donald-e-boyce closed 7 months ago
@donald-e-boyce By the way, can we re-use the image series located here for the tests? You could obtain them in the pytests via the example_repo_path
fixture, like so:
@pytest.fixture
def example_repo_imageseries_path(example_repo_path):
return example_repo_path / 'NIST_RUBY/multiruby_dexelas/imageseries'
def test_name(example_repo_imageseries_path):
# example_repo_imageseries_path will point to the directory containing the image series.
This pull request allows you to load an imageseries of type
image-files
by passing the yaml text directly to theopen()
command instead of writing it to a file first and then loading the file. This is just a convenience for writing raw data processing scripts.I also have a test file that verifies this, but since it involves a large data file, I chose not to submit it here. I suggest we add an imageseries directory to the hexrd-examples repository, where we can take advantage of existing large data files.
Here is the test script: