Skip to content

Commit

Permalink
fix docstrings to close #859
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 14, 2024
1 parent d8772dc commit 124f0b5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions mp_api/client/routes/materials/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def search(
Arguments:
band_gap (Tuple[float,float]): Minimum and maximum band gap in eV to consider.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-Fe-O, Si-*, [Si-O, Li-Fe-P]), or single formula (e.g., Fe2O3, Si*).
chemsys (str, List[str]): A chemical system or list of chemical systems
(e.g., Li-Fe-O, Si-*, [Si-O, Li-Fe-P]).
crystal_system (CrystalSystem): Crystal system of material.
density (Tuple[float,float]): Minimum and maximum density to consider.
deprecated (bool): Whether the material is tagged as deprecated.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/bonds.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
chunk_size (int): Number of data entries per chunk.
all_fields (bool): Whether to return all fields in the document. Defaults to True.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/molecules.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def search(
spin_multiplicity (Tuple[int, int]): Minimum and maximum spin for the molecule.
nelements (Tuple[int, int]): Minimum and maximum number of elements
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
deprecated (bool): Whether the material is tagged as deprecated.
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/orbitals.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
electron_type_population (str): Should alpha ('alpha'), beta ('beta'), or all electrons (None) be
considered in a query of natural electron populations?
core_electrons (Tuple[float, float]): Minimum and maximum number of core electrons in an atom
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/partial_charges.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
chunk_size (int): Number of data entries per chunk.
all_fields (bool): Whether to return all fields in the document. Defaults to True.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/partial_spins.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
chunk_size (int): Number of data entries per chunk.
all_fields (bool): Whether to return all fields in the document. Defaults to True.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/redox.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
electrode (str): For redox potential queries, a string representation of the reference
electrode (currently accepted: "H", "Li", "Mg", "Ca")
min_reduction_potential (float): Minimum reduction potential considered
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def search(
# "wB97X-V/def2-SVPD/SMD(SOLVENT=THF)",
# ["wB97X-V/def2-TZVPPD/SMD(VACUUM)", "wB97M-V/def2-QZVPPD/SMD(SOLVENT=WATER)"])
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
deprecated (bool): Whether the material is tagged as deprecated.
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
chunk_size (int): Number of data entries per chunk.
all_fields (bool): Whether to return all fields in the document. Defaults to True.
Expand Down
2 changes: 1 addition & 1 deletion mp_api/client/routes/molecules/vibrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def search(
elements (List[str]): A list of elements.
exclude_elements (List(str)): List of elements to exclude.
chemsys (str, List[str]): A chemical system, list of chemical systems
(e.g., Li-C-O, [C-O-H-N, Li-N]), or single formula (e.g., C2 H4).
(e.g., Li-C-O, [C-O-H-N, Li-N]).
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
chunk_size (int): Number of data entries per chunk.
all_fields (bool): Whether to return all fields in the document. Defaults to True.
Expand Down

0 comments on commit 124f0b5

Please sign in to comment.