Commit 13e1d6fc authored by Tobias WEBER's avatar Tobias WEBER
Browse files

cleanups

parent eb97447e
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
import os import os
import tascalc as tas import tas
try: try:
import numpy as np import numpy as np
...@@ -370,10 +370,10 @@ def check_versions(): ...@@ -370,10 +370,10 @@ def check_versions():
# #
# main # entry point
# #
if __name__ == "__main__": def run_cov():
print("This is a covariance matrix calculator using neutron events, written by T. Weber <tweber@ill.fr>, 30 March 2019.\n") print("This is a covariance matrix calculator using neutron events,\n\twritten by T. Weber <tweber@ill.fr>, 30 March 2019.\n")
check_versions() check_versions()
try: try:
...@@ -479,3 +479,10 @@ if __name__ == "__main__": ...@@ -479,3 +479,10 @@ if __name__ == "__main__":
if options["plot_results"] or outfile!="": if options["plot_results"] or outfile!="":
plot_ellipses(outfile, Q4, w, Qmean, calcedellis) plot_ellipses(outfile, Q4, w, Qmean, calcedellis)
#
# main
#
if __name__ == "__main__":
run_cov()
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# @license see 'LICENSE' file # @license see 'LICENSE' file
# #
import tascalc as tas import tas
import numpy as np import numpy as np
import numpy.linalg as la import numpy.linalg as la
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment