From e2e375b73448179c21495ab0aa14c95f4b83b6d7 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm <philipp@uvos.xyz> Date: Mon, 16 May 2022 14:18:23 +0200 Subject: [PATCH] eisgenerator_export: fix bug where output was converted to hz regardless when in angular freqency mode --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index b69c1b8..3d2c811 100644 --- a/main.cpp +++ b/main.cpp @@ -63,7 +63,7 @@ static void runSweep(const std::string& modelString, eis::Range omega, bool norm std::cout<<(hertz ? "freqency" : "omega")<<",real,im\n"; 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"; } -- GitLab