Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 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