Skip to content

Commit

Permalink
Remove all caching code from CSP (Point72#213)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Glustein <Adam.Glustein@Point72.com>
  • Loading branch information
AdamGlustein authored and Carreau committed May 13, 2024
1 parent 7441fb5 commit 8a0d881
Show file tree
Hide file tree
Showing 40 changed files with 261 additions and 6,989 deletions.
3 changes: 1 addition & 2 deletions csp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from csp.curve import curve
from csp.dataframe import DataFrame
from csp.impl.builtin_functions import *
from csp.impl.config import Config
from csp.impl.constants import UNSET
from csp.impl.enum import DynamicEnum, Enum
from csp.impl.error_handling import set_print_full_exception_stack
Expand All @@ -30,7 +29,7 @@
from csp.math import *
from csp.showgraph import show_graph

from . import cache_support, stats
from . import stats

__version__ = "0.0.3"

Expand Down
5 changes: 1 addition & 4 deletions csp/baselib.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,7 @@ def get_basket_field(dict_basket: {"K": ts["V"]}, field_name: str) -> OutputBask
:param field_name:
:return:
"""
if isinstance(dict_basket, csp.impl.wiring.cache_support.graph_building.WrappedCachedStructBasket):
return dict_basket.get_basket_field(field_name)
else:
return {k: getattr(v, field_name) for k, v in dict_basket.items()}
return {k: getattr(v, field_name) for k, v in dict_basket.items()}


@node(cppimpl=_cspbaselibimpl.sample)
Expand Down
16 changes: 0 additions & 16 deletions csp/cache_support.py

This file was deleted.

51 changes: 0 additions & 51 deletions csp/impl/config.py

This file was deleted.

Empty file.
87 changes: 0 additions & 87 deletions csp/impl/managed_dataset/aggregation_period_utils.py

This file was deleted.

101 changes: 0 additions & 101 deletions csp/impl/managed_dataset/cache_partition_argument_serializer.py

This file was deleted.

11 changes: 0 additions & 11 deletions csp/impl/managed_dataset/cache_user_custom_object_serializer.py

This file was deleted.

85 changes: 0 additions & 85 deletions csp/impl/managed_dataset/dataset_metadata.py

This file was deleted.

4 changes: 0 additions & 4 deletions csp/impl/managed_dataset/dateset_name_constants.py

This file was deleted.

8 changes: 0 additions & 8 deletions csp/impl/managed_dataset/datetime_utils.py

This file was deleted.

Loading

0 comments on commit 8a0d881

Please sign in to comment.