diff --git a/uwsift/view/layer_details.py b/uwsift/view/layer_details.py index 17183457..05c74287 100644 --- a/uwsift/view/layer_details.py +++ b/uwsift/view/layer_details.py @@ -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) diff --git a/uwsift/view/visuals.py b/uwsift/view/visuals.py index f9cf84b6..c525e53c 100644 --- a/uwsift/view/visuals.py +++ b/uwsift/view/visuals.py @@ -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,