Skip to content

Commit

Permalink
docs: rename example temperature sensor and source
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Feb 20, 2025
1 parent 62e1a76 commit 0e97a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions timely_beliefs/docs/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ An example, adapted from `timely_beliefs/example/__init__.py`:

temperature_df = tb.read_csv(
"temperature.csv",
sensor=tb.Sensor("Thermometer A", unit="°C", event_resolution=timedelta(hours=1)),
source=tb.BeliefSource("Source X"),
sensor=tb.Sensor("Ambient temperature", unit="°C", event_resolution=timedelta(hours=1)),
source=tb.BeliefSource("Thermometer A"),
)

In case the csv file contains multiple source names, you can pass a list of sources.
Expand Down
4 changes: 2 additions & 2 deletions timely_beliefs/examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def get_temperature_df():
return tb.read_csv(
os.path.join(get_examples_path(), "temperature.csv"),
sensor=tb.Sensor(
"Thermometer A", unit="°C", event_resolution=timedelta(hours=1)
"Ambient temperature", unit="°C", event_resolution=timedelta(hours=1)
),
source=tb.BeliefSource("Source X"),
source=tb.BeliefSource("Thermometer A"),
)


Expand Down

0 comments on commit 0e97a33

Please sign in to comment.