mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 11:20:04 +02:00
23 lines
606 B
Python
23 lines
606 B
Python
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
# Most settings are represented as enums that can be
|
|
# explicitly imported
|
|
|
|
from slsdet import Detector, fileFormat
|
|
d = Detector()
|
|
d.fformat = fileFormat.BINARY
|
|
|
|
# Altough not recommended for convenience all enums
|
|
# and some other things can be imported using *
|
|
|
|
from slsdet import *
|
|
d.speed = speedLevel.FULL_SPEED
|
|
|
|
# To list the available enums, use dir()
|
|
|
|
import slsdet.enums
|
|
for enum in dir(slsdet.enums):
|
|
# filter out special members
|
|
if not enum.startswith('_'):
|
|
print(enum)
|