diff --git a/core/analysis_scripts/analysis_scripts/plugins.py b/core/analysis_scripts/analysis_scripts/plugins.py index 2dc462b..420f6e0 100644 --- a/core/analysis_scripts/analysis_scripts/plugins.py +++ b/core/analysis_scripts/analysis_scripts/plugins.py @@ -21,7 +21,6 @@ def __enter__(self): """Adjusts the sys path so the modules and packages can be imported.""" if self.path not in sys.path: sys.path.insert(0, self.path) - print(sys.path) return self def __exit__(self, exception_type, exception_value, traceback): diff --git a/user-analysis-scripts/freanalysis_clouds/freanalysis_clouds/__init__.py b/user-analysis-scripts/freanalysis_clouds/freanalysis_clouds/__init__.py index 4b15c52..0cdaa8a 100644 --- a/user-analysis-scripts/freanalysis_clouds/freanalysis_clouds/__init__.py +++ b/user-analysis-scripts/freanalysis_clouds/freanalysis_clouds/__init__.py @@ -75,16 +75,16 @@ def requires(self): }, }) - def run_analysis(self, catalog, png_dir, reference_catalog=None, config={}): + def run_analysis(self, catalog, png_dir, config=None, reference_catalog=None): """Runs the analysis and generates all plots and associated datasets. Args: catalog: Path to a catalog. png_dir: Path to the directory where the figures will be made. - reference_catalog: Path to a catalog of reference data. config: Dictonary of catalog metadata. Will overwrite the data defined in the Metadata helper class if they both contain the same keys. + reference_catalog: Path to a catalog of reference data. Returns: A list of paths to the figures that were created. @@ -95,8 +95,9 @@ def run_analysis(self, catalog, png_dir, reference_catalog=None, config={}): # Connect to the catalog. catalog = intake.open_esm_datastore(catalog) - print(catalog) + if not config: + config = {} maps = {} for name, variable in self.metadata.variables().items(): # Filter the catalog down to a single dataset for each variable.