diff --git a/Analysis/distribution_function.py b/Analysis/distribution_function.py index c9403bb8bfe701d977b13c27946024f6cf54124e..d7278b4f6f3af67b69157a4b51d3c1816ccde645 100755 --- a/Analysis/distribution_function.py +++ b/Analysis/distribution_function.py @@ -16,7 +16,7 @@ def plot_distr_funct(x, label = None, ax = None): print("maximum value:", x[-1]) print("number of values:", nx, "\n") -def read(end_filename = ""): +def read(): """Read the three dbf files and return speed, radius and amplitude of outermost contour, radius and amplitude of maximum speed contour, as Numpy arrays. @@ -26,9 +26,9 @@ def read(end_filename = ""): """ - with shapefile.Reader("extremum" + end_filename) as extremum, \ - shapefile.Reader("outermost_contour" + end_filename) as outerm_cont, \ - shapefile.Reader("max_speed_contour" + end_filename) as max_speed_cont: + with shapefile.Reader("extremum") as extremum, \ + shapefile.Reader("outermost_contour") as outerm_cont, \ + shapefile.Reader("max_speed_contour") as max_speed_cont: speed = [] rad_outer = [] rad_speed = [] @@ -121,15 +121,7 @@ def plot_all(dict_list, label = None): label) if __name__ == "__main__": - import argparse - - parser = argparse.ArgumentParser() - parser.add_argument("-e", "--end_filename", - help = "add character string after " - "extremum, outermost_contour and max_speed_contour", - default = "") - args = parser.parse_args() - d = read(args.end_filename) + d = read() plot_all([d]) plt.show()