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
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
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
459a2770
Commit
459a2770
authored
Jul 02, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix division
parent
00523d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
demos/getting_started_2.py
demos/getting_started_2.py
+6
-6
No files found.
demos/getting_started_2.py
View file @
459a2770
...
@@ -6,12 +6,12 @@ def get_2D_exposure():
...
@@ -6,12 +6,12 @@ def get_2D_exposure():
x_shape
,
y_shape
=
position_space
.
shape
x_shape
,
y_shape
=
position_space
.
shape
exposure
=
np
.
ones
(
position_space
.
shape
)
exposure
=
np
.
ones
(
position_space
.
shape
)
exposure
[
x_shape
/
3
:
x_shape
/
2
,
:]
*=
2.
exposure
[
x_shape
/
/
3
:
x_shape
/
/
2
,
:]
*=
2.
exposure
[
x_shape
*
4
/
5
:
x_shape
,
:]
*=
.
1
exposure
[
x_shape
*
4
/
/
5
:
x_shape
,
:]
*=
.
1
exposure
[
x_shape
/
2
:
x_shape
*
3
/
2
,
:]
*=
3.
exposure
[
x_shape
/
/
2
:
x_shape
*
3
/
/
2
,
:]
*=
3.
exposure
[:,
x_shape
/
3
:
x_shape
/
2
]
*=
2.
exposure
[:,
x_shape
/
/
3
:
x_shape
/
/
2
]
*=
2.
exposure
[:,
x_shape
*
4
/
5
:
x_shape
]
*=
.
1
exposure
[:,
x_shape
*
4
/
/
5
:
x_shape
]
*=
.
1
exposure
[:,
x_shape
/
2
:
x_shape
*
3
/
2
]
*=
3.
exposure
[:,
x_shape
/
/
2
:
x_shape
*
3
/
/
2
]
*=
3.
exposure
=
ift
.
Field
.
from_global_data
(
position_space
,
exposure
)
exposure
=
ift
.
Field
.
from_global_data
(
position_space
,
exposure
)
return
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