Unify offset arg name and fix imports

This commit is contained in:
thePR0M3TH3AN committed 2025-05-31 10:31:49 -04:00
1 parent 738bc3dea8
commit 17ac445e7a
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -104,7 +104,7 @@ def main(argv: list[str] | None = None) -> plt.Figure:
help="end date YYYY-MM-DD",
)
p.add_argument(
"--offset-days",
"--offset",
type=int,
default=94,
help="shift M2 by this many days (positive = M2 leads)",
@@ -124,7 +124,7 @@ def main(argv: list[str] | None = None) -> plt.Figure:
end_dt = datetime.fromisoformat(args.end)
btc, m2 = fetch_series(start_dt, end_dt, args.btc_series, args.m2_series, args.db)
fig = plot_bitcoin_m2(btc, m2, args.offset_days, args.extend_years)
fig = plot_bitcoin_m2(btc, m2, args.offset, args.extend_years)
save_figure(fig, args.output, __file__)
if argv is None:
+1 -1
View File
@@ -20,7 +20,7 @@ import matplotlib.pyplot as plt
import pandas as pd
# IMPORTANT: import common directly (no "scripts." prefix)
from common import fetch_series_db, save_figure
from scripts.common import fetch_series_db, save_figure
def fetch_series_multi(