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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QIM
Tools
qim3d
Commits
99ba3e55
Commit
99ba3e55
authored
11 months ago
by
David Grundfest
Browse files
Options
Downloads
Patches
Plain Diff
Small fix in GUI
parent
c27454e7
No related branches found
No related tags found
1 merge request
!111
Small fix in GUI
Changes
2
Hide 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 @
99ba3e55
from
pathlib
import
Path
from
pathlib
import
Path
from
abc
import
abstractmethod
,
ABC
from
abc
import
abstractmethod
,
ABC
from
os
import
path
from
os
import
path
,
listdir
import
gradio
as
gr
import
gradio
as
gr
...
@@ -113,13 +113,7 @@ class InterfaceWithExamples(BaseInterface):
...
@@ -113,13 +113,7 @@ class InterfaceWithExamples(BaseInterface):
self
.
_set_examples_list
()
self
.
_set_examples_list
()
def
_set_examples_list
(
self
):
def
_set_examples_list
(
self
):
examples
=
[
valid_sufixes
=
(
"
.tif
"
,
"
.tiff
"
,
"
.h5
"
,
"
.nii
"
,
"
.gz
"
,
"
.dcm
"
,
"
.DCM
"
,
"
.vol
"
,
"
.vgi
"
,
"
.txrm
"
,
"
.txm
"
,
"
.xrm
"
)
"
fly_150x256x256.tif
"
,
examples_folder
=
path
.
join
(
self
.
qim_dir
,
'
examples
'
)
"
cement_128x128x128.tif
"
,
self
.
img_examples
=
[
path
.
join
(
examples_folder
,
example
)
for
example
in
listdir
(
examples_folder
)
if
example
.
endswith
(
valid_sufixes
)]
"
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
)])
This diff is collapsed.
Click to expand it.
qim3d/gui/local_thickness.py
+
1
−
1
View file @
99ba3e55
...
@@ -85,7 +85,7 @@ class Interface(InterfaceWithExamples):
...
@@ -85,7 +85,7 @@ class Interface(InterfaceWithExamples):
def
define_interface
(
self
):
def
define_interface
(
self
):
gr
.
Markdown
(
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
():
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