Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wiedemann
MOOC-Workbench
Commits
87fb427f
Commit
87fb427f
authored
Jun 17, 2019
by
Jonathan Wiedemann
Browse files
Add vignete semaine 1
parent
cb838ad7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
MoocChecker.py
View file @
87fb427f
...
...
@@ -45,6 +45,7 @@ def make_result(r):
r=[1,1,1,0] => result = 0
r=[1,1,1,1] => result = 1
'''
if
DEBUG
:
print
(
u
'r = '
,
r
)
if
len
(
r
)
>
0
:
if
0
in
r
:
result
=
0
...
...
@@ -52,6 +53,7 @@ def make_result(r):
result
=
1
else
:
result
=
0
if
DEBUG
:
print
(
u
'result = '
,
result
)
return
result
...
...
@@ -190,12 +192,13 @@ def primitive_presence(doc=None, label=None, type=None, dimensions=None, support
pass
if
reference
:
if
type
!=
None
:
if
DEBUG
:
print
(
type
,
reference
.
TypeId
)
if
reference
.
TypeId
==
type
:
r
.
append
(
1
)
else
:
r
.
append
(
0
)
if
dimensions
:
if
reference
.
TypeId
==
'PartDesign::Additive
Box'
or
reference
.
TypeId
==
'PartDesign::SubstractiveBox'
:
if
'
Box'
in
reference
.
TypeId
:
if
dimensions
[
0
]
==
reference
.
Length
:
r
.
append
(
1
)
else
:
...
...
@@ -209,7 +212,7 @@ def primitive_presence(doc=None, label=None, type=None, dimensions=None, support
else
:
r
.
append
(
0
)
if
reference
.
TypeId
==
'PartDesign::Additive
Cylinder'
or
reference
.
TypeId
==
'PartDesign::SubstractiveCylinder'
:
if
'
Cylinder'
in
reference
.
TypeId
:
if
dimensions
[
0
]
==
reference
.
Radius
:
r
.
append
(
1
)
else
:
...
...
lessons/HumidificateurStevenAkoun.py
View file @
87fb427f
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment