ocelot.curator package¶
Submodules¶
ocelot.curator.Contribution module¶
-
class
ocelot.curator.Contribution.
Contribution
(data_access, folder_path)[source]¶ Bases:
object
-
__init__
(data_access, folder_path)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
collect_rawdata
(collect_folder, get_extra_property_from_path=None)[source]¶ - RawData
- = content (cif_string no diffraction)
data_access
_id (data_access & cif_header)
- Parameters
collect_folder – a folder to store cif files without diffraction info
get_extra_property_from_path – the path here means the absolute path of a file in self.folder_path
- Returns
collected_filepaths: absolute path raw_data_list: a list of RawData
-
curate_all
(logfolder, rawdata_list: [<class 'ocelot.curator.DataSchema.RawData'>], wdir_for_curate, unittimelimit=60)[source]¶
-
curate_one
(rawdata: ocelot.curator.DataSchema.RawData, wdir)[source]¶ CuratedData = content(structural_schemas) + data_access( RawData.data_access) + _id(hashconfig or ‘failed RawData._id’) + properties: {integrity_class: x, rawdataid: RawData._id, method: …}
-
-
ocelot.curator.Contribution.
curate_cifstring
(cifstring)[source]¶ :return integrity_class
3 can run all calculations 2 can only run geometric analyses 1 do not run any calculations (exception)
- outputs
files written by this function
- structural_schemas
structural_schemas[‘configuration’]: the major config structural_schemas[‘molgraphs’]: a list of unique molgraphs from the major config, rsorted by # of atoms structural_schemas[‘molsmiles’]: a list of unique molecular smiles from the major config, rsorted by # of atoms
- identifier
hashconfig(major_config)
ocelot.curator.DataSchema module¶
-
class
ocelot.curator.DataSchema.
CuratedData
(data_content, data_access: ocelot.curator.DataSchema.DataAccess, _id: str, data_properties=None)[source]¶
-
class
ocelot.curator.DataSchema.
DataAccess
(sharedby: ocelot.curator.DataSchema.DataProvider, accessdate: datetime.date, license: license.base.License)[source]¶ Bases:
monty.json.MSONable
-
__init__
(sharedby: ocelot.curator.DataSchema.DataProvider, accessdate: datetime.date, license: license.base.License)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
-
class
ocelot.curator.DataSchema.
DataEntry
(data_content, data_access: ocelot.curator.DataSchema.DataAccess, _id: str, data_properties=None)[source]¶ Bases:
monty.json.MSONable
-
__init__
(data_content, data_access: ocelot.curator.DataSchema.DataAccess, _id: str, data_properties=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
-
class
ocelot.curator.DataSchema.
DataProvider
(name: str, institution: str, url: str)[source]¶ Bases:
monty.json.MSONable
-
class
ocelot.curator.DataSchema.
RawData
(data_content, data_access: ocelot.curator.DataSchema.DataAccess, _id: str, data_properties=None)[source]¶