Skip to content

Commit

Permalink
Move comments above variable definition
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Dec 14, 2023
1 parent ca6b652 commit c938d2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lcm/entry_point_updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def get_lcm_function(
):
# Setup
# ==================================================================================
model = ModelBlock(model_specification) # Larger models may consist of multiple
# model blocks. Here we only require one.
# Larger models may consist of multiple model blocks. Here we only require one.
model = ModelBlock(model_specification)

# Objects related to the state choice space
# ==================================================================================
Expand Down
5 changes: 3 additions & 2 deletions src/lcm/solve_updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def backward_induction(
# ==================================================================================
n_periods = len(state_choice_spaces)
reversed_solution = []
vf_arr = None # This represents the value function of next period, which will be
# updated in each iteration of the backward induction loop.
# vf_arr represents the value function of next period, which will be updated in each
# iteration of the backward induction loop.
vf_arr = None

# Backwards induction loop
# ==================================================================================
Expand Down

0 comments on commit c938d2d

Please sign in to comment.