Changeset 3026
- Timestamp:
- Aug 25, 2017 12:06:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIscriptable.py
r3023 r3026 378 378 379 379 380 ############################################381 ############ CIF export helpers ############382 ############################################383 ## These functions are translated from384 ## exports/G2export_CIF.py385 ## They are used in G2Phase.export_CIF386 387 388 389 380 def make_empty_project(author=None, filename=None): 390 381 """Creates an dictionary in the style of GSASIIscriptable, for an empty … … 1285 1276 return self.data[self.cia+2:self.cia+8] 1286 1277 1278 @uiso.setter 1279 def uiso(self, value): 1280 if self.adp_flag == 'I': 1281 self.data[self.cia+1] = float(value) 1282 else: 1283 assert len(value) == 6 1284 self.data[self.cia+2:self.cia+8] = [float(v) for v in value] 1285 1287 1286 1288 1287 class G2PwdrData(G2ObjectWrapper): … … 1709 1708 # self._WriteAtomsNuclear(fp, parmDict, sigDict) 1710 1709 else: 1711 raise Exception ,"no export for "+str(self.data['General']['Type'])+" coordinates implemented"1710 raise Exception("no export for "+str(self.data['General']['Type'])+" coordinates implemented") 1712 1711 # report cell contents 1713 1712 cif.WriteComposition(fp, self.data, self.name, parmDict) … … 1907 1906 # Command Line Interface # 1908 1907 ########################## 1908 # Each of these takes an argparse.Namespace object as their argument, 1909 # representing the parsed command-line arguments for the relevant subcommand. 1910 # The argument specification for each is in the subcommands dictionary (see 1911 # below) 1909 1912 1910 1913
Note: See TracChangeset
for help on using the changeset viewer.