From 7464ed69f7024168551d83609314a718126c5780 Mon Sep 17 00:00:00 2001 From: Julian Matschinske <julian.matschinske@wzw.tum.de> Date: Wed, 3 Jun 2020 12:14:37 +0200 Subject: [PATCH] No not normalize for network proximity --- .../components/analysis-panel/analysis-panel.component.html | 2 +- .../components/analysis-panel/analysis-panel.component.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/analysis-panel/analysis-panel.component.html b/src/app/components/analysis-panel/analysis-panel.component.html index 8ce76ea6..81afb3e1 100644 --- a/src/app/components/analysis-panel/analysis-panel.component.html +++ b/src/app/components/analysis-panel/analysis-panel.component.html @@ -225,7 +225,7 @@ </footer> </div> <div class="content tab-content scrollable" *ngIf="task && task.info.done" [class.is-visible]="tab === 'table'"> - <div class="field has-addons" *ngIf="tableHasScores"> + <div class="field has-addons" *ngIf="tableHasScores && task.info.algorithm !== 'proximity'"> <p class="control"> <button class="button is-rounded has-tooltip" data-tooltip="Normalize the scores" [class.is-primary]="tableNormalize" (click)="toggleNormalization(true)"> diff --git a/src/app/components/analysis-panel/analysis-panel.component.ts b/src/app/components/analysis-panel/analysis-panel.component.ts index 1b5d6ae0..34df030f 100644 --- a/src/app/components/analysis-panel/analysis-panel.component.ts +++ b/src/app/components/analysis-panel/analysis-panel.component.ts @@ -194,7 +194,11 @@ export class AnalysisPanelComponent implements OnInit, OnChanges { this.tableHasScores = ['trustrank', 'closeness', 'degree', 'proximity', 'betweenness', 'quick', 'super'] .indexOf(this.task.info.algorithm) !== -1; if (this.tableHasScores) { - this.toggleNormalization(true); + if (this.task.info.algorithm !== 'proximity') { + this.toggleNormalization(true); + } else { + this.toggleNormalization(false); + } } this.network.on('deselectNode', (properties) => { -- GitLab