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

copy detectors from previous configuration #2

Open
prjemian opened this issue Mar 21, 2023 · 0 comments · May be fixed by #3
Open

copy detectors from previous configuration #2

prjemian opened this issue Mar 21, 2023 · 0 comments · May be fixed by #3
Assignees
Labels
good first issue Good for newcomers

Comments

@prjemian
Copy link

Copy these detectors from previous configuration (~/beamline/dev/jupyter-ht-hedm/seisidd):

    @staticmethod        
    def get_detector(mode):
        """return the 1idPG4 tomo detector for HT-HEDM"""
        det_PV = {
            'debug':       "6iddSIMDET1:",
            'dryrun':      "1idPG4:",
            'production':  "1idPG4:",
            }[mode]
        
        det = {
            'debug'     :  SimDetector      (det_PV, name='det'),
            'dryrun'    :  PointGreyDetector(det_PV, name='det'),
            'production':  PointGreyDetector(det_PV, name='det'),
            }[mode]
        
        from .devices.motors import TomoCamStage
        det.motors = TomoCamStage(name='motors')
@prjemian prjemian added the good first issue Good for newcomers label Mar 21, 2023
@prjemian prjemian self-assigned this Mar 21, 2023
@prjemian prjemian linked a pull request Mar 21, 2023 that will close this issue
prjemian added a commit that referenced this issue Mar 21, 2023
prjemian added a commit that referenced this issue Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant