Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(get-exp-result-import): fix the import of get_experiment_result #85

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alab_management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

__version__ = "1.0.1"
from .builders import ExperimentBuilder, get_experiment_status
from .builders import ExperimentBuilder, get_experiment_result, get_experiment_status
from .device_view.dbattributes import value_in_database
from .device_view.device import BaseDevice, add_device, mock
from .sample_view import Sample, SamplePosition, add_standalone_sample_position
Expand Down
6 changes: 5 additions & 1 deletion alab_management/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
used to create the input file for the `experiment` command.
"""

from .experimentbuilder import ExperimentBuilder, get_experiment_status
from .experimentbuilder import (
ExperimentBuilder,
get_experiment_result,
get_experiment_status,
)
from .samplebuilder import SampleBuilder
from .utils import append_task
6 changes: 3 additions & 3 deletions docs/source/submit_experiments.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ The format of the status is as follows:
```

### Get the results
Once the experiment is completed, you can get the results of the experiment using the `get_experiment_results` method.
Once the experiment is completed, you can get the results of the experiment using the `get_experiment_result` method.

```python
from alab_management import get_experiment_results
from alab_management import get_experiment_result

results = get_experiment_results(exp_id)
results = get_experiment_result(exp_id)
```

The format of the results is as follows. If the experiment has not been completed, it
Expand Down
Loading