Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
empyre
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dieter Weber
empyre
Commits
9c6a7b23
Commit
9c6a7b23
authored
7 years ago
by
Fengshan Zheng
Browse files
Options
Downloads
Patches
Plain Diff
still problem in jac_T_dot test
parent
8e2765fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyramid/forwardmodel.py
+2
-2
2 additions, 2 deletions
pyramid/forwardmodel.py
tests/test_forwardmodel/jac_charge.npy
+0
-0
0 additions, 0 deletions
tests/test_forwardmodel/jac_charge.npy
with
2 additions
and
2 deletions
pyramid/forwardmodel.py
+
2
−
2
View file @
9c6a7b23
...
...
@@ -223,7 +223,7 @@ class ForwardModelCharge(object):
self
.
ramp
=
Ramp
(
self
.
data_set
,
self
.
ramp_order
)
self
.
n
+=
self
.
ramp
.
n
# ramp.n is 0 if ramp_order is None
# Create empty ElecData object:
self
.
elecdata
=
ScalarData
(
self
.
data_set
.
a
,
np
.
zeros
(
(
3
,)
+
self
.
data_set
.
dim
))
self
.
elecdata
=
ScalarData
(
self
.
data_set
.
a
,
np
.
zeros
(
self
.
data_set
.
dim
))
self
.
_log
.
debug
(
'
Creating
'
+
str
(
self
))
def
__repr__
(
self
):
...
...
@@ -306,7 +306,7 @@ class ForwardModelCharge(object):
the input `vector`. If necessary, transposed ramp parameters are concatenated.
"""
proj_T_result
=
np
.
zeros
(
3
*
np
.
prod
(
self
.
data_set
.
dim
))
proj_T_result
=
np
.
zeros
(
np
.
prod
(
self
.
data_set
.
dim
))
hp
=
self
.
hook_points
for
i
,
projector
in
enumerate
(
self
.
data_set
.
projectors
):
sub_vec
=
vector
[
hp
[
i
]:
hp
[
i
+
1
]]
...
...
This diff is collapsed.
Click to expand it.
tests/test_forwardmodel/jac_charge.npy
+
0
−
0
View file @
9c6a7b23
No preview for this file type
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