Skip to content

Commit

Permalink
Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Jul 31, 2024
1 parent cce1b74 commit cd68df3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/dials/algorithms/indexing/fastindex.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#include <scitbx/array_family/flex_types.h>
#include <scitbx/vec3.h>
#include <scitbx/mat3.h>
#include <scitbx/math/utils.h>
#include <cctbx/miller.h>
#include <scitbx/constants.h>
#include <dials/array_family/scitbx_shared_and_versa.h>
#include "gemmi/third_party/pocketfft_hdronly.h"
#include <map>
Expand All @@ -13,6 +10,10 @@
#include <tuple>
#include <boost/python.hpp>
#include <boost/python/def.hpp>
#include <math.h>

#define _USE_MATH_DEFINES
#include <cmath>

using namespace pocketfft;

Expand All @@ -38,7 +39,7 @@ map_centroids_to_reciprocal_space_grid_cpp(
}
scitbx::vec3<int> coord;
for (int j = 0; j < 3; j++) {
coord[j] = scitbx::math::iround(v[j] * one_over_rlgrid) + half_n_points;
coord[j] = ((int)round(v[j] * one_over_rlgrid)) + half_n_points;
}
if ((coord.max() >= n_points) || coord.min() < 0) {
selection[i] = false;
Expand Down Expand Up @@ -106,7 +107,7 @@ double angle_between_vectors_degrees(scitbx::vec3<double> v1, scitbx::vec3<doubl
if (std::abs(normdot + 1.0) < 1E-6) {
return 180.0;
}
double angle = std::acos(normdot) * 180.0 / scitbx::constants::pi;
double angle = std::acos(normdot) * 180.0 / M_PI;
return angle;
}

Expand Down

0 comments on commit cd68df3

Please sign in to comment.