Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 62c56f0

Browse files
committed
move to visualise fold and refactor to british spelling
1 parent 6bab08b commit 62c56f0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

ocf_datapipes/batch/visualise.py renamed to ocf_datapipes/visualisation/batch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
""" The idea is visualize one of the batches
1+
""" The idea is visualise one of the batches
22
3-
This is a bit of a working progress, but the idea is to visualize the batch in a markdown file.
3+
This is a bit of a work in progress, but the idea is to visualise the batch in a markdown file.
44
"""
55

66
import os
@@ -12,7 +12,7 @@
1212
from ocf_datapipes.batch import BatchKey, NumpyBatch, NWPBatchKey
1313

1414

15-
def visualize_batch(batch: NumpyBatch, folder=".", output_file="report.md", limit_examples=None):
15+
def visualise_batch(batch: NumpyBatch, folder=".", output_file="report.md", limit_examples=None):
1616
"""Visualize the batch in a markdown file"""
1717

1818
# create dir if it does not exist
@@ -22,7 +22,7 @@ def visualize_batch(batch: NumpyBatch, folder=".", output_file="report.md", limi
2222

2323
with open(f"{folder}/{output_file}", "a") as f:
2424
# Wind
25-
print("# Batch visualization", file=f)
25+
print("# Batch visualisation", file=f)
2626

2727
print("## Wind \n", file=f)
2828
keys = [
@@ -293,4 +293,4 @@ def visualize_batch(batch: NumpyBatch, folder=".", output_file="report.md", limi
293293
# with open("batch.md", "w") as f:
294294
# sys.stdout = f
295295
# d = torch.load("000000.pt")
296-
# visualize_batch(d)
296+
# visualise_batch(d)

ocf_datapipes/visualization/batch.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)