Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
graintracking
DCT
Commits
474a52e7
Commit
474a52e7
authored
3 years ago
by
casagran
Browse files
Options
Downloads
Patches
Plain Diff
keep 3d after zwise median
parent
36c0b04a
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Draft: Resolve "py-bkg-rm"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Python/pydct/orangecontrib/pydct/widgets/zwise_median.py
+5
-3
5 additions, 3 deletions
..._Python/pydct/orangecontrib/pydct/widgets/zwise_median.py
with
5 additions
and
3 deletions
zUtil_Python/pydct/orangecontrib/pydct/widgets/zwise_median.py
+
5
−
3
View file @
474a52e7
...
...
@@ -21,7 +21,8 @@ class ZwiseMedianThread(QThread):
def
run
(
self
):
"""
"""
self
.
data_squeezed
=
np
.
squeeze
(
np
.
median
(
self
.
data
,
axis
=
0
))
# self.data_squeezed = np.squeeze(np.median(self.data, axis=0))
self
.
data_squeezed
=
np
.
median
(
self
.
data
,
axis
=
0
,
keepdims
=
True
)
class
ZwiseMedian
(
OWWidget
):
...
...
@@ -34,7 +35,7 @@ class ZwiseMedian(OWWidget):
icon
=
"
icons/one_round.svg
"
want_main_area
=
False
resizing_enabled
=
Fals
e
resizing_enabled
=
Tru
e
class
Inputs
:
data
=
Input
(
"
data
"
,
ndarray
)
...
...
@@ -45,6 +46,7 @@ class ZwiseMedian(OWWidget):
def
__init__
(
self
):
super
().
__init__
()
self
.
_computing
=
False
self
.
information
(
"
waiting for data
"
)
@Inputs.data
def
set_data
(
self
,
dataset
):
...
...
@@ -65,7 +67,7 @@ class ZwiseMedian(OWWidget):
def
_send_signal
(
self
):
self
.
_thread
.
finished
.
disconnect
(
self
.
_send_signal
)
self
.
_computing
=
False
self
.
information
()
self
.
information
(
"
done
"
)
_logger
.
info
(
"
done computing zwise median
"
)
if
self
.
_thread
.
data_squeezed
is
not
None
:
...
...
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