Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent 135b1c6 commit 1d01b9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions uwsift/view/layer_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ def _update_displayed_resolution(self):
self._details_pane_ui.layerResolutionValue.setText(resolution_str)

def _update_displayed_time(self):
active_product_dataset: Optional[
ProductDataset
] = self._current_selected_layer.get_first_active_product_dataset()
active_product_dataset: Optional[ProductDataset] = (
self._current_selected_layer.get_first_active_product_dataset()
)
if active_product_dataset:
self._details_pane_ui.layerVisibleSchedTimeValue.setText(
self._current_selected_layer.get_first_active_product_dataset().info.get(Info.DISPLAY_TIME)
Expand Down
8 changes: 4 additions & 4 deletions uwsift/view/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def _build_vertex_tiles(self, preferred_stride, tile_box: IndexBox):
# we should have already loaded the texture data in to the GPU so get the index of that texture
tex_tile_idx = self.texture_state[(preferred_stride, tiy, tix)]
factor_rez, offset_rez = self.calc.calc_tile_fraction(tiy, tix, preferred_stride)
tex_coords[
tl * used_tile_idx * 6 : tl * (used_tile_idx + 1) * 6, :
] = self.calc.calc_texture_coordinates(
tex_tile_idx, factor_rez, offset_rez, tessellation_level=TESS_LEVEL
tex_coords[tl * used_tile_idx * 6 : tl * (used_tile_idx + 1) * 6, :] = (
self.calc.calc_texture_coordinates(
tex_tile_idx, factor_rez, offset_rez, tessellation_level=TESS_LEVEL
)
)
vertices[tl * used_tile_idx * 6 : tl * (used_tile_idx + 1) * 6, :] = self.calc.calc_vertex_coordinates(
tiy,
Expand Down

0 comments on commit 1d01b9d

Please sign in to comment.