Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Method for Synthetic Dataset Generation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WZL-IQS-Public
SmoPa3D
Method for Synthetic Dataset Generation
Commits
e634de90
Commit
e634de90
authored
1 year ago
by
Mateus Harano
Browse files
Options
Downloads
Patches
Plain Diff
Corrected dependencies issues
parent
0a422767
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
addon/gcode/defects.py
+3
-3
3 additions, 3 deletions
addon/gcode/defects.py
addon/main.py
+0
-0
0 additions, 0 deletions
addon/main.py
with
3 additions
and
3 deletions
addon/gcode/defects.py
+
3
−
3
View file @
e634de90
...
...
@@ -7,7 +7,7 @@
# e. Geometric deviation
from
abc
import
ABC
,
abstractmethod
from
.parser
import
Command
,
Gcode
from
.parser
import
Gcode
Command
,
Gcode
class
Defect
(
ABC
):
def
__init__
(
self
,
incidence_ratio
:
float
,
intensity
:
float
)
->
None
:
...
...
@@ -23,11 +23,11 @@ class Defect(ABC):
self
.
intensity
=
intensity
@abstractmethod
def
apply
(
self
,
command
:
Command
)
->
None
:
def
apply
(
self
,
command
:
Gcode
Command
)
->
None
:
pass
class
OverExtrusion
(
Defect
):
def
apply
(
self
,
command
:
Command
)
->
None
:
def
apply
(
self
,
command
:
Gcode
Command
)
->
None
:
if
not
(
type
(
command
)
==
float
or
type
(
command
)
==
float
):
return
last_coords
=
command
.
get_last_position
()
original_extrusion
=
command
.
e
-
last_coords
[
'
e
'
]
...
...
This diff is collapsed.
Click to expand it.
addon/main.py
0 → 100644
+
0
−
0
View file @
e634de90
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment