Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
891e4535
Commit
891e4535
authored
Apr 01, 2019
by
Tobias WEBER
Browse files
added id string
parent
f0d70c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/tascalc/cov.py
View file @
891e4535
...
@@ -267,6 +267,7 @@ def check_versions():
...
@@ -267,6 +267,7 @@ def check_versions():
# main
# main
#
#
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
print
(
"This is a covariance matrix calculator using MC events, written by T. Weber <tweber@ill.fr>, 30 May 2019.
\n
"
)
check_versions
()
check_versions
()
import
argparse
as
arg
import
argparse
as
arg
...
@@ -298,7 +299,6 @@ if __name__ == "__main__":
...
@@ -298,7 +299,6 @@ if __name__ == "__main__":
wi_idx
=
argv
.
wi
wi_idx
=
argv
.
wi
wf_idx
=
argv
.
wf
wf_idx
=
argv
.
wf
print
(
""
)
[
Q
,
E
,
w
]
=
load_events
(
infile
)
[
Q
,
E
,
w
]
=
load_events
(
infile
)
[
Qres
,
Q4
,
Qmean
]
=
calc_covar
(
Q
,
E
,
w
)
[
Qres
,
Q4
,
Qmean
]
=
calc_covar
(
Q
,
E
,
w
)
...
...
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