Compare commits

..

1 Commits

Author SHA1 Message Date
87ca027219 Update appDefinition.json 2024-03-29 09:37:28 +01:00

View File

@ -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
import numpy as np
from numpy import loadtxt
import matplotlib.pyplot as plt
def main(numbers_file, multiplier):
@ -20,9 +20,7 @@ def main(numbers_file, multiplier):
numbers.
"""
numbers = np.genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False)
numbers = numbers[~np.isnan(numbers)]
numbers = np.array(numbers).flatten()
numbers = loadtxt(numbers_file, comments="#", delimiter=",", unpack=False)
multiplied_numbers = numbers * multiplier
plt.figure()
plt.plot(multiplied_numbers)