Closed prjemian closed 1 year ago
Have not yet encountered the reported situation.
This is ready for review.
newSpecFile()
function.newSpecFile()
function was documented with respect to existing SPEC file.newSpecFile()
function was refactored for readability, but same behavior as before, as assured by unit tests.I would need a your help to understand that one.
I would need a your help to understand that one.
Unit testing is a new topic we should get into. This PR might be that example that offers limited complexity yet real-world use. The actual code changes in bluesky/instrument/callbacks/spec_data_file_writer.py
are few. The bulk of the new code consists of blocks which tests for the reported error and related capability.
What do you say if we leave this PR open and talk about it in an upcoming 1-on-1 meeting?
You could test this branch and code yourself with this local command:
pytest -vvv --lf ./bluesky/tests/test_newSpecFile.py