-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Experiment): added remote experiment saving (#112)
* feat(Experiment): added remote experiment saving Created the functions for using `qiboconnection`'s remote saving functionalities: * Created a public function in experiment, `remote_save_experiment()`, that will send the current experiment to the database and return the id. * Modified `execute()` method so that, depending on the `ExperimentOptions()` configuration, it sends the experiment to the database after the process is done --with default behaviour being to do so--. It leaves the freshly created id stored in the internal attribute `self._remote_saved_experiment_id` in case it needs to be recovered by the user without the need for querying by date, description or name. * fix(Results): checked that connection is not none before saving the experiment * fix(experiment): misspellings in docs Fixed some misspelling in docstrings. Fixed some misspellings in conftest fixture function names. * fix(experiment): fixed typo in experiment Fixed typo in 'description' typing * test(experiment): added testing for remote saving added testing for executing an experiment with the remote saving option enabled * fix(experiment): corrected pylint mistake checked the variable holding the mock itself instead of the place it should be assigned to. Co-authored-by: javi <javier.sabariego@qilimanjaro.tech>
- Loading branch information
Showing
5 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters