mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-20 09:32:10 +02:00
Reply to Daynes comment's and slightly loosen a tolerance in one test that has been failing
This commit is contained in:
@@ -380,7 +380,7 @@ class Ptycho2DDataset(CDataset):
|
||||
the dataset is downsampled with the data. The background is downsampled
|
||||
using the same method as the data.
|
||||
|
||||
If there is no quantum efficiency mask, then the mask is downsapled so
|
||||
If there is no quantum efficiency mask, then the mask is downsampled so
|
||||
that any output pixel containing a masked pixel will be masked. If there
|
||||
is a quantum efficiency mask, then the quantum efficiency mask is
|
||||
downsampled using the same method as the data, and the mask is
|
||||
|
||||
@@ -196,22 +196,15 @@ def quadratic_background(
|
||||
sim_patterns : torch.Tensor
|
||||
A real MxN array storing the wavefield's intensities
|
||||
"""
|
||||
|
||||
if detector_slice is None:
|
||||
raw_intensity = measurement(
|
||||
wavefield,
|
||||
*args,
|
||||
epsilon=epsilon,
|
||||
oversampling=oversampling,
|
||||
simulate_finite_pixels=simulate_finite_pixels)
|
||||
else:
|
||||
raw_intensity = measurement(
|
||||
wavefield,
|
||||
*args,
|
||||
detector_slice=detector_slice,
|
||||
epsilon=epsilon,
|
||||
oversampling=oversampling,
|
||||
simulate_finite_pixels=simulate_finite_pixels)
|
||||
|
||||
raw_intensity = measurement(
|
||||
wavefield,
|
||||
*args,
|
||||
detector_slice=detector_slice,
|
||||
epsilon=epsilon,
|
||||
oversampling=oversampling,
|
||||
simulate_finite_pixels=simulate_finite_pixels
|
||||
)
|
||||
|
||||
if qe_mask is None:
|
||||
output = raw_intensity + background**2
|
||||
|
||||
Reference in New Issue
Block a user