def enable_low_resolution(self, default=None):
   self.add_option(make_option(None, "--low_resolution",
     action="store",
     default=default,
     type="float",
     help="Low resolution limit (maximum d-spacing, d_max)",
     metavar="FLOAT"))
   return self
 def enable_symmetry(self):
   self.add_option(make_option(None, "--symmetry",
     action="callback",
     type="string",
     callback=self.symmetry_callback,
     help="External file with symmetry information",
     metavar="FILENAME"))
   self.symmetry_callback.is_enabled = True
   return self
 def enable_space_group(self):
   self.add_option(make_option(None, "--space_group",
     action="callback",
     type="string",
     callback=self.symmetry_callback,
     help="External space group symbol",
     metavar="P212121|FILENAME"))
   self.symmetry_callback.is_enabled = True
   return self
 def enable_unit_cell(self):
   self.add_option(make_option(None, "--unit_cell",
     action="callback",
     type="string",
     callback=self.symmetry_callback,
     help="External unit cell parameters",
     metavar="10,10,20,90,90,120|FILENAME"))
   self.symmetry_callback.is_enabled = True
   return self
 def enable_low_resolution(self, default=None):
     self.add_option(
         make_option(None,
                     "--low_resolution",
                     action="store",
                     default=default,
                     type="float",
                     help="Low resolution limit (maximum d-spacing, d_max)",
                     metavar="FLOAT"))
     return self
 def enable_symmetry(self):
     self.add_option(
         make_option(None,
                     "--symmetry",
                     action="callback",
                     type="string",
                     callback=self.symmetry_callback,
                     help="External file with symmetry information",
                     metavar="FILENAME"))
     self.symmetry_callback.is_enabled = True
     return self
 def enable_space_group(self):
     self.add_option(
         make_option(None,
                     "--space_group",
                     action="callback",
                     type="string",
                     callback=self.symmetry_callback,
                     help="External space group symbol",
                     metavar="P212121|FILENAME"))
     self.symmetry_callback.is_enabled = True
     return self
 def enable_unit_cell(self):
     self.add_option(
         make_option(None,
                     "--unit_cell",
                     action="callback",
                     type="string",
                     callback=self.symmetry_callback,
                     help="External unit cell parameters",
                     metavar="10,10,20,90,90,120|FILENAME"))
     self.symmetry_callback.is_enabled = True
     return self