Commit 5f712338 authored by Médéric Boquien's avatar Médéric Boquien

We use only a memory-based cache, so we get rid of the option. For the time...

We use only a memory-based cache, so we get rid of the option. For the time being we keep the architecture in place.
parent bd1e9845
......@@ -82,11 +82,6 @@ class PdfAnalysis(AnalysisModule):
"If true, for each object check whether upper limits are present "
"and analyse them.",
False
)),
("storage_type", (
"string",
"Type of storage used to cache the generate SED.",
"memory"
))
])
......@@ -162,7 +157,7 @@ class PdfAnalysis(AnalysisModule):
n_params = params.size
# Retrieve an arbitrary SED to obtain the list of output parameters
warehouse = SedWarehouse(cache_type=config["storage_type"])
warehouse = SedWarehouse()
sed = warehouse.get_sed(creation_modules, params.from_index(0))
info = sed.info
n_info = len(sed.info)
......
......@@ -67,7 +67,7 @@ def init_sed(params, filters, analysed, redshifts, fluxes, variables,
gbl_filters = filters
gbl_analysed_variables = analysed
gbl_warehouse = SedWarehouse(cache_type="memory")
gbl_warehouse = SedWarehouse()
def init_analysis(params, filters, analysed, redshifts, fluxes, variables,
t_begin, n_computed, analysed_averages, analysed_std,
......
......@@ -56,11 +56,6 @@ class SaveFluxes(AnalysisModule):
"Format of the output file. Any format supported by astropy.table "
"e.g. votable or ascii.",
"votable"
)),
("storage_type", (
"string",
"Type of storage used to cache the generate SED.",
"memory"
))
])
......@@ -124,7 +119,7 @@ class SaveFluxes(AnalysisModule):
n_params = params.size
# Retrieve an arbitrary SED to obtain the list of output parameters
warehouse = SedWarehouse(cache_type=parameters["storage_type"])
warehouse = SedWarehouse()
sed = warehouse.get_sed(creation_modules, params.from_index(0))
info = sed.info
n_info = len(sed.info)
......
......@@ -49,7 +49,7 @@ def init_fluxes(params, filters, fluxes, info, t_begin, n_computed):
gbl_filters = filters
gbl_warehouse = SedWarehouse(cache_type="memory")
gbl_warehouse = SedWarehouse()
def fluxes(idx):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment