added ruff test
This commit is contained in:
@@ -77,7 +77,6 @@ def _grid_scene(target_vertices: int):
|
||||
stand-in.
|
||||
"""
|
||||
import numpy as np
|
||||
|
||||
from orisys_app_shared.scene3d.contracts import (
|
||||
CameraPreset,
|
||||
Material,
|
||||
@@ -88,6 +87,8 @@ def _grid_scene(target_vertices: int):
|
||||
)
|
||||
from orisys_app_shared.scene3d.digest import (
|
||||
field_domain_id as compute_domain_id,
|
||||
)
|
||||
from orisys_app_shared.scene3d.digest import (
|
||||
geometry_id as compute_geometry_id,
|
||||
)
|
||||
from orisys_app_shared.scene3d.legacy import vertex_normals
|
||||
@@ -207,7 +208,6 @@ def measure_cpu(
|
||||
what is left is the number an LOD decision should be made on.
|
||||
"""
|
||||
import numpy as np
|
||||
|
||||
from orisys_app_shared.scene3d import synthetic
|
||||
from orisys_app_shared.scene3d.composer import SceneComposer
|
||||
from orisys_app_shared.scene3d.contracts import (
|
||||
@@ -310,12 +310,11 @@ def measure(
|
||||
) -> tuple[dict, int]:
|
||||
"""Run the assembled view and report what each stage cost."""
|
||||
import numpy as np
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
from orisys_app_shared.scene3d import synthetic
|
||||
from orisys_app_shared.scene3d.contracts import DisplaySettings
|
||||
from orisys_studio.scene3d.gl_backend import configure_surface_format
|
||||
from orisys_studio.scene3d.view import Scene3DView
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
configure_surface_format(profile) # type: ignore[arg-type]
|
||||
app = QApplication.instance() or QApplication(sys.argv)
|
||||
@@ -337,8 +336,8 @@ def measure(
|
||||
report["reason"] = view.reason
|
||||
return report, 4
|
||||
if package is not None:
|
||||
from orisys_app_shared.scene3d.package import PackagedAssetLoader
|
||||
from orisys_app_shared.scene3d import protect
|
||||
from orisys_app_shared.scene3d.package import PackagedAssetLoader
|
||||
|
||||
provider = (
|
||||
protect.load_key_file(Path(key_file), key_id=key_id)
|
||||
|
||||
Reference in New Issue
Block a user