Code Monkey home page Code Monkey logo

ophyd-basler's Introduction

ophyd-basler

Tests PyPI

Basler camera API integration with ophyd

  • Free software: BSD-3-Clause license

ophyd-basler's People

Contributors

abbygi avatar briannaromasky avatar mrakitin avatar thomaswmorris avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ophyd-basler's Issues

Suggestions on restructuring the code

Here is a couple of suggestions on restructuring the code to enable configuration attributes (which can also be saved to databroker):

  • make all the parameters from
    self.user_defined_name = self.camera_object.GetDeviceInfo().GetUserDefinedName()
    self.camera_model = self.camera_object.GetDeviceInfo().GetModelName()
    self.camera_serial_no = self.camera_object.GetDeviceInfo().GetSerialNumber()
    self.width = self.camera_object.Width()
    self.height = self.camera_object.Height()
    self.pixel_level_min = self.camera_object.PixelDynamicRangeMin()
    self.pixel_level_max = self.camera_object.PixelDynamicRangeMax()
    self.active_format = self.camera_object.PixelFormat.GetValue()
    self.formats_supported = self.camera_object.PixelFormat.Symbolics
    self.payload_size = self.camera_object.PayloadSize()
    self.grab_timeout = 5000
    components (Signal) with kind='config'. It can be done via a dedicated class, and there can be 2 classes mixed together.
  • open camera on the stage method, and close it on the unstage one, don't mix the calls to the camera API in __init__ and __trigger__.
  • the update_components method is not used anywhere, maybe we can remove it.
  • In
    self.camera_object.StartGrabbingMax(self.exposure.get())
    the exposure name is misleading. I believe it collects up to the specified number of frames. Let's use a more accurate variable name (exposure may refer to the exposure_time/exposure_period conventionally used in the area-detector framework).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.