This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imagedisk | |
from datetime import datetime | |
id = imagedisk.iQImageDisk() | |
##print type(id[1091567616].getDateAndTimeObject()) | |
date_min = datetime(2011, 3, 7) | |
date_max = datetime(2011, 3, 10) | |
no_flip_rotation = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imagedisk | |
import logging | |
REPLACE_DOT_WITH_CHAR = '_' # Replace dot with underscore | |
LOG_FILENAME = 'iQ_filename_fixer.log' | |
id = imagedisk.iQImageDisk() | |
##logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG) | |
logging.basicConfig(level=logging.DEBUG) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Zip Andor iQ settings | |
Creates a zip file on the desktop containing: | |
- iQ settings folder | |
C:\Documents and Settings\All Users\Application Data\Kinetic Imaging\ | |
C:\ProgramData\Kinetic Imaging\ | |
- Configurations file | |
C:\Program Files\Andor Bioimaging\Common Files\kiconfig.ini | |
C:\Program Files (x86)\Andor Bioimaging\Common Files\kiconfig.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Generate an Andor iQ .rgn file with a scalable and repositionable pattern of | |
FRAPPA points | |
''' | |
# User variables | |
SENSOR_SIZE = [512, 512] | |
CENTER = [255,255] | |
SIDE_LENGTH = 360 | |
POINT_SPACING = 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
Serial LCD control | |
Control Sparkfun LCD-10097 with DEV-09716 | |
''' | |
from serial import Serial | |
from time import sleep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Resizes images in current folder for vandanashourie.com | |
# Saves images into sub-folders: | |
# ./tabs-square <- 150x150 thumbnauls | |
# ./full <- 725x525 images | |
import os, sys | |
import Image | |
import math | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Toggle safety shutter until open on Andor Laser Combiner | |
""" | |
from ctypes import windll, c_ulong, byref | |
from time import sleep, clock | |
import sys | |
class DeVaSys: | |
"""Microcontroller board in Combiner controlling laser safety interlocks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Calculate specimen width in pixels using a line profile | |
Requires: | |
- Single channel image stack | |
- Line profile drawn on image | |
Algorithm: | |
- Assumes a single signal level threashold | |
- Checks each line profile pixel intensity from the left for start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Calculate specimen width in pixels using a line profile | |
Requires: | |
- Single channel image stack | |
- Line profile drawn on image | |
Output: | |
- Bitmap image stack of profile plots of original stack (not usable data!) | |
- Text file on desktop with numeric data with format: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Arduino UNO reads rising edge trigger pulses on pin 2 and displays counter on | |
Sparkfun SerLCD LCD-10097 | |
Photo of setup: http://ompldr.org/vZGNlbA/photo.JPG | |
Pariksheet <[email protected]> Mar 2012 | |
*/ | |
OlderNewer