Skip to content

Commit e290244

Browse files
committed
fix issue with N not being used
1 parent b63860d commit e290244

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

causalpy/data/simulate_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ def generate_time_series_data(
125125
The intercept
126126
127127
"""
128-
x = np.arange(0, 100, 1)
128+
x = np.arange(0, N, 1)
129129
df = pd.DataFrame(
130130
{
131131
"temperature": np.sin(x * 0.5) + 1,
132-
"linear": np.linspace(0, 1, 100),
133-
"causal effect": 10 * gamma(10).pdf(np.arange(0, 100, 1) - treatment_time),
132+
"linear": np.linspace(0, 1, N),
133+
"causal effect": 10 * gamma(10).pdf(np.arange(0, N, 1) - treatment_time),
134134
}
135135
)
136136

0 commit comments

Comments
 (0)