@@ -18,6 +18,9 @@ public class TestSpaceGroup {
1818 // use true for printing operators of all space groups (including non-enantiomorphics), or false to print only enantiomorphics
1919 private static boolean PRINT_OPERATORS_FROM_ALL_SGS = false ;
2020
21+ // print information per operator
22+ private static boolean VERBOSE = false ;
23+
2124 @ Test
2225 public void testTransfConversion () {
2326 Collection <SpaceGroup > allSGs = SymoplibParser .getAllSpaceGroups ().values ();
@@ -221,7 +224,8 @@ public void testTransfConversion() {
221224 // we only print the enantiomorphic ones, otherwise there's too much output
222225
223226 if (spaceGroup .isEnantiomorphic () || PRINT_OPERATORS_FROM_ALL_SGS )
224- System .out .print (
227+ if (VERBOSE )
228+ System .out .print (
225229 String .format ("%2d %2d" ,i ,1 +i -spaceGroup .getPrimitiveMultiplicity ()*(i /spaceGroup .getPrimitiveMultiplicity ()))+" " +
226230 String .format ("%20s" ,spaceGroup .getTransfAlgebraic (i ))+" " +
227231 String .format ("(%5.2f,%5.2f,%5.2f)" ,axis .x ,axis .y ,axis .z )+" " +
@@ -232,8 +236,12 @@ public void testTransfConversion() {
232236 if (ct .getTransformType ().isScrew ()) { // tests for both screw or glide planes (i.e. a non-zero scre transl component)
233237
234238 if (spaceGroup .isEnantiomorphic () || PRINT_OPERATORS_FROM_ALL_SGS ) {
235- System .out .print (" -- SCREW AXIS" );
236- if (foldType ==-2 ) System .out .print (" (GLIDE)" );
239+ if (VERBOSE )
240+ System .out .print (" -- SCREW AXIS" );
241+ if (foldType ==-2 ) {
242+ if (VERBOSE )
243+ System .out .print (" (GLIDE)" );
244+ }
237245 }
238246
239247
@@ -250,8 +258,10 @@ public void testTransfConversion() {
250258 if (ct .isPureTranslation ()) {
251259 Assert .assertEquals (1 ,foldType );
252260
253- if (spaceGroup .isEnantiomorphic () || PRINT_OPERATORS_FROM_ALL_SGS )
254- System .out .print (" -- FRACTIONAL TRANSLATION" );
261+ if (spaceGroup .isEnantiomorphic () || PRINT_OPERATORS_FROM_ALL_SGS ) {
262+ if (VERBOSE )
263+ System .out .print (" -- FRACTIONAL TRANSLATION" );
264+ }
255265
256266 Assert .assertTrue (ct .isFractionalTranslation ());
257267 Assert .assertTrue (ct .getTransformType ()==TransformType .CELLTRANSL );
@@ -265,9 +275,11 @@ public void testTransfConversion() {
265275 }
266276
267277 if (spaceGroup .isEnantiomorphic () || PRINT_OPERATORS_FROM_ALL_SGS ) {
268- System .out .print (" -- " +ct .getTransformType ().getShortName ());
278+ if (VERBOSE ) {
279+ System .out .print (" -- " +ct .getTransformType ().getShortName ());
269280
270- System .out .println ();
281+ System .out .println ();
282+ }
271283
272284 }
273285
0 commit comments