Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
8924690e
Commit
8924690e
authored
Jul 04, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
cd7dfa8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
demos/Wiener_Filter.ipynb
demos/Wiener_Filter.ipynb
+4
-4
demos/getting_started_3.py
demos/getting_started_3.py
+5
-5
No files found.
demos/Wiener_Filter.ipynb
View file @
8924690e
...
...
@@ -430,7 +430,7 @@
"mask = ift.Field.from_global_data(s_space, mask)\n",
"\n",
"R = ift.DiagonalOperator(mask)*HT\n",
"n = n.to_global_data()\n",
"n = n.to_global_data()
.copy()
\n",
"n[l:h] = 0\n",
"n = ift.Field.from_global_data(s_space, n)\n",
"\n",
...
...
@@ -501,7 +501,7 @@
"m_data = HT(m).to_global_data()\n",
"m_var_data = m_var.to_global_data()\n",
"uncertainty = np.sqrt(m_var_data)\n",
"d_data = d.to_global_data()\n",
"d_data = d.to_global_data()
.copy()
\n",
"\n",
"# Set lost data to NaN for proper plotting\n",
"d_data[d_data == 0] = np.nan"
...
...
@@ -586,7 +586,7 @@
"mask = ift.Field.from_global_data(s_space, mask)\n",
"\n",
"R = ift.DiagonalOperator(mask)*HT\n",
"n = n.to_global_data()\n",
"n = n.to_global_data()
.copy()
\n",
"n[l:h, l:h] = 0\n",
"n = ift.Field.from_global_data(s_space, n)\n",
"curv = Curvature(R=R, N=N, Sh=Sh)\n",
...
...
@@ -731,7 +731,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.
5
"
"version": "3.6.
6
"
}
},
"nbformat": 4,
...
...
demos/getting_started_3.py
View file @
8924690e
...
...
@@ -93,12 +93,12 @@ if __name__ == '__main__':
for
sample
in
samples
:
sam
=
signal
.
at
(
sample
+
position
).
value
powers
.
append
(
A
.
at
(
sample
+
position
).
value
)
avrg
+=
sam
va
+=
sam
**
2
avrg
=
avrg
+
sam
va
=
va
+
sam
**
2
avrg
/=
len
(
samples
)
va
/=
len
(
samples
)
va
-=
avrg
**
2
avrg
=
avrg
/
len
(
samples
)
va
=
va
/
len
(
samples
)
va
=
va
-
avrg
**
2
std
=
ift
.
sqrt
(
va
)
ift
.
plot
(
avrg
,
name
=
'avrg.pdf'
)
ift
.
plot
(
std
,
name
=
'std.pdf'
)
...
...
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