Skip to content

Commit

Permalink
fix time calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez committed Dec 10, 2024
1 parent b238b4d commit b13053e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbs/src/nixtla_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2946,11 +2946,11 @@
" max_wait_time=max_wait_time,\n",
" )\n",
" mock_nixtla_client._make_request = side_effect\n",
" init_time = time()\n",
" init_time = time.time()\n",
" test_fail(\n",
" lambda: mock_nixtla_client.forecast(df=df, h=12, time_col='timestamp', target_col='value'),\n",
" )\n",
" total_mock_time = time() - init_time\n",
" total_mock_time = time.time() - init_time\n",
" if should_retry:\n",
" approx_expected_time = min((max_retries - 1) * retry_interval, max_wait_time)\n",
" upper_expected_time = min(max_retries * retry_interval, max_wait_time)\n",
Expand Down

0 comments on commit b13053e

Please sign in to comment.