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 5c7fe22 commit 5497ade
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 5497ade

Please sign in to comment.