Skip to content

Commit

Permalink
Merge pull request #1791 from gridsingularity/feature/GSYE-723
Browse files Browse the repository at this point in the history
GSYE-723: Use SCMResultsHandler in CoefficientEndpointBuffer
  • Loading branch information
hannesdiedrich authored Sep 11, 2024
2 parents 785f456 + 580fa41 commit 7e93c41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gsy_e/gsy_e_core/sim_results/endpoint_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
DATE_TIME_FORMAT, DATE_TIME_UI_FORMAT, ConstSettings, GlobalConfig)
from gsy_framework.enums import AvailableMarketTypes
from gsy_framework.schema.validators import get_schema_validator
from gsy_framework.sim_results.all_results import ResultsHandler
from gsy_framework.sim_results.all_results import ResultsHandler, SCMResultsHandler
from gsy_framework.utils import get_json_dict_memory_allocation_size
from pendulum import DateTime

Expand Down Expand Up @@ -429,8 +429,9 @@ def update_coefficient_stats( # pylint: disable=too-many-arguments
def _create_results_validator(self):
self.results_validator = SimulationResultValidator(is_scm=True)

def _create_endpoint_buffer(self, should_export_plots):
return ResultsHandler(should_export_plots, is_scm=True)
@staticmethod
def _create_endpoint_buffer(_should_export_plots):
return SCMResultsHandler()

def _calculate_and_update_last_market_time_slot(self, area):
pass
Expand Down

0 comments on commit 7e93c41

Please sign in to comment.