Skip to content

Commit cf166e7

Browse files
committed
Minor fix
1 parent 5ea0829 commit cf166e7

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pina/data/data_module.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ def __init__(self, dataset):
2828
have the following cases:
2929
3030
- **Distributed Environment** (multiple GPUs):
31-
- Divides the dataset across processes using the rank and world size.
32-
- Fetches only the portion of data corresponding to the current process.
31+
- Divides the dataset across processes using the rank and world
32+
size.
33+
- Fetches only the portion of data corresponding to the current
34+
process.
3335
- **Non-Distributed Environment** (single GPU):
3436
- Fetches the entire dataset.
3537
@@ -80,8 +82,8 @@ def __init__(
8082
Initialize the object, setting the collate function based on whether
8183
automatic batching is enabled or not.
8284
83-
:param dict max_conditions_lengths: dict containing the maximum number of
84-
data points to consider in a single batch for each condition.
85+
:param dict max_conditions_lengths: dict containing the maximum number
86+
of data points to consider in a single batch for each condition.
8587
:param PinaDataset dataset: The dataset where the data is stored.
8688
"""
8789

pina/data/dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ def _retrive_data(self, data, idx_list):
197197
:return: Dictionary containing the data at the given indices
198198
:rtype: dict
199199
"""
200-
pass
201200

202201

203202
class PinaTensorDataset(PinaDataset):

pina/graph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ def __new__(
217217
**kwargs,
218218
):
219219
"""
220-
Compute the edge attributes and create a new instance of the Graph class.
220+
Compute the edge attributes and create a new instance of the Graph
221+
class.
221222
222223
:param pos: A tensor of shape (N, D) representing the positions of N
223224
points in D-dimensional space.

0 commit comments

Comments
 (0)