Skip to content

Commit

Permalink
Cache Cox Model instance during runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzomag committed Aug 15, 2024
1 parent 8c3e5eb commit bfa4394
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wimprates/data/migdal/Cox/cox_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
The working directory is then reset.
"""

from functools import lru_cache
import os
import sys

import wimprates as wr

from .cox_submodule.Migdal import Migdal
import wimprates as wr

export, __all__ = wr.exporter()


@export
@lru_cache
def cox_migdal_model(element: str, **kwargs) -> Migdal:
"""
This function creates a Cox Migdal model for a given element.
Expand Down

0 comments on commit bfa4394

Please sign in to comment.