28 Commits

Author SHA1 Message Date
Erik Fröjdh
f16273a566
Adding support for Jungfrau .dat files (#152)
All checks were successful
Build on RHEL9 / buildh (push) Successful in 1m48s
closes #150 

**Not addressed in this PR:** 

- pixels_per_frame, bytes_per_frame and tell should be made cost in
FileInterface
2025-04-08 15:31:04 +02:00
Erik Fröjdh
9d8e803474
Merge branch 'main' into developer 2025-04-01 14:35:27 +02:00
Erik Fröjdh
a42c0d645b
added roi, noise and gain (#143)
- Moved definitions of Cluster_2x2 and Cluster_3x3 to it's own file
- Added optional members for ROI, noise_map and gain_map in ClusterFile

**API:**

After creating the ClusterFile the user can set one or all of: roi,
noise_map, gain_map

```python
f = ClusterFile(fname)
f.set_roi(roi) #aare.ROI
f.set_noise_map(noise_map) #numpy array
f.set_gain_map(gain_map) #numpy array
```

**When reading clusters they are evaluated in the order:**

1. If ROI is enabled check that the cluster is within the ROI
1. If noise_map is enabled check that the cluster meets one of the
conditions
    - Center pixel above noise
    - Highest 2x2 sum above 2x noise
    - 3x3 sum above 3x noise
1. If gain_map is set apply the gain map before returning the clusters
(not used for noise cut)

**Open questions:**
1. Check for out of bounds access in noise and gain map?

closes #139 
closes #135 
closes #90
2025-04-01 14:31:25 +02:00
Erik Fröjdh
5d8ad27b21
Developer (#138)
All checks were successful
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Successful in 1m45s
- Fully functioning variable size cluster finder
- Added interpolation
- Bit reordering for ADC SAR 05

---------

Co-authored-by: Patrick <patrick.sieberer@psi.ch>
Co-authored-by: JulianHeymes <julian.heymes@psi.ch>
Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
Co-authored-by: xiangyu.xie <xiangyu.xie@psi.ch>
2025-03-20 12:52:04 +01:00
Erik Fröjdh
b529b6d33b
Merge branch 'main' into developer
All checks were successful
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Successful in 1m33s
2025-03-19 19:29:15 +01:00
froejdh_e
602b04e49f bumped version number
All checks were successful
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Successful in 1m35s
2025-03-18 17:47:05 +01:00
Erik Fröjdh
b7a47576a1
Multi threaded fitting and returning chi2 (#132)
Co-authored-by: Patrick <patrick.sieberer@psi.ch>
Co-authored-by: JulianHeymes <julian.heymes@psi.ch>
Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
2025-02-19 07:19:59 +01:00
Erik Fröjdh
fc1c9f35d6
Merge branch 'main' into developer 2025-02-18 21:52:20 +01:00
froejdh_e
5d2f25a6e9 bumped version number 2025-02-18 21:44:03 +01:00
Erik Fröjdh
dadf5f4869
Added fitting, fixed roi etc (#129)
Co-authored-by: Patrick <patrick.sieberer@psi.ch>
Co-authored-by: JulianHeymes <julian.heymes@psi.ch>
2025-02-12 16:50:31 +01:00
froejdh_e
dcb9a98faa bumped version 2025-02-12 16:49:30 +01:00
froejdh_e
fff536782b disable auto upload 2025-02-05 15:13:53 +01:00
froejdh_e
cc95561eda MultiThreaded Cluster finder 2025-01-09 16:53:22 +01:00
froejdh_e
21ce7a3efa bumped version 2025-01-07 16:33:16 +01:00
froejdh_e
e6098c02ef bumped version 2024-12-16 14:24:46 +01:00
froejdh_e
c2d039a5bd fix conda build 2024-11-29 16:37:42 +01:00
froejdh_e
115dfc0abf bugfix on iteration and returning master file 2024-11-28 21:14:40 +01:00
froejdh_e
0df8e4bb7d added support for old old moench files 2024-11-27 16:27:55 +01:00
froejdh_e
996a8861f6 roll back conda-build 2024-11-26 15:53:06 +01:00
Erik Fröjdh
632c2ee0c8 bumped version 2024-11-15 16:15:04 +01:00
Erik Fröjdh
a0b6c4cc03
Merge branch 'main' into developer 2024-11-11 18:52:23 +01:00
Erik Fröjdh
5f21759c8c removed prints, bumped version 2024-11-11 18:22:18 +01:00
Erik Fröjdh
d8d1f0c517
Taking v1 as the first release (#92)
- file reading
- decoding master file
2024-11-07 10:14:20 +01:00
Erik Fröjdh
d5fb823ae4 added numpy variants 2024-11-07 09:16:49 +01:00
Erik Fröjdh
b7e6962e44 added numpy as dep 2024-10-30 18:09:29 +01:00
Erik Fröjdh
79d924c2a3 docs and version bump 2024-10-30 17:48:50 +01:00
Erik Fröjdh
f754e0f769 file reading 2024-10-30 14:53:50 +01:00
Erik Fröjdh
c509e29b52 building with scikit build 2024-10-29 11:19:20 +01:00