gen_data_utils.cpp 1011 B

1234567891011121314151617181920212223242526272829
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2021 by
  4. * The Salk Institute for Biological Studies
  5. *
  6. * Use of this source code is governed by an MIT-style
  7. * license that can be found in the LICENSE file or at
  8. * https://opensource.org/licenses/MIT.
  9. *
  10. ******************************************************************************/
  11. #include <sstream>
  12. #include "api/pybind11_stl_include.h"
  13. #include "api/python_export_utils.h"
  14. #include "gen_data_utils.h"
  15. namespace MCell {
  16. namespace API {
  17. void define_pybinding_data_utils(py::module& m) {
  18. m.def_submodule("data_utils")
  19. .def("load_dat_file", &data_utils::load_dat_file, py::arg("file_name"), "Loads a two-column file where the first column is usually time and the second is a \nfloating point value. Returns a two-column list. \nCan be used to load a file with variable rate constants. \n\n- file_name: Path to the .dat file to be loaded.\n\n")
  20. ;
  21. }
  22. } // namespace API
  23. } // namespace MCell