Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
libraries
Commits
0ff8f24e
Commit
0ff8f24e
authored
Jan 09, 2020
by
Neil Gershenfeld
Browse files
wip
parent
327b186d
Pipeline
#4774
passed with stage
in 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/frep.py
View file @
0ff8f24e
...
...
@@ -68,14 +68,14 @@ X = outer(ones(y.size),x)
Y
=
outer
(
y
,
ones
(
x
.
size
))
if
(
len
(
frep
[
'layers'
])
==
1
):
Z
=
frep
[
'layers'
][
0
]
print
" z ="
,
Z
print
(
" z ="
,
Z
)
f
=
eval
(
frep
[
'function'
]).
astype
(
uint32
)
else
:
f
=
zeros
((
y
.
size
,
x
.
size
),
dtype
=
uint32
)
zmin
=
min
(
frep
[
'layers'
])
zmax
=
max
(
frep
[
'layers'
])
for
Z
in
frep
[
'layers'
]:
print
" z ="
,
Z
print
(
" z ="
,
Z
)
i
=
int
(
255
*
(
Z
-
zmin
)
/
(
zmax
-
zmin
))
|
(
255
<<
8
)
|
(
255
<<
16
)
flayer
=
i
&
(
eval
(
frep
[
'function'
])).
astype
(
uint32
)
f
=
f
+
flayer
...
...
python/pcb.py
View file @
0ff8f24e
...
...
@@ -20,10 +20,10 @@
# uncomment for desired output:
#
output
=
"top, labels, and exterior"
#
output = "top, labels, and exterior"
#output = "top, labels, holes, and exterior"
#output = "top, bottom, labels, and exterior"
#
output = "top, bottom, labels, holes, and exterior"
output
=
"top, bottom, labels, holes, and exterior"
#output = "top traces"
#output = "top traces and exterior"
#output = "bottom traces reversed"
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment