From dc356a2ac131d38a7e0ff2935e97bea356a9aad1 Mon Sep 17 00:00:00 2001 From: "brainless-bot[bot]" <153751247+brainless-bot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:02:09 +0000 Subject: [PATCH] Autoformat with black --- dqe.ipynb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/dqe.ipynb b/dqe.ipynb index b93423c..6cc88fa 100644 --- a/dqe.ipynb +++ b/dqe.ipynb @@ -141,16 +141,18 @@ "metadata": {}, "outputs": [], "source": [ - "#use case for data loader\n", + "# use case for data loader\n", "\n", "center_of_mass = compute_center_of_mass(gt_segmentation)\n", "\n", - "seg_slices = get_center_of_mass_slices(file=gt_segmentation, center_of_mass=center_of_mass)\n", + "seg_slices = get_center_of_mass_slices(\n", + " file=gt_segmentation, center_of_mass=center_of_mass\n", + ")\n", "\n", "t1c_slices = get_center_of_mass_slices(file=t1c_file, center_of_mass=center_of_mass)\n", "t1_slices = get_center_of_mass_slices(file=t1_file, center_of_mass=center_of_mass)\n", "t2_slices = get_center_of_mass_slices(file=t2_file, center_of_mass=center_of_mass)\n", - "fla_slices = get_center_of_mass_slices(file=fla_file, center_of_mass=center_of_mass)\n" + "fla_slices = get_center_of_mass_slices(file=fla_file, center_of_mass=center_of_mass)" ] }, { @@ -197,7 +199,7 @@ ], "source": [ "for d in dicts:\n", - " print(d[\"view\"], d.keys()) " + " print(d[\"view\"], d.keys())" ] }, { @@ -252,7 +254,9 @@ } ], "source": [ - "ds = get_dataset(t1c=t1c_file, t1=t1_file, t2=t2_file, fla=fla_file, seg=gt_segmentation)\n", + "ds = get_dataset(\n", + " t1c=t1c_file, t1=t1_file, t2=t2_file, fla=fla_file, seg=gt_segmentation\n", + ")\n", "for d in ds:\n", " for k, v in d.items():\n", " print(k, v.shape if not isinstance(v, View) else v)" @@ -395,7 +399,9 @@ } ], "source": [ - "dl = get_data_loader(t1c=t1c_file, t1=t1_file, t2=t2_file, fla=fla_file, seg=gt_segmentation)\n", + "dl = get_data_loader(\n", + " t1c=t1c_file, t1=t1_file, t2=t2_file, fla=fla_file, seg=gt_segmentation\n", + ")\n", "for batch in dl:\n", " print(batch.keys())\n", " print(batch[\"view\"])\n", @@ -481,7 +487,7 @@ "\n", " # we compute it patch wise instead\n", " outputs = model(inputs)\n", - " \n", + "\n", " results.append(outputs)" ] },