add docstrings for openQCD filter
This commit is contained in:
parent
1a1ac5121d
commit
4673751dc3
1 changed files with 33 additions and 0 deletions
|
|
@ -273,10 +273,43 @@ def sfcf_filter(results: pd.DataFrame, **kwargs: Any) -> pd.DataFrame:
|
|||
|
||||
|
||||
def openQCD_filter(results:pd.DataFrame, **kwargs: Any) -> pd.DataFrame:
|
||||
"""
|
||||
Filter for parameters of openQCD.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
results: pd.DataFrame
|
||||
The unfiltered list of results from the database.
|
||||
|
||||
Returns
|
||||
-------
|
||||
results: pd.DataFrame
|
||||
The filtered results.
|
||||
|
||||
"""
|
||||
return results
|
||||
|
||||
|
||||
def _code_filter(results: pd.DataFrame, code: str, **kwargs: Any) -> pd.DataFrame:
|
||||
"""
|
||||
Abstraction of the filters for the different codes that are available.
|
||||
At the moment, only openQCD and SFCF are known.
|
||||
The possible key words for the parameters can be seen in the descriptionso f the code-specific filters.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
results: pd.DataFrame
|
||||
The unfiltered list of results from the database.
|
||||
code: str
|
||||
The name of the code that produced the record at hand.
|
||||
kwargs:
|
||||
The keyworkd args that are handed over to the code-specific filters.
|
||||
|
||||
Returns
|
||||
-------
|
||||
results: pd.DataFrame
|
||||
The filtered results.
|
||||
"""
|
||||
if code == "sfcf":
|
||||
return sfcf_filter(results, **kwargs)
|
||||
elif code == "openQCD":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue