mirror of
https://github.com/pim-n/pg-rad
synced 2026-03-23 21:58:12 +01:00
Add flip direction. Change mean to Trapezoidal rule for integration along path. Scale count rate properly with acquisition time
This commit is contained in:
@ -42,6 +42,7 @@ class Path:
|
||||
def __init__(
|
||||
self,
|
||||
coord_list: Sequence[tuple[float, float]],
|
||||
opposite_direction: bool,
|
||||
z: float = 0.,
|
||||
z_box: float = 50.
|
||||
):
|
||||
@ -74,6 +75,8 @@ class Path:
|
||||
]
|
||||
|
||||
self.z = z
|
||||
self.opposite_direction = opposite_direction
|
||||
|
||||
self.size = (
|
||||
np.ceil(max(self.x_list)),
|
||||
np.ceil(max(self.y_list)),
|
||||
|
||||
Reference in New Issue
Block a user