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 sys | |
| import os | |
| import numpy as np | |
| from PIL import Image, ImageFont, ImageDraw | |
| import cv2 | |
| def main(file_template, start, end): | |
| font = ImageFont.truetype("FreeMono.ttf", 32) |
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
| # Proof of work is computing the sha1 hash of the uncompressed and unshuffled | |
| # data and comparing with the result of doing the operation on the h5py | |
| # extracted data | |
| import binascii | |
| import hashlib | |
| import struct | |
| import sys | |
| import lz4.block |
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
| # to get to the starting point: | |
| # | |
| # dials.import ~/data/i04_bag_training/*gz | |
| # dials.find_spots imported.expt | |
| # dials.index imported.expt strong.refl | |
| # dials.refine indexed.* | |
| # dials.predict refined.expt | |
| # | |
| # then | |
| # |
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
| #include <vector> | |
| int dispersion_filter(std::vector<uint16_t> &image_in, | |
| std::vector<uint16_t> &mask_out, | |
| int NY, int NX) { | |
| int32_t knl = 3; | |
| float sigma_b = 6.0f, sigma_s = 3.0f; | |
| std::vector<uint32_t> im(NY * NX); |
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 os | |
| import sys | |
| import tqdm | |
| import hdf5plugin | |
| import h5py | |
| def extract(nxs, template, start=None, end=None): |
OlderNewer