File: ctf.cpp

package info (click to toggle)
relion 3.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 16,304 kB
  • sloc: cpp: 153,130; ansic: 4,359; python: 1,834; sh: 161; makefile: 36; csh: 1
file content (10 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#include <catch2/catch.hpp>
#include "src/ctf.h"

//Actually test the getCTF function. You may wish to test the CTF constructor and setters/getters separately.
TEST_CASE( "Test getCTF", "[ctf]" ) {
  CTF ctf;
  ctf.setValues(10000.0, 12000.0, 90.0, 300.0, 2.7, 0.1, 0.0, 1.0, 0.0);
  float val = ctf.getCTF(10.0, 10.0);
  REQUIRE(val == Approx(0.59154));
}