mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-11 06:47:14 +02:00
working on 05
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# Make the compiled classes that live in _aare available from aare.
|
||||
from ._aare import File
|
||||
from ._aare import VarClusterFinder
|
||||
from ._aare import GenerateMoench03PixelMap
|
||||
from ._aare import GenerateMoench03PixelMap, GenerateMoench05PixelMap
|
@ -14,8 +14,12 @@ from pathlib import Path
|
||||
# im = ax.imshow(frame, cmap='viridis')
|
||||
|
||||
|
||||
fpath = Path('/Users/erik/data/Moench03old/test_034_irradiated_noise_g4_hg_exptime_2000us_master_0.json')
|
||||
# fpath = Path('/Users/erik/data/Moench03old/test_034_irradiated_noise_g4_hg_exptime_2000us_master_0.json')
|
||||
fpath = Path('/Users/erik/data/Moench05/moench05_master_0.json')
|
||||
f = aare.File(fpath)
|
||||
f.seek(437)
|
||||
frame = f.read_frame()
|
||||
|
||||
plt.imshow(frame)
|
||||
m = aare.GenerateMoench05PixelMap()
|
||||
img = np.take(frame, m.astype(np.int64))
|
||||
|
||||
|
@ -16,6 +16,10 @@ void define_pixel_map_bindings(py::module &m) {
|
||||
m.def("GenerateMoench03PixelMap", []() {
|
||||
auto ptr = new NDArray<size_t,2>(GenerateMoench03PixelMap());
|
||||
return return_image_data(ptr);
|
||||
})
|
||||
.def("GenerateMoench05PixelMap", []() {
|
||||
auto ptr = new NDArray<size_t,2>(GenerateMoench05PixelMap());
|
||||
return return_image_data(ptr);
|
||||
});
|
||||
|
||||
}
|
Reference in New Issue
Block a user