Skip to content
Snippets Groups Projects
Commit ca55ee9b authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix in doctest of db.py

parent a2d529b4
No related merge requests found
...@@ -35,10 +35,12 @@ class Database: ...@@ -35,10 +35,12 @@ class Database:
... assert next(db.filter_params(params))['params'] == params # get data set, keys are 'params', 'results' ... assert next(db.filter_params(params))['params'] == params # get data set, keys are 'params', 'results'
... # and 'env' ... # and 'env'
... # get a pandas object with all results matching a query ... # get a pandas object with all results matching a query
... db.to_pandas({'dx': 1.5}, remove_prefix=True) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE ... df = db.to_pandas({'dx': 1.5}, remove_prefix=True)
dx method error ... # order columns alphabetically (just for doctest output)
pk ... df.reindex(sorted(df.columns), axis=1) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
... 1.5 finite_diff 0.000001 dx error method
pk
... 1.5 0.000001 finite_diff
""" """
class SimulationResult(blitzdb.Document): class SimulationResult(blitzdb.Document):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment