From 80d9040832f860adab194a07637972172f9158b3 Mon Sep 17 00:00:00 2001
From: Theo <ttaburet>
Date: Thu, 18 Jun 2020 02:14:41 +0200
Subject: [PATCH] Clean output
---
Embedding.ipynb | 17 ++++++++++++++++-
NS/sampling/BIL/__init__.py | 2 +-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/Embedding.ipynb b/Embedding.ipynb
index 54ff18f..53932e3 100644
--- a/Embedding.ipynb
+++ b/Embedding.ipynb
@@ -380,7 +380,22 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "923592dda7b24510bbea3060d7c8253d",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ "HBox(children=(FloatProgress(value=0.0, description='Intra-only', max=250274.0, style=ProgressStyle(descriptio…"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
"source": [
"### Intras ###\n",
"#sampler_intras = Sampler.MVG(cover_path = cover_path, seed = 1234, strategy = \"Intra-only\")\n",
diff --git a/NS/sampling/BIL/__init__.py b/NS/sampling/BIL/__init__.py
index 5f92571..0897a66 100644
--- a/NS/sampling/BIL/__init__.py
+++ b/NS/sampling/BIL/__init__.py
@@ -213,7 +213,7 @@ class Sampler():
M_1 = Covariance.getPhotositesToDctMatrix(1, 'Y')
# Lattices loaders
- pbar1 = tqdm(total=((h//8-2))*((w//8-2)), desc = "Intra-only")
+ pbar1 = tqdm(total=(h//8-2)*(w//8-2), desc = "Intra-only")
#Lattice 1
for i, j in itertools.product(range(h//8-2), range(w//8-2)):
--
GitLab