Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qim3d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QIM
Tools
qim3d
Commits
ecf399ef
Commit
ecf399ef
authored
11 months ago
by
fima
Browse files
Options
Downloads
Plain Diff
Merge branch 'GUI-fix' into 'main'
Small fix in GUI See merge request
!111
parents
c27454e7
99ba3e55
No related branches found
No related tags found
1 merge request
!111
Small fix in GUI
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
qim3d/gui/interface.py
+5
-11
5 additions, 11 deletions
qim3d/gui/interface.py
qim3d/gui/local_thickness.py
+1
-1
1 addition, 1 deletion
qim3d/gui/local_thickness.py
with
6 additions
and
12 deletions
qim3d/gui/interface.py
+
5
−
11
View file @
ecf399ef
from
pathlib
import
Path
from
abc
import
abstractmethod
,
ABC
from
os
import
path
from
os
import
path
,
listdir
import
gradio
as
gr
...
...
@@ -113,13 +113,7 @@ class InterfaceWithExamples(BaseInterface):
self
.
_set_examples_list
()
def
_set_examples_list
(
self
):
examples
=
[
"
fly_150x256x256.tif
"
,
"
cement_128x128x128.tif
"
,
"
NT_128x128x128.tif
"
,
"
shell_225x128x128.tif
"
,
"
bone_128x128x128.tif
"
,
]
self
.
img_examples
=
[]
for
example
in
examples
:
self
.
img_examples
.
append
([
path
.
join
(
self
.
qim_dir
,
"
examples
"
,
example
)])
valid_sufixes
=
(
"
.tif
"
,
"
.tiff
"
,
"
.h5
"
,
"
.nii
"
,
"
.gz
"
,
"
.dcm
"
,
"
.DCM
"
,
"
.vol
"
,
"
.vgi
"
,
"
.txrm
"
,
"
.txm
"
,
"
.xrm
"
)
examples_folder
=
path
.
join
(
self
.
qim_dir
,
'
examples
'
)
self
.
img_examples
=
[
path
.
join
(
examples_folder
,
example
)
for
example
in
listdir
(
examples_folder
)
if
example
.
endswith
(
valid_sufixes
)]
This diff is collapsed.
Click to expand it.
qim3d/gui/local_thickness.py
+
1
−
1
View file @
ecf399ef
...
...
@@ -85,7 +85,7 @@ class Interface(InterfaceWithExamples):
def
define_interface
(
self
):
gr
.
Markdown
(
"
Interface for _Fast local thickness in 3D
and 2D
_ (https://github.com/vedranaa/local-thickness)
"
"
Interface for _Fast local thickness in 3D_ (https://github.com/vedranaa/local-thickness)
"
)
with
gr
.
Row
():
...
...
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