Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyNutil
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harry Carey
PyNutil
Commits
5224b07e
Commit
5224b07e
authored
1 year ago
by
Sharon Yates
Browse files
Options
Downloads
Patches
Plain Diff
Rename output folders
parent
cb2263d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PyNutil/main.py
+7
-7
7 additions, 7 deletions
PyNutil/main.py
with
7 additions
and
7 deletions
PyNutil/main.py
+
7
−
7
View file @
5224b07e
...
...
@@ -320,8 +320,8 @@ class PyNutil:
if
not
os
.
path
.
exists
(
output_folder
):
os
.
makedirs
(
output_folder
)
if
not
os
.
path
.
exists
(
f
"
{
output_folder
}
/
sections_combined
_report
"
):
os
.
makedirs
(
f
"
{
output_folder
}
/
sections_combined
_report
"
)
if
not
os
.
path
.
exists
(
f
"
{
output_folder
}
/
whole_series
_report
"
):
os
.
makedirs
(
f
"
{
output_folder
}
/
whole_series
_report
"
)
if
not
hasattr
(
self
,
"
label_df
"
):
print
(
"
no quantification found so we will only save the coordinates
"
)
...
...
@@ -331,14 +331,14 @@ class PyNutil:
else
:
self
.
label_df
.
to_csv
(
f
"
{
output_folder
}
/
sections_combined
_report/counts.csv
"
,
sep
=
"
;
"
,
na_rep
=
""
,
index
=
False
f
"
{
output_folder
}
/
whole_series
_report/counts.csv
"
,
sep
=
"
;
"
,
na_rep
=
""
,
index
=
False
)
if
not
os
.
path
.
exists
(
f
"
{
output_folder
}
/per_section_meshview
"
):
os
.
makedirs
(
f
"
{
output_folder
}
/per_section_meshview
"
)
if
not
os
.
path
.
exists
(
f
"
{
output_folder
}
/per_section_reports
"
):
os
.
makedirs
(
f
"
{
output_folder
}
/per_section_reports
"
)
if
not
os
.
path
.
exists
(
f
"
{
output_folder
}
/
sections_combined
_meshview
"
):
os
.
makedirs
(
f
"
{
output_folder
}
/
sections_combined
_meshview
"
)
if
not
os
.
path
.
exists
(
f
"
{
output_folder
}
/
whole_series
_meshview
"
):
os
.
makedirs
(
f
"
{
output_folder
}
/
whole_series
_meshview
"
)
prev_pl
=
0
prev_cl
=
0
...
...
@@ -377,14 +377,14 @@ class PyNutil:
write_points_to_meshview
(
self
.
pixel_points
,
self
.
labeled_points
,
f
"
{
output_folder
}
/
sections_combined
_meshview/pixels_meshview.json
"
,
f
"
{
output_folder
}
/
whole_series
_meshview/pixels_meshview.json
"
,
self
.
atlas_labels
,
)
if
hasattr
(
self
,
"
centroids
"
):
write_points_to_meshview
(
self
.
centroids
,
self
.
labeled_points_centroids
,
f
"
{
output_folder
}
/
sections_combined
_meshview/objects_meshview.json
"
,
f
"
{
output_folder
}
/
whole_series
_meshview/objects_meshview.json
"
,
self
.
atlas_labels
,
)
print
(
"
analysis saved ✅
"
)
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment