Commit e8031aeb by Maarten L. Hekkelman

Fix is_cis

parent 19706559
......@@ -25,7 +25,7 @@
cmake_minimum_required(VERSION 3.16)
# set the project name
project(cifpp VERSION 5.0.6 LANGUAGES CXX)
project(cifpp VERSION 5.0.7 LANGUAGES CXX)
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
......
Version 5.0.7
- Fix is_cis
Version 5.0.6
- Fix file::contains, using iequals
......
......@@ -935,7 +935,7 @@ float monomer::omega(const monomer &a, const monomer &b)
bool monomer::is_cis(const monomer &a, const monomer &b)
{
return omega(a, b) < 30.0f;
return std::abs(omega(a, b)) < 30.0f;
}
// --------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment