jarvis.db package¶
Submodules¶
jarvis.db.jsonutils module¶
Helper functions for JSON files.
jarvis.db.lammps_to_xml module¶
Module to generate XML file for LAMMPS calculation.
jarvis.db.restapi module¶
Module to access or upload data in JARVIS-API.
-
class
jarvis.db.restapi.Api(base_url='https://jarvis.nist.gov', user_info_file_path='/users/knc6/myinfo')[source]¶ Bases:
objectClass for handling functions for JARVIS-API.
-
get_all_template_ids(title=None, only_user=False)[source]¶ Get templates for a user or global templates/schema/xsd.
-
get_data_by_template_id(id='5f6162b4ece4b00034e4fe19', query='.xml', max_record=5)[source]¶ Get data by template IDs.
For template IDs see: https://jarvis.nist.gov/rest/template-version-manager/global/ and is_disabled=False
-
send_keyword_query(data={'query': 'JVASP-1002.xml', 'title': 'JVASP-1002.xml'})[source]¶ Post general query to API.
-
upload_jarvisdft_xmls(files='/rk2/knc6/DB/XMLs/VASPDASK/*.xml', template_id='5f626925ece4b00035e5277f', json_name='jarvisdft_xmls.json')[source]¶ Upload JARVIS-DFT XML files.
-
jarvis.db.vasp_to_xml module¶
Module to make XML for JARVIS-REST-API schema.
-
class
jarvis.db.vasp_to_xml.VaspToApiXmlSchema(folder='', meta_data={'data_source': 'JARVIS-DFT-VASP', 'ehull': '', 'exfoliation_energy': '', 'id_file': 'JARVIS-ID', 'material_type': 'bulk', 'tmp_data_source': "'JARVIS-DFT-VASP'", 'tmp_id_file': "'JARVIS-ID'", 'tmp_material_type': "'bulk'"})[source]¶ Bases:
objectModule to convert VASP data to XML schema for API.
-
basic_info(include_dos_info=True, include_neighbor_info=True, use_cfid_data=True)[source]¶ Get data from MAIN-RELAX folder.
-
boltztrap_data(path='MAIN-RELAX-bulk@mp-149/boltztrap', temperature=600, doping=1e+20)[source]¶ Get transport data.
Get DFPT data.
-
get_wannier_lines(data={}, energy_tol=4, write_full_data=False)[source]¶ Get data for wannier- quality check.
-
image_to_string(img_path='2DSTM/PNG_JSON3/JVASP-60776_mp-19795_pos.jpg')[source]¶ Transform image to string.
-
-
jarvis.db.vasp_to_xml.get_cfid_descriptors(jid='JVASP-1002', atoms='', make_cfid=True, material_type='bulk')[source]¶ Get CFID pre-computed descriptors for a JID.
Get Figshare download links.
jarvis.db.webpages module¶
Module for obtaining webpage data.
All the webpages are formatted in XML format. They are converted into python dict from which appropriate keys and values can be obtained. Use ‘list_keys’ functions to find types of data stored in each XML document.
Module contents¶
Modules for uploading and downloading dataset.