Skip to content

Commit

Permalink
Changed imports to access K_MODEL_COUNT
Browse files Browse the repository at this point in the history
Removed redundant "esda" import added possibly during local testing.

Removed get_model_limit() as K_MODEL_COUNT is a class variable and can be accessed directly using class name.
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Jan 26, 2024
1 parent f54e85f commit a051b9b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions emission/storage/modifiable/builtin_model_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import emission.core.get_database as edb
import emission.storage.modifiable.abstract_model_storage as esma
import emission.storage.decorations.analysis_timeseries_queries as esda

import emission.core.wrapper.entry as ecwe
import emission.core.wrapper.wrapperbase as ecwb
Expand Down Expand Up @@ -55,9 +54,6 @@ def get_current_model(self, key:str) -> Optional[Dict]:
first_entry = result_list[0]
del first_entry["_id"]
return first_entry

def get_model_limit(self):
return self.K_MODEL_COUNT

def trim_model_entries(self, key:str):
"""
Expand Down

0 comments on commit a051b9b

Please sign in to comment.