Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley authored and johnkit committed Apr 30, 2024
1 parent 96cb22a commit 599c1e2
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions pan3d/dataset_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,10 @@ def _data_array_changed(self) -> None:
"step": 1,
}
if self.builder.slicing and self.builder.slicing.get(key):
coord_slicing = dict(zip(
['start', 'stop', 'step'],
self.builder.slicing.get(key)
))
self.state.da_coordinates.append(
dict(**coord_info, **coord_slicing)
)
coord_slicing = dict(
zip(["start", "stop", "step"], self.builder.slicing.get(key))
)
self.state.da_coordinates.append(dict(**coord_info, **coord_slicing))
if key not in self.state.ui_expanded_coordinates:
self.state.ui_expanded_coordinates.append(key)

Expand All @@ -401,12 +398,9 @@ def _data_slicing_changed(self) -> None:
if self.builder.slicing is None:
return
for coord in self.state.da_coordinates:
name = coord['name']
slicing = self.builder.slicing.get(coord['name'])
slicing = self.builder.slicing.get(coord["name"])
if slicing:
coord.update(dict(zip(
['start', 'stop', 'step'], slicing
)))
coord.update(dict(zip(["start", "stop", "step"], slicing)))

def _time_index_changed(self) -> None:
dataset = self.builder.dataset
Expand Down

0 comments on commit 599c1e2

Please sign in to comment.