Skip to content

Commit 1d212a0

Browse files
prasad-sawantdesaiolivhoenen
authored andcommitted
fix sphinx docstring issue
1 parent 2e3b1b1 commit 1d212a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/source/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ What's new in IMAS-Python 1.2.0
99
New features and improvements
1010
'''''''''''''''''''''''''''''
1111

12-
- Add :py:func:`imas.DBEntry.get_sample` previously imaspy.DBEntry.get_sample (requires imas_core >= 5.4.0)
12+
- Add :py:func:`imas.DBEntry.get_sample <imas.db_entry.DBEntry.get_sample>` (requires imas_core >= 5.4.0)
1313
- Improved validation of netCDF files
1414
- Improve compatibility with the UDA backend in imas_core
1515
- Extend the support of netCDF to >= 1.4.1 (without complex numbers)

imas/backends/netcdf/ids_tensorizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ def tensorize(self, path, fillvalue):
173173
Tensorizes the data at the given path with the specified fill value.
174174
175175
Args:
176-
path (str): The path to the data in the NetCDF file.
177-
fillvalue (any): The value to fill the tensor with. Can be of any type,
176+
path: The path to the data in the NetCDF file.
177+
fillvalue: The value to fill the tensor with. Can be of any type,
178178
including strings.
179179
180180
Returns:
181-
numpy.ndarray: A tensor filled with the data from the specified path.
181+
A tensor filled with the data from the specified path.
182182
"""
183183
dimensions = self.ncmeta.get_dimensions(path, self.homogeneous_time)
184184
shape = tuple(self.dimension_size[dim] for dim in dimensions)

imas/backends/netcdf/nc2ids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def get_context(self):
398398
to have a 'size' attribute as required by IDSStructArray.
399399
400400
Returns:
401-
self: The current instance of the class.
401+
The current instance of the class.
402402
"""
403403
return self # IDSStructArray expects to get something with a size attribute
404404

0 commit comments

Comments
 (0)