Compare commits

..

2 Commits

2 changed files with 12 additions and 11 deletions

View File

@ -2,4 +2,6 @@ channels:
- conda-forge - conda-forge
- defaults - defaults
dependencies: dependencies:
- python - python >=3.11
- numpy
- matplotlib

View File

@ -5,7 +5,8 @@
# Sample function created for demonstration of creating custom applications functionality # Sample function created for demonstration of creating custom applications functionality
# See also https://docs.cyfronet.pl/display/ISDOC/Creating+Custom+Applications # See also https://docs.cyfronet.pl/display/ISDOC/Creating+Custom+Applications
#import numpy as np import numpy as np
import matplotlib.pyplot as plt
def main(numbers_file, multiplier): def main(numbers_file, multiplier):
""" """
@ -19,12 +20,10 @@ def main(numbers_file, multiplier):
numbers. numbers.
""" """
#numbers = np.genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False) numbers = np.genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False)
#numbers = numbers[~np.isnan(numbers)] numbers = numbers[~np.isnan(numbers)]
#numbers = np.array(numbers).flatten() numbers = np.array(numbers).flatten()
#multiplied_numbers = numbers * multiplier multiplied_numbers = numbers * multiplier
plt.figure()
f=open("multiplied_numbers_plot.png","w+") plt.plot(multiplied_numbers)
f.write(text) plt.savefig('multiplied_numbers_plot.png')
f.write("\n")
f.close()