get_run_config_from_latest_run
Retrieve a dbnl RunConfig from the most recent Run in a Project
dbnl.get_run_config(
*,
project: ,
) -> :
Parameters
Arguments
Description
project
The Project the most recent Run is associated with.
Returns
Type
Description
The dbnl RunConfig from the most recent run in the Project.
Examples
import dbnl
dbnl.login()
proj1 = dbnl.get_or_create_project(name="test_p1")
runcfg1 = dbnl.create_run_config(project=proj1, columns=[{"name": "error", "type": "float"}])
run1 = dbnl.create_run(
project=proj1,
run_config=runcfg1,
)
# Retrieving the RunConfig by ID
runcfg2 = dbnl.get_run_config_from_latest_run(project=proj1)
assert runcfg1.id == runcfg2.id
Was this helpful?