Skip to content

Commit

Permalink
search: fix mean_p
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Isken committed Feb 9, 2024
1 parent 8e138aa commit 9a8daec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/qseek/images/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def model_post_init(self, __context: Any) -> None:
phases = self.get_phases()
if len(set(phases)) != len(phases):
raise ValueError("A phase was provided twice")
self._queue = asyncio.Queue(maxsize=8)
self._queue = asyncio.Queue(maxsize=16)
self._stats.set_queue(self._queue)

async def process_traces(self, traces: list[Trace]) -> WaveformImages:
Expand Down
5 changes: 1 addition & 4 deletions src/qseek/models/semblance.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ def get_semblance(self, time_idx: int) -> np.ndarray:
Returns:
np.ndarray: The semblance values at the specified time index.
"""
semblance = self.semblance[:, time_idx]
if self.exponent != 1.0:
semblance **= self.exponent
return semblance
return self.semblance[:, time_idx]

def get_cache_mask(self, cache: dict[bytes, np.ndarray]) -> np.ndarray:
"""
Expand Down

0 comments on commit 9a8daec

Please sign in to comment.