def get_data_file(self, filename): '''Return the point where this data file will end up!''' if not filename in self._data_files: return filename data_directory = Environment.generate_directory('DataFiles') return os.path.join(data_directory, os.path.split(filename)[-1])
def write_cif(self): '''Write CIF to file.''' # update audit information for citations self.collate_audit_information() from Environment import Environment data_directory = Environment.generate_directory('DataFiles') with open(os.path.join(data_directory, self._outfile), 'w') as fh: self._cif.show(out=fh)