From 68831ef59c87b4dfbff407d0aaf594d4a1b028de Mon Sep 17 00:00:00 2001 From: Andrei Cuceu Date: Mon, 20 May 2024 15:18:37 +0300 Subject: [PATCH] Remove automatic plotting unless in xi_rprt mode --- vega/vega_interface.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vega/vega_interface.py b/vega/vega_interface.py index 219ebcf..17cced4 100644 --- a/vega/vega_interface.py +++ b/vega/vega_interface.py @@ -190,10 +190,16 @@ def __init__(self, main_path): # Initialize the output object self.output = Output(self.main_config['output'], self.data, self.corr_items, self.analysis) + # Initialize mode + self.mode = 'xi_rprt' + for corr_item in self.corr_items.values(): + if corr_item.mode != 'xi_rprt': + self.mode = corr_item.mode + # Initialize vega plots self.monte_carlo = False self.plots = None - if self._has_data: + if self._has_data and self.mode == 'xi_rprt': self.plots = VegaPlots(vega_data=self.data) def compute_model(self, params=None, run_init=True, direct_pk=None):