Commit 9f5c0d4a055a2a19e69a97db1441aa617f96180c

Authored by Pavel Govyadinov
1 parent b2f48bca

edits to make netmets work and compile, minor loose code fixes

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
stim/biomodels/network.h
... ... @@ -536,9 +536,9 @@ public:
536 536 for(unsigned int i = 0; i < p.size(); i++){
537 537 ss.str(std::string());
538 538 for(unsigned int d = 0; d < 3; d++){
539   - ss<<c[i][d];
  539 + ss<<p[i][d];
540 540 }
541   - ss < "\n"
  541 + ss < "\n";
542 542 }
543 543 return ss.str();
544 544 }
... ... @@ -552,8 +552,7 @@ public:
552 552 void
553 553 to_txt(std::string filename)
554 554 {
555   - std::ofstream ofs;
556   - ofs.open(filename, std::ofstream::out | std::ofstream::app);
  555 + std::ofstream ofs(filename, std::ofstream::out | std::ofstream::app);
557 556 int num;
558 557 ofs << (E.size()).str() << "\n";
559 558 for(unsigned int i = 0; i < E.size(); i++)
... ...