Skip to content
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

Diamond changes #4

Draft
wants to merge 51 commits into
base: master
Choose a base branch
from

Conversation

ulrikpedersen
Copy link
Member

This is an attempt to merge what is essentially two forks, having diverged a little since around 2016...

Unfortunately the people who made the core changes have now left Diamond - but the driver appears to be in a working state on one of our beamlines.

What I have done for this branch/PR is basically:

  • Merge areaDetector/ADMythen/master into DLS changes.
  • Removed DLS specific special build instructions as per the usual practice for drivers in areaDetector.
  • Re-added the ioc/mythenIOC example ioc which had somehow got lost...(?)

Blaz Kranjc added 30 commits January 11, 2017 09:54
This commit introduced no changes to the code, only the formatting was changed to be consistent across the source file.
Removed some of the dead code,
changed visability of some of the methods of the class,
removed some of the magic numbers.
Moved functions that do not depend on the class out of the class,
named some more constants,
flattened the structure of conditionals a bit, this does not impact performance but the code is much more readable now,
error is returned in set functions if nothing is done.
Consistency of naming convention.
Removal of some magic numbers.
Removed some of the if clause inconsistancies.
Moved an if/else stack to switch.
Added some more TODO comments for future references.
Now the firmware version is set.
Added communication status checks so there should be less false positives.
Wrapped everything in namespace,
wrapped byte swap functions into one function,
interface for read from device simplified.
Connection errors are now handled with exceptions.
…evice writes.

Moved the acquisition status set to the acquisition task
Removed temporary array, used macro for another magic number.
Removed serial number as it is only supported on some versions and not too helpful
Added documentation.
Added the gui.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants