Skip to content
Snippets Groups Projects
Commit e34ea6da authored by Simon Grasse's avatar Simon Grasse
Browse files

fix: load content of response not response

parent 7a0662aa
No related branches found
No related tags found
1 merge request!11Creation of first beta release version
......@@ -142,10 +142,12 @@ class AnalysisService:
timeseries = self.get_clean_timeseries(timeseries, metadata)
return AnalysisRequestResult(timeseries, coords, metadata)
def get_timeseries_and_metadata(self, metadata: Metadata):
def get_timeseries_and_metadata(
self, metadata: Metadata
) -> tuple[pd.DataFrame, pd.DataFrame]:
query_options = QueryOptions.from_metadata(metadata)
content = self.connection.get(query_options)
timeseries, timeseries_metadata = self.load_data(content, metadata)
result = self.connection.get(query_options)
timeseries, timeseries_metadata = self.load_data(result.content, metadata)
return timeseries, timeseries_metadata
def get_clean_coords(self, timeseries_metadata):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment