Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sean Fitzgibbon
SlideR 🍔
Commits
cf4f1fd1
Commit
cf4f1fd1
authored
Jun 24, 2021
by
Sean Fitzgibbon
Browse files
Fixed bug where output directory was not created
parent
08b157e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
slider/chart_reg.py
View file @
cf4f1fd1
...
...
@@ -50,6 +50,10 @@ def register_chart_to_slide(chart, slide, slide_res, out, config=None):
global
OUTDIR
OUTDIR
=
out
# create output dir
if
not
op
.
exists
(
out
):
os
.
makedirs
(
out
)
# load chart
contour
,
cells
=
neurolucida
.
read
(
chart
)
...
...
@@ -82,9 +86,6 @@ def register_chart_to_slide(chart, slide, slide_res, out, config=None):
f
'Rotation:
\t
{
opt
.
rotation
}
\n
Translation:
\t
{
opt
.
translation
}
\n
Scale:
\t\t
{
list
(
opt
.
scale
)
}
\n
Shear:
\t\t
{
opt
.
shear
}
'
)
# save opt transform
if
not
op
.
exists
(
out
):
os
.
makedirs
(
out
)
np
.
savetxt
(
f
'
{
out
}
/chart-to-image.xfm'
,
opt
.
params
)
# apply opt-xfm to contours and cells and save
...
...
Write
Preview
Markdown
is supported
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