Skip to content

Commit

Permalink
DOC: finalize changelog, fix minor doc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed May 2, 2023
1 parent 2113b45 commit 271127e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 3 additions & 7 deletions docs/changelog/v3.0.0.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
What's new in v3.0.0
--------------------

(released 02/05/2023)

New Features
^^^^^^^^^^^^

Expand Down Expand Up @@ -62,12 +64,6 @@ New Features
``Session*DateUtc`` (#253). Timezone information and UTC timestamps are only
available when using one of ``'fastf1'`` or ``'f1timing'`` as backend.

``Session*Date`` is now a timezone aware timestamp for the session start time
as local time (was not timezone aware previously). ``Session*DateUtc`` was
added and provides a non-timezone-aware Utc timestamp for the session start
time. Timezone aware local timestamps are only available when the primary
schedule backend is used.

- Added ``strict_search`` parameter to :func:`fastf1.get_event` that disables
fuzzy matching for exact matching of session names. (by @Neron-png)

Expand Down Expand Up @@ -235,6 +231,6 @@ Deprecations
If you currently require functionality from there, please open an issue
on Github with details about what you require and why.

- :mod:`utils.delta_time` is considered deprecated and will be modified or
- :mod:`fastf1.utils.delta_time` is considered deprecated and will be modified or
removed in a future release because it has a tendency to give inaccurate
results.
3 changes: 2 additions & 1 deletion fastf1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
.........
.. autoclass:: Cache
:members: enable_cache, clear_cache, disabled, set_disabled, set_enabled
:members: enable_cache, clear_cache, disabled, set_disabled, set_enabled,
offline_mode
:autosummary:
Expand Down
5 changes: 5 additions & 0 deletions fastf1/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class Cache:
fastf1.Cache.disabled
fastf1.Cache.set_disabled
fastf1.Cache.set_enabled
fastf1.Cache.offline_mode
The parsed API data will be saved as a pickled object.
Raw GET and POST requests are cached in a sqlite db using the
Expand Down Expand Up @@ -580,6 +581,10 @@ def offline_mode(cls, enabled: bool):
In this mode, no actual requests will be sent and only cached data is
returned. This can be useful for freezing the state of the cache or
working with an unstable internet connection.
Args:
enabled: sets the state of offline mode to 'enabled' (``True``)
or 'disabled' (``False``)
"""
if cls._requests_session_cached is None:
cls._enable_default_cache()
Expand Down

0 comments on commit 271127e

Please sign in to comment.