A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
''' | |
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 |
''' | |
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 |
/* | |
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 |
/* | |
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: |
#BACKGROUND | |
''' | |
Saves image stamps, sorted by time, in CSV file on desktop. | |
FIXME: For this to work, upstream needs to patch imagedisk/__init__.py to use | |
new 3.x Python style class foo(object): instead of class foo: syntax. | |
''' | |
import imagedisk | |
import iqtools |
/** | |
* Make montage stacks from MetaMorph 7 High Throughput Screening. | |
* | |
* MetaMorph 7's Screen Acquisition (screenacq) does not natively | |
* support time and Z acquisitions from it's UI or journal functions. | |
* Therefore it's easier to assemble the experiment with FIJI | |
* including stitch TIF files together with overlap. It is | |
* assumed the grid of all sites in a well are imaged, i.e. supports | |
* Metamorph's "Well Selection" but not "Site Selection". | |
* |
#SHELL | |
""" | |
Calculate Spinning Disk uniformity and compare with Andor's specification. | |
Usage: | |
Start the Python IDE from iQ from under Plugins. Run this Plugin from | |
the iQ menu and select the "Progress" tab. | |
Run a protocol with just "Snap" and loop protocol enabled to collect images. | |
The bar will update to show how close the image drop-off. |
/** | |
* Split Stack macro | |
* | |
* Fixes MetaMorph dual camera image files, by splitting them into | |
* their separate channel files. | |
* | |
* Usage: In ImageJ, use Plugins > Macros > Run... | |
* | |
* Description: | |
* |
// ==ClosureCompiler== | |
// @output_file_name default.js | |
// @compilation_level SIMPLE_OPTIMIZATIONS | |
// ==/ClosureCompiler== | |
/* | |
**Notes** | |
In some cases, forms will still get submitted when you click the submit button. |