diff --git a/sample_app.py b/sample_app.py index 93a9ac1..508f8e7 100644 --- a/sample_app.py +++ b/sample_app.py @@ -5,7 +5,7 @@ # Sample function created for demonstration of creating custom applications functionality # See also https://docs.cyfronet.pl/display/ISDOC/Creating+Custom+Applications -from numpy import loadtxt +from numpy import genfromtxt import matplotlib.pyplot as plt def main(numbers_file, multiplier): @@ -20,7 +20,7 @@ def main(numbers_file, multiplier): numbers. """ - numbers = loadtxt(numbers_file, comments="#", delimiter=",", unpack=False) + numbers = genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False) multiplied_numbers = numbers * multiplier plt.figure() plt.plot(multiplied_numbers)