Skip to content

Commit

Permalink
Initial delay in ReconstructLri should be a scalar, not an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Sep 21, 2021
1 parent 3c6a8bb commit 5fb9fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/python/arrus/utils/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ def prepare(self, const_metadata):
self.tx_foc = self.num_pkg.asarray([seq.tx_focus]*self.n_tx, dtype=self.num_pkg.float32)
burst_factor = seq.pulse.n_periods / (2*self.fn)
self.initial_delay = -start_sample/65e6+burst_factor+tx_center_delay
self.initial_delay = self.num_pkg.asarray(self.initial_delay, dtype=self.num_pkg.float32)
self.initial_delay = self.num_pkg.float32(self.initial_delay)
return const_metadata.copy(input_shape=output_shape)

def process(self, data):
Expand Down

0 comments on commit 5fb9fa1

Please sign in to comment.