Skip to content

Commit e58832c

Browse files
committed
Docstrings
1 parent b205926 commit e58832c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmdstanpy/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ def cxx_toolchain_path(
412412
def rewrite_inf_nan(
413413
data: Union[float, int, List[Any]]
414414
) -> Union[str, int, float, List[Any]]:
415+
"""Replaces NaN and Infinity with string representations"""
415416
if isinstance(data, float):
416417
if math.isnan(data):
417418
return 'NaN'
@@ -442,9 +443,6 @@ def write_stan_json(path: str, data: Mapping[str, Any]) -> None:
442443
:param data: A mapping from strings to values. This can be a dictionary
443444
or something more exotic like an :class:`xarray.Dataset`. This will be
444445
copied before type conversion, not modified
445-
446-
:param handle_nan_inf: If enabled, perform the (Slow!) checks necessary to
447-
output NaN and inf as required for Stan
448446
"""
449447
data_out = {}
450448
for key, val in data.items():

0 commit comments

Comments
 (0)