Skip to content

Commit 04a9eea

Browse files
fix flake8 and black issues
1 parent bb3972d commit 04a9eea

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

imas/ids_slice.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,10 @@ def values(self) -> List[Any]:
442442
through a slice, without requiring explicit looping through the
443443
original collection.
444444
445-
For multi-dimensional access to values:
446-
- Use direct indexing: ``ids_obj[i1].collection[i2].value`` for best
447-
performance and clarity
445+
For multi-dimensional access to values, use one of these approaches:
446+
447+
- Use direct indexing: ``ids_obj[i1].collection[i2].value`` (best
448+
performance and clarity)
448449
- Use ``.to_array()`` if you need numpy array integration
449450
450451
Returns:

imas/test/test_ids_slice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ def test_unit_slice_element_integer_indexing(self, wall_varying_sizes):
313313
units_slice = units[:2]
314314
element_slice = units_slice.element
315315

316-
# Integer indexing not supported on IDSSlice - use list() to check length instead
316+
# Integer indexing not supported on IDSSlice
317+
# Use list() to check length instead
317318
elements_list = list(element_slice)
318319
assert len(elements_list) == 2
319320
# Access beyond available elements should be handled via list indexing

0 commit comments

Comments
 (0)