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
992bd8b6
Commit
992bd8b6
authored
Jun 16, 2018
by
Philipp Arras
Browse files
Merge branch 'add_useful_error' into even_more_fun_with_linear_operators
parents
a440afc4
72ede95a
Pipeline
#31122
passed with stages
in 1 minute and 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/library/los_response.py
View file @
992bd8b6
...
...
@@ -147,10 +147,14 @@ class LOSResponse(LinearOperator):
sigmas_up
=
np
.
zeros
(
nlos
,
dtype
=
np
.
float32
)
sigmas_low
=
np
.
array
(
sigmas_low
)
sigmas_up
=
np
.
array
(
sigmas_up
)
assert
starts
.
shape
[
0
]
==
ndim
,
"dimension mismatch"
assert
nlos
==
sigmas_low
.
shape
[
0
],
"dimension mismatch"
assert
starts
.
shape
==
ends
.
shape
,
"dimension mismatch"
assert
sigmas_low
.
shape
==
sigmas_up
.
shape
,
"dimension mismatch"
if
starts
.
shape
[
0
]
!=
ndim
:
raise
TypeError
(
"dimension mismatch"
)
if
nlos
!=
sigmas_low
.
shape
[
0
]:
raise
TypeError
(
"dimension mismatch"
)
if
starts
.
shape
!=
ends
.
shape
:
raise
TypeError
(
"dimension mismatch"
)
if
sigmas_low
.
shape
!=
sigmas_up
.
shape
:
raise
TypeError
(
"dimension mismatch"
)
self
.
_local_shape
=
dobj
.
local_shape
(
self
.
domain
[
0
].
shape
)
local_zero_point
=
(
np
.
array
(
...
...
nifty4/multi/multi_domain.py
View file @
992bd8b6
...
...
@@ -49,7 +49,7 @@ class MultiDomain(frozendict):
def
__init__
(
self
,
domain
,
_callingfrommake
=
False
):
if
not
_callingfrommake
:
raise
NotImplementedError
raise
NotImplementedError
(
'To create a MultiDomain call `MultiDomain.make()`.'
)
super
(
MultiDomain
,
self
).
__init__
(
domain
)
@
staticmethod
...
...
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