Update sample_app.py
This commit is contained in:
parent
faf4d77fec
commit
1e7014b9a5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user