1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Remove trend initialization from Series model to streamline value calculations.

Added initial pass at onboarding system tests.
This commit is contained in:
Josh Pigford 2025-05-26 18:59:07 -05:00
parent 07ca33f2f4
commit 6dae236fe0
3 changed files with 359 additions and 4 deletions

View file

@ -33,10 +33,6 @@ class Series
start_date: start_date,
end_date: end_date,
interval: interval,
trend: Trend.new(
current: ordered.last[:value],
previous: ordered.first[:value]
),
values: [ nil, *ordered ].each_cons(2).map do |prev_value, curr_value|
Value.new(
date: curr_value[:date],