@@ -20,7 +20,6 @@ import { jsonPatch } from '../../../utilities/fetch/jsonPatch.js';
2020import { jsonPut } from '../../../utilities/fetch/jsonPut.js' ;
2121import { SkimmingStage } from '../../../domain/enums/SkimmingStage.js' ;
2222import { NumericalComparisonFilterModel } from '../../../components/Filters/common/filters/NumericalComparisonFilterModel.js' ;
23- import { RunDetectorsSelectionModel } from '../RunDetectorsSelectionModel.js' ;
2423import { jsonFetch } from '../../../utilities/fetch/jsonFetch.js' ;
2524
2625/**
@@ -35,23 +34,17 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
3534 super ( model ) ;
3635 this . _detectors$ = detectorsProvider . qc$ ;
3736 this . _detectors$ . bubbleTo ( this ) ;
38- this . _detectors$ . observe ( ( observableData ) => observableData . getCurrent ( ) . apply ( {
39- Success : ( detectors ) => detectors . forEach ( ( { id } ) => {
40- this . _filteringModel . put ( `detectorsQc[_${ id } ][notBadFraction]` , new NumericalComparisonFilterModel ( {
41- scale : 0.01 ,
42- integer : false ,
43- } ) ) ;
44- } ) ,
45- } ) ) ;
37+ this . registerDetectorsNotBadFractionFilterModels ( this . _detectors$ ) ;
38+
4639 this . _dataPass = new ObservableData ( RemoteData . notAsked ( ) ) ;
4740 this . _dataPass . bubbleTo ( this ) ;
41+
4842 this . _qcSummary$ = new ObservableData ( RemoteData . notAsked ( ) ) ;
4943 this . _qcSummary$ . bubbleTo ( this ) ;
44+
5045 this . _gaqSummary$ = new ObservableData ( RemoteData . notAsked ( ) ) ;
5146 this . _gaqSummary$ . bubbleTo ( this ) ;
5247
53- this . _mcReproducibleAsNotBad = false ;
54-
5548 this . _markAsSkimmableRequestResult$ = new ObservableData ( RemoteData . notAsked ( ) ) ;
5649 this . _markAsSkimmableRequestResult$ . bubbleTo ( this ) ;
5750
@@ -63,9 +56,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
6356 integer : false ,
6457 } ) ) ;
6558
66- this . _runDetectorsSelectionModel = new RunDetectorsSelectionModel ( ) ;
67- this . _runDetectorsSelectionModel . bubbleTo ( this ) ;
68-
6959 this . _freezeOrUnfreezeActionState$ = new ObservableData ( RemoteData . notAsked ( ) ) ;
7060 this . _freezeOrUnfreezeActionState$ . bubbleTo ( this ) ;
7161
@@ -116,8 +106,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
116106 return ;
117107 }
118108
119- this . _runDetectorsSelectionModel . reset ( ) ;
120-
121109 this . _fetchQcSummary ( ) ;
122110 this . _fetchGaqSummary ( ) ;
123111 await this . _fetchDataPass ( ) ;
@@ -139,9 +127,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
139127 mcReproducibleAsNotBad : this . _mcReproducibleAsNotBad ,
140128 } ;
141129 }
142- filter . detectorsQc = {
143- mcReproducibleAsNotBad : this . _mcReproducibleAsNotBad ,
144- } ;
145130
146131 return buildUrl ( super . getRootEndpoint ( ) , { filter } ) ;
147132 }
@@ -314,35 +299,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
314299 return this . _dataPassId ;
315300 }
316301
317- /**
318- * Set mcReproducibleAsNotBad
319- *
320- * @param {boolean } mcReproducibleAsNotBad new value
321- * @return {void }
322- */
323- setMcReproducibleAsNotBad ( mcReproducibleAsNotBad ) {
324- this . _mcReproducibleAsNotBad = mcReproducibleAsNotBad ;
325- this . load ( ) ;
326- }
327-
328- /**
329- * Get mcReproducibleAsNotBad
330- *
331- * @return {boolean } mcReproducibleAsNotBad
332- */
333- get mcReproducibleAsNotBad ( ) {
334- return this . _mcReproducibleAsNotBad ;
335- }
336-
337- /**
338- * Returns the run detectors selection model
339- *
340- * @return {RunDetectorsSelectionModel } selection model
341- */
342- get runDetectorsSelectionModel ( ) {
343- return this . _runDetectorsSelectionModel ;
344- }
345-
346302 /**
347303 * Fetch data pass data which runs are fetched
348304 * @return {Promise<void> } promise
0 commit comments