PYSETUPTXT

Copyright (c) 2024 MPI-M, Clara Bayley

—– CLEO —– File: pysetuptxt.py Project: sdmout_src Created Date: Tuesday 24th October 2023 Author: Clara Bayley (CB) Additional Contributors: —– Last Modified: Tuesday 7th May 2024 Modified By: CB —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– File Description: functions for reading setup.txt file output alongside zarr storage

pySD.sdmout_src.pysetuptxt.get_config(setuptxt, nattrs=3, isprint=True)[source]

returns dictionary of configuration parameters read from from setup.txt file

pySD.sdmout_src.pysetuptxt.get_consts(setuptxt, isprint=True)[source]

returns dictionary of constants read from from setup.txt file

pySD.sdmout_src.pysetuptxt.read_configparams_fromsetuptxt_into_floats(filename)[source]

returns dictionary of value: float from values assigned in a config .txt file. Also returns dictionary of notfloats for values that couldn’t be converted.