Project

General

Profile

Tietz F216 CMOS camera

Added by Morgan Beeby over 9 years ago

Hi Anchi,

I guess (hope) this is obvious, but: what class camera should I put in instruments.cfg for our new Tietz F216 CMOS camera? I don't see a corresponding entry in tietz.py, and am not sure how things work 'under the hood' enough to try just using the F416 class instead...

thanks,

Morgan


Replies (3)

RE: Tietz F216 CMOS camera - Added by Anchi Cheng over 9 years ago

Hi, Morgan,

Unfortunately, it looks like we have not encountered the camera before, hence no F216 class. Before I ask TVIPS, do you want to give it a try just adding this class in pyscope/tietz.py

Copy these to a new block and change all mention of F416 to F216 to see if it just work like that.

class TietzF416(Tietz):
  name = 'Tietz F416'
  binning_limits = [1,2,4]
  cameratypeattr = 'ctF416'
  mmname = 'CAM_F416_DATA'

What I do not know is what its binning_limits are, though. You will have to find out and let me know. Binning limits are limits that the camera allow us to configure. The highest bin on F416 is 4.

There is another function for TietzF416 class which is getBinnedMultiplier. F416 does not sum pixel values when binning but to give an average of the pixel values. Take an image in an empty area unbinned and binned and compare their mean counts will tell you whether your camera does a sum or average. If latter, you should inherit TietzF416 in your subclass, not Tietz.

RE: Tietz F216 CMOS camera - Added by Morgan Beeby over 9 years ago

Hi Anchi,

I plugged this in and successfully took an image using the python command line via pyscope -- so thanks!

Network problems mean I can't run it in the context of a full Leginon run but hoping for our IT guys to get that sorted out ASAP.

Will post again anything else I find.

How best to get this code incorporated into the Leginon codebase?

thanks,

Morgan

RE: Tietz F216 CMOS camera - Added by Anchi Cheng over 9 years ago

Since you have a sandbox of myami, copy the changed file there and do svn commit with a message "refs #3230" which is the redmine issue I created for it.

Once you have the file in your sandbox under pyscope

cd your_myami_sandbox/pyscope
svn commit tietz.py -m "refs #3230" 

I will take care of merging that with branches.

If that does not work, then it means you were not set up to commit code. I can arrange it for you later.

    (1-3/3)