Skip to content

Commit 310a6b9

Browse files
farhanreynaldotwiecki
authored andcommitted
remove dataset_to_point_dict
1 parent dfb31ee commit 310a6b9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pymc/util.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import functools
16-
import warnings
1716

1817
from typing import Dict, List, Tuple, Union
1918

@@ -231,16 +230,6 @@ def enhanced(*args, **kwargs):
231230
return enhanced
232231

233232

234-
# FIXME: this function is poorly named, because it returns a LIST of
235-
# points, not a dictionary of points.
236-
def dataset_to_point_dict(ds: xarray.Dataset) -> List[Dict[str, np.ndarray]]:
237-
warnings.warn(
238-
"dataset_to_point_dict was renamed to dataset_to_point_list and will be removed!",
239-
FutureWarning,
240-
)
241-
return dataset_to_point_list(ds)
242-
243-
244233
def dataset_to_point_list(ds: xarray.Dataset) -> List[Dict[str, np.ndarray]]:
245234
# grab posterior samples for each variable
246235
_samples: Dict[str, np.ndarray] = {vn: ds[vn].values for vn in ds.keys()}

0 commit comments

Comments
 (0)