mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00

* initital implementation * datetime replaces with sls::Duration in Python C bindings * using custom type caster * fix for conversion to seconds * added set_count in python * common header for pybind11 includes authored-by: Erik Frojdh <erik.frojdh@psi.ch>
22 lines
531 B
Python
Executable File
22 lines
531 B
Python
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
import os
|
|
import sys
|
|
import numpy as np
|
|
# from pathlib import Path
|
|
# sys.path.append(os.path.join(os.getcwd(), 'bin'))
|
|
|
|
from slsdet import Detector, Mythen3, Eiger, Jungfrau, DetectorDacs, Dac, Ctb, Gotthard2, Moench
|
|
from slsdet import dacIndex, readoutMode
|
|
from slsdet.lookup import view, find
|
|
import slsdet
|
|
|
|
from slsdet import DurationWrapper
|
|
|
|
|
|
d = Detector()
|
|
t = DurationWrapper(1.0)
|
|
|
|
d.setExptime(t)
|
|
|
|
# d.setExptime(0.3) |