CXX2PY¶
Copyright (c) 2024 MPI-M, Clara Bayley
—– CLEO —– File: cxx2py.py Project: pySD Created Date: Friday 13th 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:
- pySD.cxx2py.derive_more_floats(consts)[source]¶
return mconsts dictionary containing some derived key,values from values in consts dictionary
- pySD.cxx2py.line_with_assignment(line)[source]¶
find all the lines in a file which have form […] = […] ; ie. lines which assign variables. return list of these lines truncatd at ;
- pySD.cxx2py.print_dict_statement(filename, dictname, dict)[source]¶
print key, value pairs for dictionary created by reading filename