mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-04-23 07:10:03 +02:00
16 lines
381 B
Python
16 lines
381 B
Python
import matplotlib.pyplot as plt
|
|
import numpy as np
|
|
plt.ion()
|
|
from pathlib import Path
|
|
from aare import ClusterFile
|
|
|
|
base = Path('~/data/aare_test_data/clusters').expanduser()
|
|
|
|
f = ClusterFile(base / 'beam_En700eV_-40deg_300V_10us_d0_f0_100.clust')
|
|
# f = ClusterFile(base / 'single_frame_97_clustrers.clust')
|
|
|
|
|
|
for i in range(10):
|
|
fn, cl = f.read_frame()
|
|
print(fn, cl.size)
|