Skip to content

Commit

Permalink
[io] Fix Scene.at()
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Jan 12, 2024
1 parent ae37840 commit afceaf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phi/field/_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def at(directory: Union[str, tuple, typing_list, math.Tensor, 'Scene'], id: Unio
return directory
if isinstance(directory, (tuple, list)):
directory = math.wrap(directory, batch('scenes'))
directory = math.map(lambda d: expanduser(d), math.wrap(directory))
directory = math.wrap(math.map(lambda d: expanduser(d), directory))
if isinstance(id, int) and id < 0:
assert directory.shape.volume == 1
scenes = Scene.list(directory.native())
Expand Down

0 comments on commit afceaf1

Please sign in to comment.