From 1c6ea644ac84c0b86f5639d6e485d55620af59e9 Mon Sep 17 00:00:00 2001 From: Walter Simson Date: Tue, 19 Dec 2023 10:37:18 -0800 Subject: [PATCH] add deprication warning of beamforming code --- kwave/reconstruction/beamform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kwave/reconstruction/beamform.py b/kwave/reconstruction/beamform.py index 1cce9e68..6b2487ea 100644 --- a/kwave/reconstruction/beamform.py +++ b/kwave/reconstruction/beamform.py @@ -1,6 +1,7 @@ import logging import os from typing import Tuple, Optional +from warnings import warn import numpy as np import scipy @@ -26,6 +27,7 @@ def beamform(channel_data: ChannelData) -> None: Returns: """ + warn("This method is no longer supported and will be depricated in v0.4.0 of k-wave-python.", DeprecationWarning, stacklevel=2) f_number = 1.2 num_px_z = 256 imaging_depth = 40e-3