Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
459a2770
Commit
459a2770
authored
Jul 02, 2018
by
Martin Reinecke
Browse files
fix division
parent
00523d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_2.py
View file @
459a2770
...
...
@@ -6,12 +6,12 @@ def get_2D_exposure():
x_shape
,
y_shape
=
position_space
.
shape
exposure
=
np
.
ones
(
position_space
.
shape
)
exposure
[
x_shape
/
3
:
x_shape
/
2
,
:]
*=
2.
exposure
[
x_shape
*
4
/
5
:
x_shape
,
:]
*=
.
1
exposure
[
x_shape
/
2
:
x_shape
*
3
/
2
,
:]
*=
3.
exposure
[:,
x_shape
/
3
:
x_shape
/
2
]
*=
2.
exposure
[:,
x_shape
*
4
/
5
:
x_shape
]
*=
.
1
exposure
[:,
x_shape
/
2
:
x_shape
*
3
/
2
]
*=
3.
exposure
[
x_shape
/
/
3
:
x_shape
/
/
2
,
:]
*=
2.
exposure
[
x_shape
*
4
/
/
5
:
x_shape
,
:]
*=
.
1
exposure
[
x_shape
/
/
2
:
x_shape
*
3
/
/
2
,
:]
*=
3.
exposure
[:,
x_shape
/
/
3
:
x_shape
/
/
2
]
*=
2.
exposure
[:,
x_shape
*
4
/
/
5
:
x_shape
]
*=
.
1
exposure
[:,
x_shape
/
/
2
:
x_shape
*
3
/
/
2
]
*=
3.
exposure
=
ift
.
Field
.
from_global_data
(
position_space
,
exposure
)
return
exposure
...
...
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