-
Notifications
You must be signed in to change notification settings - Fork 12
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
BUG: restore(clear=False) reflections added to other samples #289
Comments
@strempfer: I have reproduced this situation in test code with the current version and am working on repairs now. In short, the restored samples should each have two reflections in this test. That fails: for sample in e4cv.calc._samples.values():
assert len(sample.reflections) == 2, f"{sample.name=}"
assert len(e4cv.calc._samples) == 4
agent = DiffractometerConfiguration(e4cv)
config = agent.export()
agent.restore(config, clear=False)
assert len(e4cv.calc._samples) == 4
for sample in e4cv.calc._samples.values():
> assert len(sample.reflections) == 2
E AssertionError: assert 10 == 2 |
Those commits should have been on a new branch. Since I've pushed them, will remove the changes with |
Lots of new errors now in |
All of the form: Line 297 in c8163ab
|
... Starving for a |
It looks like when
clear=False
, it reads reflections from 'main' also into the following sample.Originally posted by @strempfer in #279 (comment)
The text was updated successfully, but these errors were encountered: