From da763fdd442cdd8e8c45d96dc2f47532c7906df1 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 14 Dec 2023 10:59:18 +0100 Subject: [PATCH] display num residus when too large --- components/content/MolstarPdbePlugin.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/content/MolstarPdbePlugin.vue b/components/content/MolstarPdbePlugin.vue index 1e6da0d4..c631022c 100644 --- a/components/content/MolstarPdbePlugin.vue +++ b/components/content/MolstarPdbePlugin.vue @@ -110,7 +110,7 @@ watch(selectedPaePath, async (newPaePath) => { console.log(data[0][0]) console.log(data?.[0]?.[0] !== undefined) if (data.length > 500) { - paeError.value = "The PAE is too large to be displayed" + paeError.value = `The PAE is too large to be displayed (${data.length} residus)` paeData.value = [] } else if (data?.[0]?.[0] === undefined) { @@ -163,8 +163,6 @@ watch(selectedPdb, (newSelectedPdb, prevSelectPdb) => { if (newSelectedPdb !== null) { dialog.value = true const format = toValue(newSelectedPdb)?.split(".").slice(-1)[0]?.toLowerCase() ?? "pdb" - console.log(toValue(newSelectedPdb)?.split(".").slice(-1)) - console.log(format) moleculeFormat.value = format if (pdbeMolstarComponent.value?.viewerInstance) { const viewerInstance = pdbeMolstarComponent.value.viewerInstance -- GitLab