Skip to content
Snippets Groups Projects
Commit e2e375b7 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

eisgenerator_export: fix bug where output was converted to hz regardless when...

eisgenerator_export: fix bug where output was converted to hz regardless when in angular freqency mode
parent 3643b52e
Branches
Tags
No related merge requests found
...@@ -63,7 +63,7 @@ static void runSweep(const std::string& modelString, eis::Range omega, bool norm ...@@ -63,7 +63,7 @@ static void runSweep(const std::string& modelString, eis::Range omega, bool norm
std::cout<<(hertz ? "freqency" : "omega")<<",real,im\n"; std::cout<<(hertz ? "freqency" : "omega")<<",real,im\n";
for(const eis::DataPoint& res : results) for(const eis::DataPoint& res : results)
std::cout<<res.omega/(2*M_PI)<<','<<res.im.real()<<','<<(invert ? 0-res.im.imag() : res.im.imag())<<'\n'; std::cout<<(hertz ? res.omega/(2*M_PI) : res.omega)<<','<<res.im.real()<<','<<(invert ? 0-res.im.imag() : res.im.imag())<<'\n';
eis::Log(eis::Log::INFO)<<"time taken: "<<duration.count()<<" us"; eis::Log(eis::Log::INFO)<<"time taken: "<<duration.count()<<" us";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment