Skip to content

Commit

Permalink
Format notebook file
Browse files Browse the repository at this point in the history
  • Loading branch information
psomhorst committed Oct 17, 2024
1 parent bbe20ed commit 45c3a07
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions eitprocessing/datahandling/mixins/test_slicing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
}
],
"source": [
"\n",
"draeger_file1 = \"/home/dbodor/git/EIT-ALIVE/eitprocessing/tests/test_data/Draeger_Test3.bin\"\n",
"data = DraegerEITData.from_path(draeger_file1)\n",
"\n",
"# pprint(data)\n",
"data.time\n"
"data.time"
]
},
{
Expand All @@ -57,10 +56,10 @@
"cutoff = 10\n",
"print(data.label)\n",
"print(data[cutoff].label)\n",
"print(data[cutoff:cutoff+1].label)\n",
"print(data[cutoff : cutoff + 1].label)\n",
"print(data[0:cutoff].label)\n",
"print(data[cutoff:0].label)\n",
"print(data[cutoff:cutoff+2].label)\n"
"print(data[cutoff : cutoff + 2].label)"
]
},
{
Expand Down Expand Up @@ -92,14 +91,14 @@
"tp0 = 75628.471\n",
"tp2 = 75628.571\n",
"\n",
"print(data.select_by_time(0,tp2).time)\n",
"print(data.select_by_time(0,tp2, start_inclusive=False).time)\n",
"print(data.select_by_time(0,tp2, end_inclusive=False).time)\n",
"print(data.select_by_time(0, tp2).time)\n",
"print(data.select_by_time(0, tp2, start_inclusive=False).time)\n",
"print(data.select_by_time(0, tp2, end_inclusive=False).time)\n",
"print()\n",
"print(data.select_by_time(tp0,tp2).time)\n",
"print(data.select_by_time(tp0,tp2, start_inclusive=False).time)\n",
"print(data.select_by_time(tp0,tp2, start_inclusive=False, end_inclusive=False).time)\n",
"print(data.select_by_time(tp0,tp2, start_inclusive=False, end_inclusive=True).time)\n"
"print(data.select_by_time(tp0, tp2).time)\n",
"print(data.select_by_time(tp0, tp2, start_inclusive=False).time)\n",
"print(data.select_by_time(tp0, tp2, start_inclusive=False, end_inclusive=False).time)\n",
"print(data.select_by_time(tp0, tp2, start_inclusive=False, end_inclusive=True).time)"
]
},
{
Expand Down Expand Up @@ -130,7 +129,7 @@
"for start_incl in (True, False):\n",
" for end_incl in (True, False):\n",
" print(start_incl, end_incl, end=\": \")\n",
" print(data.select_by_time(tp0_,tp2_, start_incl, end_incl).time)\n"
" print(data.select_by_time(tp0_, tp2_, start_incl, end_incl).time)"
]
},
{
Expand Down Expand Up @@ -178,7 +177,7 @@
"print(f\"slice after last timepoint: {tpx__}\")\n",
"print(data.time[-3:])\n",
"print(data.select_by_time(tp_2, tpx__, end_inclusive=True).time)\n",
"print(data.select_by_time(tp_2, tpx__, end_inclusive=False).time)\n"
"print(data.select_by_time(tp_2, tpx__, end_inclusive=False).time)"
]
},
{
Expand All @@ -198,7 +197,7 @@
}
],
"source": [
"data[1].time\n"
"data[1].time"
]
},
{
Expand All @@ -218,7 +217,7 @@
}
],
"source": [
"data.select_by_time(75628.521, 75628.521, end_inclusive=True).time\n"
"data.select_by_time(75628.521, 75628.521, end_inclusive=True).time"
]
},
{
Expand Down Expand Up @@ -251,7 +250,7 @@
"\n",
"print(data.time[1])\n",
"print(data.time[3])\n",
"data.select_by_time(tp1_, tp4_).time\n"
"data.select_by_time(tp1_, tp4_).time"
]
},
{
Expand All @@ -271,7 +270,7 @@
}
],
"source": [
"data.t[75628.521:75628.621].time\n"
"data.t[75628.521:75628.621].time"
]
}
],
Expand Down

0 comments on commit 45c3a07

Please sign in to comment.