From 1e7014b9a5fa7a6c988670e68946affa69c06bcc Mon Sep 17 00:00:00 2001 From: ymlesni Date: Fri, 29 Mar 2024 10:52:07 +0100 Subject: [PATCH] Update sample_app.py --- sample_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)