Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Start work towards #104
Simple implementation of crystals dispersed on a grid. Tested a lot manually, by moving around on the simulated TEM, but the automatic tests are not too expansive.
Example image and corresponding diffraction pattern:
And zoomed in to a single crystal:
With this crystal:
There is a lot to do still, as evidenced by the many TODO-comments everywhere, but this is a start at least.
I'll do a follow-up PR with small refactoring for the simulation-TEM and camera to use this new simulation. I left them untouched in this PR to reduce the scope. At the moment, to know the microscope parameters, the camera keeps track of the TEM instance in the same way that the TEMControl object does. Kind of hacky, I like the suggested implementation in #104 (comment) better.