python commands

This commit is contained in:
Erik Frojdh
2019-04-18 13:39:43 +02:00
parent 7c4aa7f3a7
commit c7259538e9
5 changed files with 88 additions and 68 deletions

View File

@ -2,27 +2,11 @@ import os
import sys
import numpy as np
sys.path.append(os.path.join(os.getcwd(), 'bin'))
from sls_detector import Eiger
from sls_detector import Eiger, Detector
from sls_detector import ExperimentalDetector
from _sls_detector.io import read_my302_file
d = Eiger()
d = Detector()
e = ExperimentalDetector()
# for i in range(200):
# a = read_my302_file('/home/l_frojdh/Downloads/run_d0_5.raw', i, 24)
# print(f'{i}: {(a==5).sum()}')
# a = read_my302_file('/home/l_frojdh/Downloads/run_d0_5.raw', 104, 24)
# ncols = 192
# start = 600
# end = 1800
# nrows = end-start
# data = np.zeros((nrows, ncols))
# for i in range(nrows):
# data[i, :] = read_ctb_file(f'/home/l_frojdh/mythendata/MoKbZr_30kV60mA_1s_200V_thr{start+i}_1.raw', 8, 24)