Skip to content

Commit f0cbad2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d7a2c85 commit f0cbad2

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/upper_envelope/fues_numba/fues_numba.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ def fues_numba_unconstrained(
170170
containing refined value function.
171171
172172
"""
173-
174173
endog_grid = endog_grid[np.where(~np.isnan(value))[0]]
175174
policy = policy[np.where(~np.isnan(value))]
176175
value = value[np.where(~np.isnan(value))]
@@ -234,7 +233,6 @@ def scan_value_function(
234233
the optimal points are kept.
235234
236235
"""
237-
238236
value_refined, policy_refined, endog_grid_refined = _initialize_refined_arrays(
239237
value, policy, endog_grid
240238
)
@@ -550,7 +548,6 @@ def _forward_scan(
550548
the same value function.
551549
552550
"""
553-
554551
is_next_on_same_value = 0
555552
idx_on_same_value = 0
556553
grad_next_on_same_value = 0
@@ -623,7 +620,6 @@ def _backward_scan(
623620
previous point on the same value function.
624621
625622
"""
626-
627623
is_before_on_same_value = 0
628624
sub_idx_point_before_on_same_value = 0
629625
grad_before_on_same_value = 0
@@ -713,7 +709,6 @@ def _linear_intersection(
713709
tuple: x and y coordinates of the intersection point.
714710
715711
"""
716-
717712
slope1 = (y2 - y1) / (x2 - x1)
718713
slope2 = (y4 - y3) / (x4 - x3)
719714

src/upper_envelope/math_funcs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ def _find_linear_intersection(
176176
tuple: x and y coordinates of the intersection point.
177177
178178
"""
179-
180179
slope1 = calc_gradient(x1, y1, x2, y2)
181180
slope2 = calc_gradient(x3, y3, x4, y4)
182181

tests/utils/upper_envelope_fedor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ def _augment_grid(
563563
Shape (2, *n_grid_augmented*).
564564
565565
"""
566-
567566
grid_points_to_add = np.linspace(min_wealth_grid, value[0, 1], n_grid_wealth // 10)[
568567
:-1
569568
]

0 commit comments

Comments
 (0)