mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use Arcus as namespace
Because we had to rename our Python bindings module from Arcus to pyArcus we also changed our import downstream (Cura and Uranium). But in order to limit the changes on our existing code we decided during the review that we should just import pyArcus as Arcus. Contributes to CURA-7924
This commit is contained in:
parent
7511ac843e
commit
47588393e8
2 changed files with 24 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
# Copyright (c) 2021 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
# Copyright (c) 2021-2022 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import numpy
|
||||
from string import Formatter
|
||||
|
@ -7,7 +7,7 @@ from enum import IntEnum
|
|||
import time
|
||||
from typing import Any, cast, Dict, List, Optional, Set
|
||||
import re
|
||||
import pyArcus #For typing.
|
||||
import pyArcus as Arcus # For typing.
|
||||
from PyQt6.QtCore import QCoreApplication
|
||||
|
||||
from UM.Job import Job
|
||||
|
@ -90,17 +90,17 @@ class GcodeStartEndFormatter(Formatter):
|
|||
class StartSliceJob(Job):
|
||||
"""Job class that builds up the message of scene data to send to CuraEngine."""
|
||||
|
||||
def __init__(self, slice_message: pyArcus.PythonMessage) -> None:
|
||||
def __init__(self, slice_message: Arcus.PythonMessage) -> None:
|
||||
super().__init__()
|
||||
|
||||
self._scene = CuraApplication.getInstance().getController().getScene() #type: Scene
|
||||
self._slice_message = slice_message #type: pyArcus.PythonMessage
|
||||
self._slice_message: Arcus.PythonMessage = slice_message
|
||||
self._is_cancelled = False #type: bool
|
||||
self._build_plate_number = None #type: Optional[int]
|
||||
|
||||
self._all_extruders_settings = None #type: Optional[Dict[str, Any]] # cache for all setting values from all stacks (global & extruder) for the current machine
|
||||
|
||||
def getSliceMessage(self) -> pyArcus.PythonMessage:
|
||||
def getSliceMessage(self) -> Arcus.PythonMessage:
|
||||
return self._slice_message
|
||||
|
||||
def setBuildPlate(self, build_plate_number: int) -> None:
|
||||
|
@ -502,7 +502,7 @@ class StartSliceJob(Job):
|
|||
setting_extruder.extruder = extruder_position
|
||||
Job.yieldThread()
|
||||
|
||||
def _handlePerObjectSettings(self, node: CuraSceneNode, message: pyArcus.PythonMessage):
|
||||
def _handlePerObjectSettings(self, node: CuraSceneNode, message: Arcus.PythonMessage):
|
||||
"""Check if a node has per object settings and ensure that they are set correctly in the message
|
||||
|
||||
:param node: Node to check.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue