Skip to content

Commit

Permalink
lowered hard-coded unit cell limit from 70 A^3 to 40 A^3
Browse files Browse the repository at this point in the history
  • Loading branch information
toastisme authored and nksauter committed Jul 29, 2022
1 parent d1a605f commit b906a8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rstbx/symmetry/constraints/a_g_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct AG { // convert orientation matrix A to metrical matrix g & reverse
G = uc_sym_mat3(g0,g1,g2,g3,g4,g5);
cctbx::uctbx::unit_cell ersatz_uc ( cctbx::uctbx::unit_cell(G).reciprocal() );

if ( ersatz_uc.volume() <= 70.){ throw SCITBX_ERROR(
if ( ersatz_uc.volume() <= 40.){ throw SCITBX_ERROR(
"Metrical matrix g is expected to be in the reciprocal setting;this appears to be direct space");
}

Expand Down
4 changes: 2 additions & 2 deletions rstbx/symmetry/constraints/parameter_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def set_orientation(self, orientation, length_unit=1.E-10):
from cctbx.crystal_orientation import crystal_orientation
which_setting = [crystal_orientation(orientation,True),
crystal_orientation(orientation,False)]
#kludgy test for space setting: unit cell volume is never < 70 Angstroms^3
#kludgy test for space setting: unit cell volume is never < 40 Angstroms^3
conversion_to_A3 = (length_unit*length_unit*length_unit)/1.E-30
select = [a.unit_cell().volume()*conversion_to_A3 > 70.
select = [a.unit_cell().volume()*conversion_to_A3 > 40.
for a in which_setting]
self.orientation = which_setting[select.index(True)]

Expand Down

0 comments on commit b906a8c

Please sign in to comment.