Skip to content
Snippets Groups Projects
Select Git revision
  • 861ff190a51d98f9bc3edc228572545cb81c584c
  • master default protected
  • tut_ring_allen
  • docs_furo
  • docs_reorder_cable_cell
  • docs_graphviz
  • docs_rtd_dev
  • ebrains_mirror
  • doc_recat
  • docs_spike_source
  • docs_sim_sample_clar
  • docs_pip_warn
  • github_template_updates
  • docs_fix_link
  • cv_default_and_doc_clarification
  • docs_add_numpy_req
  • readme_zenodo_05
  • install_python_fix
  • install_require_numpy
  • typofix_propetries
  • docs_recipe_lookup
  • v0.10.0
  • v0.10.1
  • v0.10.0-rc5
  • v0.10.0-rc4
  • v0.10.0-rc3
  • v0.10.0-rc2
  • v0.10.0-rc
  • v0.9.0
  • v0.9.0-rc
  • v0.8.1
  • v0.8
  • v0.8-rc
  • v0.7
  • v0.6
  • v0.5.2
  • v0.5.1
  • v0.5
  • v0.4
  • v0.3
  • v0.2.2
41 results

io.cpp

Blame
  • bcumming's avatar
    Benjamin Cumming authored
    861ff190
    History
    io.cpp 680 B
    #include "io.hpp"
    
    namespace nest {
    namespace mc {
    namespace io {
    
    // read simulation options from json file with name fname
    // for now this is just a placeholder
    options read_options(std::string fname) {
        // 10 cells, 1 synapses per cell, 10 compartments per segment
        return {1000, 1, 100};
    }
    
    std::ostream& operator<<(std::ostream& o, const options& opt) {
        o << "simultion options:\n";
        o << "  cells                : " << opt.cells << "\n";
        o << "  compartments/segment : " << opt.compartments_per_segment << "\n";
        o << "  synapses/cell        : " << opt.synapses_per_cell << "\n";
    
        return o;
    }
    
    } // namespace io
    } // namespace mc
    } // namespace nest