PAOFLOW.gen.qe_input.sources.aflow#
AFLOW database adapter.
Resolves an AFLOW reference (AFLOWDATA directory URL, material-page URL with
?id=aflow:<auid>, or a bare aflow:<auid> token), downloads the
aflowlib.json reference card and the CONTCAR.relax.qe geometry, and
normalizes them into a MaterialRecord.
Attributes#
Classes#
Adapter for the AFLOW (aflow.org / aflowlib) database. |
Functions#
|
Join an AFLOW entry base URL with a file name. |
|
Convert an AFLOW aurl ('host:AFLOWDATA/...') to an https file directory URL. |
|
Resolve an AFLOW AUID to its data-directory URL via the AFLUX API. |
|
Normalize any accepted AFLOW reference into a data-directory URL. |
|
Extract the geometry cards from a CONTCAR.relax.qe file. |
|
True if any per-atom local moment exceeds the magnetic threshold. |
|
Return a list of (element, num_each_type) preserving AFLOW order. |
Module Contents#
- PAOFLOW.gen.qe_input.sources.aflow.entry_file_url(base_url, filename)[source]#
Join an AFLOW entry base URL with a file name.
- PAOFLOW.gen.qe_input.sources.aflow.aurl_to_url(aurl)[source]#
Convert an AFLOW aurl (‘host:AFLOWDATA/…’) to an https file directory URL.
- PAOFLOW.gen.qe_input.sources.aflow.resolve_auid(auid)[source]#
Resolve an AFLOW AUID to its data-directory URL via the AFLUX API.
- PAOFLOW.gen.qe_input.sources.aflow.resolve_entry_url(url)[source]#
Normalize any accepted AFLOW reference into a data-directory URL.
Accepts a direct AFLOWDATA directory URL, an
aflow.orgmaterial page URL carrying?id=aflow:<auid>, or a bareaflow:<auid>token.
- PAOFLOW.gen.qe_input.sources.aflow.parse_contcar_qe(text)[source]#
Extract the geometry cards from a CONTCAR.relax.qe file.
Returns a dict with the verbatim
ATOMIC_POSITIONSandCELL_PARAMETERScards (header + data rows), their unit strings, and the ordered list of element symbols (one entry per atom).
- PAOFLOW.gen.qe_input.sources.aflow.is_magnetic(spind)[source]#
True if any per-atom local moment exceeds the magnetic threshold.
- PAOFLOW.gen.qe_input.sources.aflow.resolve_species(aflow)[source]#
Return a list of (element, num_each_type) preserving AFLOW order.
- class PAOFLOW.gen.qe_input.sources.aflow.AflowSource[source]#
Bases:
PAOFLOW.gen.qe_input.sources.base.DatabaseSourceAdapter for the AFLOW (aflow.org / aflowlib) database.