|
22 | 22 | "metadata": {}, |
23 | 23 | "outputs": [], |
24 | 24 | "source": [ |
| 25 | + "import uuid\n", |
25 | 26 | "from pathlib import Path\n", |
26 | 27 | "\n", |
27 | 28 | "from qcodes.dataset import (\n", |
|
48 | 49 | }, |
49 | 50 | { |
50 | 51 | "cell_type": "code", |
51 | | - "execution_count": null, |
| 52 | + "execution_count": 2, |
52 | 53 | "metadata": {}, |
53 | 54 | "outputs": [], |
54 | 55 | "source": [ |
55 | | - "db_file_path = Path.cwd().parent / \"example_output\" / \"exp_container_tutorial.db\"\n", |
| 56 | + "db_file_path = (\n", |
| 57 | + " Path.cwd().parent / \"example_output\" / f\"exp_container_tutorial_{uuid.uuid4()}.db\"\n", |
| 58 | + ")\n", |
| 59 | + "# we create a database with an uuid in the name to ensure we always start with a clean database for this tutorial\n", |
56 | 60 | "initialise_or_create_database_at(db_file_path)" |
57 | 61 | ] |
58 | 62 | }, |
|
145 | 149 | { |
146 | 150 | "data": { |
147 | 151 | "text/plain": [ |
148 | | - "[first_exp#old_sample#1@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
149 | | - " -----------------------------------------------------------------------------,\n", |
150 | | - " second_exp#slightly_newer_sample#2@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
151 | | - " -----------------------------------------------------------------------------------------,\n", |
152 | | - " third_exp#brand_new_sample#3@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
153 | | - " -----------------------------------------------------------------------------------]" |
| 152 | + "[first_exp#old_sample#1@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 153 | + " -----------------------------------------------------------------------------------------------------------------------------------------------------------------,\n", |
| 154 | + " second_exp#slightly_newer_sample#2@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 155 | + " -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------,\n", |
| 156 | + " third_exp#brand_new_sample#3@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 157 | + " -----------------------------------------------------------------------------------------------------------------------------------------------------------------------]" |
154 | 158 | ] |
155 | 159 | }, |
156 | 160 | "execution_count": 6, |
|
218 | 222 | { |
219 | 223 | "data": { |
220 | 224 | "text/plain": [ |
221 | | - "run_a #1@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
222 | | - "---------------------------------------------------------------" |
| 225 | + "run_a #1@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 226 | + "---------------------------------------------------------------------------------------------------------------------------------------------------" |
223 | 227 | ] |
224 | 228 | }, |
225 | 229 | "execution_count": 8, |
|
246 | 250 | { |
247 | 251 | "data": { |
248 | 252 | "text/plain": [ |
249 | | - "third_exp#brand_new_sample#3@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
250 | | - "-----------------------------------------------------------------------------------\n", |
251 | | - "1-run_a-1--0" |
| 253 | + "third_exp#brand_new_sample#3@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 254 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 255 | + "1-run_a-1-None-0" |
252 | 256 | ] |
253 | 257 | }, |
254 | 258 | "execution_count": 9, |
|
275 | 279 | { |
276 | 280 | "data": { |
277 | 281 | "text/plain": [ |
278 | | - "second_exp#slightly_newer_sample#2@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
279 | | - "-----------------------------------------------------------------------------------------" |
| 282 | + "second_exp#slightly_newer_sample#2@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 283 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------" |
280 | 284 | ] |
281 | 285 | }, |
282 | 286 | "execution_count": 10, |
|
323 | 327 | { |
324 | 328 | "data": { |
325 | 329 | "text/plain": [ |
326 | | - "first_run_b #2@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
327 | | - "---------------------------------------------------------------------" |
| 330 | + "first_run_b #2@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 331 | + "---------------------------------------------------------------------------------------------------------------------------------------------------------" |
328 | 332 | ] |
329 | 333 | }, |
330 | 334 | "execution_count": 12, |
|
344 | 348 | { |
345 | 349 | "data": { |
346 | 350 | "text/plain": [ |
347 | | - "second_run_b #3@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
348 | | - "----------------------------------------------------------------------" |
| 351 | + "second_run_b #3@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 352 | + "----------------------------------------------------------------------------------------------------------------------------------------------------------" |
349 | 353 | ] |
350 | 354 | }, |
351 | 355 | "execution_count": 13, |
|
372 | 376 | { |
373 | 377 | "data": { |
374 | 378 | "text/plain": [ |
375 | | - "second_exp#slightly_newer_sample#2@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
376 | | - "-----------------------------------------------------------------------------------------\n", |
377 | | - "2-first_run_b-1--0\n", |
378 | | - "3-second_run_b-2--0" |
| 379 | + "second_exp#slightly_newer_sample#2@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 380 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 381 | + "2-first_run_b-1-None-0\n", |
| 382 | + "3-second_run_b-2-None-0" |
379 | 383 | ] |
380 | 384 | }, |
381 | 385 | "execution_count": 14, |
|
402 | 406 | { |
403 | 407 | "data": { |
404 | 408 | "text/plain": [ |
405 | | - "first_run #4@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
406 | | - "-------------------------------------------------------------------" |
| 409 | + "first_run #4@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 410 | + "-------------------------------------------------------------------------------------------------------------------------------------------------------" |
407 | 411 | ] |
408 | 412 | }, |
409 | 413 | "execution_count": 15, |
|
423 | 427 | { |
424 | 428 | "data": { |
425 | 429 | "text/plain": [ |
426 | | - "first_exp#old_sample#1@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
427 | | - "-----------------------------------------------------------------------------\n", |
428 | | - "4-first_run-1--0" |
| 430 | + "first_exp#old_sample#1@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 431 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 432 | + "4-first_run-1-None-0" |
429 | 433 | ] |
430 | 434 | }, |
431 | 435 | "execution_count": 16, |
|
502 | 506 | { |
503 | 507 | "data": { |
504 | 508 | "text/plain": [ |
505 | | - "first_exp#old_sample#1@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
506 | | - "-----------------------------------------------------------------------------\n", |
507 | | - "4-first_run-1--0" |
| 509 | + "first_exp#old_sample#1@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 510 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 511 | + "4-first_run-1-None-0" |
508 | 512 | ] |
509 | 513 | }, |
510 | 514 | "execution_count": 19, |
|
587 | 591 | { |
588 | 592 | "data": { |
589 | 593 | "text/plain": [ |
590 | | - "default_run #5@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
591 | | - "---------------------------------------------------------------------" |
| 594 | + "default_run #5@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 595 | + "---------------------------------------------------------------------------------------------------------------------------------------------------------" |
592 | 596 | ] |
593 | 597 | }, |
594 | 598 | "execution_count": 23, |
|
615 | 619 | { |
616 | 620 | "data": { |
617 | 621 | "text/plain": [ |
618 | | - "third_exp#brand_new_sample#3@C:\\Users\\a-fbonabi\\temp_work\\exp_container_tutorial.db\n", |
619 | | - "-----------------------------------------------------------------------------------\n", |
620 | | - "1-run_a-1--0\n", |
621 | | - "5-default_run-2--0" |
| 622 | + "third_exp#brand_new_sample#3@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 623 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 624 | + "1-run_a-1-None-0\n", |
| 625 | + "5-default_run-2-None-0" |
622 | 626 | ] |
623 | 627 | }, |
624 | 628 | "execution_count": 24, |
|
639 | 643 | }, |
640 | 644 | { |
641 | 645 | "cell_type": "code", |
642 | | - "execution_count": null, |
| 646 | + "execution_count": 25, |
643 | 647 | "metadata": {}, |
644 | | - "outputs": [], |
| 648 | + "outputs": [ |
| 649 | + { |
| 650 | + "data": { |
| 651 | + "text/plain": [ |
| 652 | + "second_exp#slightly_newer_sample#2@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 653 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 654 | + "2-first_run_b-1-None-0\n", |
| 655 | + "3-second_run_b-2-None-0" |
| 656 | + ] |
| 657 | + }, |
| 658 | + "execution_count": 25, |
| 659 | + "metadata": {}, |
| 660 | + "output_type": "execute_result" |
| 661 | + } |
| 662 | + ], |
645 | 663 | "source": [ |
646 | 664 | "load_experiment_by_name(\n", |
647 | 665 | " \"second_exp\", sample=\"slightly_newer_sample\"\n", |
|
650 | 668 | }, |
651 | 669 | { |
652 | 670 | "cell_type": "code", |
653 | | - "execution_count": null, |
| 671 | + "execution_count": 26, |
654 | 672 | "metadata": {}, |
655 | | - "outputs": [], |
| 673 | + "outputs": [ |
| 674 | + { |
| 675 | + "data": { |
| 676 | + "text/plain": [ |
| 677 | + "third_exp#brand_new_sample#3@d:\\source\\repos\\worktrees\\qcodes_docs_parallel\\docs\\examples\\example_output\\exp_container_tutorial_7ef46669-2463-4dfd-9da8-b03183d5c86e.db\n", |
| 678 | + "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------\n", |
| 679 | + "1-run_a-1-None-0\n", |
| 680 | + "5-default_run-2-None-0" |
| 681 | + ] |
| 682 | + }, |
| 683 | + "execution_count": 26, |
| 684 | + "metadata": {}, |
| 685 | + "output_type": "execute_result" |
| 686 | + } |
| 687 | + ], |
656 | 688 | "source": [ |
657 | 689 | "load_last_experiment() # loads the last experiment in the database" |
658 | 690 | ] |
|
674 | 706 | "name": "python", |
675 | 707 | "nbconvert_exporter": "python", |
676 | 708 | "pygments_lexer": "ipython3", |
677 | | - "version": "3.13.2" |
| 709 | + "version": "3.12.12" |
678 | 710 | }, |
679 | 711 | "toc": { |
680 | 712 | "base_numbering": 1, |
|
0 commit comments