mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-12 07:17:13 +02:00
move static numpy functions to another header
- use env variables - change warnings back to ON
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
from aare import File, Frame
|
||||
|
||||
if __name__ == "__main__":
|
||||
file = File("/home/bb/github/aare/data/jungfrau_single_master_0.json")
|
||||
#get env variable
|
||||
root_dir = Path(os.environ.get("PROJECT_ROOT_DIR"))
|
||||
data_path = str(root_dir / "data"/"jungfrau_single_master_0.json")
|
||||
|
||||
file = File(data_path)
|
||||
frame = file.get_frame(0)
|
||||
print(frame.rows, frame.cols)
|
||||
print(frame.get(0,0))
|
Reference in New Issue
Block a user