File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from mease_elabftw .util import convert_weight
33import mease_elabftw
44
5-
65mease_elabftw .activate_logger (True )
76mease_elabftw .set_log_level (20 )
87
Original file line number Diff line number Diff line change 77import logging
88from datetime import datetime
99
10-
1110logger = logging .getLogger ("mease-elabftw" )
1211
1312url = "https://elabftw.uni-heidelberg.de"
Original file line number Diff line number Diff line change 22 "cells" : [
33 {
44 "cell_type" : " markdown" ,
5- "id" : " e30c3874 " ,
5+ "id" : " 0 " ,
66 "metadata" : {},
77 "source" : [
88 " # mease-elabftw: get experiments and upload files"
99 ]
1010 },
1111 {
1212 "cell_type" : " markdown" ,
13- "id" : " 9f32e4b6 " ,
13+ "id" : " 1 " ,
1414 "metadata" : {},
1515 "source" : [
1616 " Note: you need to have exported a valid API token to use this notebook, e.g.\n " ,
1919 },
2020 {
2121 "cell_type" : " markdown" ,
22- "id" : " 0fb6b0fe " ,
22+ "id" : " 2 " ,
2323 "metadata" : {},
2424 "source" : [
2525 " ### Import mease_elabftw"
2828 {
2929 "cell_type" : " code" ,
3030 "execution_count" : null ,
31- "id" : " 9f88e6d1 " ,
31+ "id" : " 3 " ,
3232 "metadata" : {},
3333 "outputs" : [],
3434 "source" : [
3737 },
3838 {
3939 "cell_type" : " markdown" ,
40- "id" : " 5dce4556 " ,
40+ "id" : " 4 " ,
4141 "metadata" : {},
4242 "source" : [
4343 " ### List all experiments matching `owner`"
4646 {
4747 "cell_type" : " code" ,
4848 "execution_count" : null ,
49- "id" : " a573b6e3 " ,
49+ "id" : " 5 " ,
5050 "metadata" : {},
5151 "outputs" : [],
5252 "source" : [
5555 },
5656 {
5757 "cell_type" : " markdown" ,
58- "id" : " fb799ef4 " ,
58+ "id" : " 6 " ,
5959 "metadata" : {},
6060 "source" : [
6161 " ### Get all experiments matching `owner` without an existing upload matching `exclude_filename`"
6464 {
6565 "cell_type" : " code" ,
6666 "execution_count" : null ,
67- "id" : " f3949d72 " ,
67+ "id" : " 7 " ,
6868 "metadata" : {},
6969 "outputs" : [],
7070 "source" : [
9292 {
9393 "cell_type" : " code" ,
9494 "execution_count" : null ,
95- "id" : " f8374cdc " ,
95+ "id" : " 8 " ,
9696 "metadata" : {},
9797 "outputs" : [],
9898 "source" : [
104104 },
105105 {
106106 "cell_type" : " markdown" ,
107- "id" : " 6ce58a22 " ,
107+ "id" : " 9 " ,
108108 "metadata" : {},
109109 "source" : [
110110 " ### View metadata, linked item, etc from experiment"
113113 {
114114 "cell_type" : " code" ,
115115 "execution_count" : null ,
116- "id" : " 2d859f13 " ,
116+ "id" : " 10 " ,
117117 "metadata" : {},
118118 "outputs" : [],
119119 "source" : [
122122 },
123123 {
124124 "cell_type" : " markdown" ,
125- "id" : " db70450f " ,
125+ "id" : " 11 " ,
126126 "metadata" : {},
127127 "source" : [
128128 " ## Upload a file to an experiment"
131131 {
132132 "cell_type" : " code" ,
133133 "execution_count" : null ,
134- "id" : " 5e866865 " ,
134+ "id" : " 12 " ,
135135 "metadata" : {},
136136 "outputs" : [],
137137 "source" : [
141141 {
142142 "cell_type" : " code" ,
143143 "execution_count" : null ,
144- "id" : " 03ced54c " ,
144+ "id" : " 13 " ,
145145 "metadata" : {},
146146 "outputs" : [],
147147 "source" : []
You can’t perform that action at this time.
0 commit comments