Skip to content

Commit

Permalink
Rename model module -> user_model
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Sep 10, 2024
1 parent 4cee309 commit b767ccf
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lcm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

from lcm import mark
from lcm.grids import DiscreteGrid, LinspaceGrid, LogspaceGrid
from lcm.model import Model
from lcm.user_model import Model

__all__ = ["mark", "Model", "LinspaceGrid", "LogspaceGrid", "DiscreteGrid"]
2 changes: 1 addition & 1 deletion src/lcm/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from lcm.dispatchers import productmap
from lcm.input_processing import process_model
from lcm.logging import get_logger
from lcm.model import Model
from lcm.model_functions import (
get_utility_and_feasibility_function,
)
Expand All @@ -21,6 +20,7 @@
from lcm.solve_brute import solve
from lcm.state_space import create_state_choice_space
from lcm.typing import ParamsDict
from lcm.user_model import Model


def get_lcm_function(
Expand Down
2 changes: 1 addition & 1 deletion src/lcm/input_processing/create_params_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from jax import Array

from lcm.input_processing.util import get_grids, get_variable_info
from lcm.model import Model
from lcm.typing import ParamsDict
from lcm.user_model import Model


def create_params_template(
Expand Down
2 changes: 1 addition & 1 deletion src/lcm/input_processing/process_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
get_variable_info,
)
from lcm.interfaces import InternalModel
from lcm.model import Model
from lcm.typing import ParamsDict, ShockType
from lcm.user_model import Model


def process_model(model: Model) -> InternalModel:
Expand Down
2 changes: 1 addition & 1 deletion src/lcm/input_processing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from dags import get_ancestors

from lcm.grids import ContinuousGrid, Grid
from lcm.model import Model
from lcm.typing import Array
from lcm.user_model import Model


def get_function_info(model: Model) -> pd.DataFrame:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from lcm.exceptions import ModelInitilizationError
from lcm.grids import DiscreteGrid
from lcm.model import Model
from lcm.user_model import Model


def test_model_invalid_states():
Expand Down

0 comments on commit b767ccf

Please sign in to comment.