Skip to content

Commit

Permalink
Merge pull request #27 from lsst-camera-dh/master
Browse files Browse the repository at this point in the history
Propagate changes which have been done so far
  • Loading branch information
youtsumi authored Sep 6, 2020
2 parents 4a17ebd + 9928aab commit 447fc64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/bot_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ def setSpotFilter(filter):
def openShutter(exposure):
sanityCheck()
print "Open shutter for %s seconds" % exposure
print "Actual open time to tell the shutter is %d mili seconds" % int(1000*exposure*(1.-5/800.))
a=time.time()
bb.ProjectorShutter().exposure(Duration.ofMillis(int(1000*exposure)))
bb.ProjectorShutter().exposure(Duration.ofMillis(int(1000*exposure*(1.-5/800.))))
b=time.time()
time.sleep(0.03*exposure)
c=time.time()
Expand Down
2 changes: 1 addition & 1 deletion lib/pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, exposure, max_reads=2048):
Maximum number of reads of monitoring photodiode. Default: 2048.
"""

buffertime = exptime*5./800.+2
buffertime = 3.0


# for exposures over 0.5 sec, nominal PD readout at 60Hz,
Expand Down

0 comments on commit 447fc64

Please sign in to comment.