Compare commits
2 Commits
errorSearc
...
master
Author | SHA1 | Date | |
---|---|---|---|
f0fde99985 | |||
b2e8a52de4 |
@ -2,4 +2,6 @@ channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
dependencies:
|
||||
- python
|
||||
- python >=3.11
|
||||
- numpy
|
||||
- matplotlib
|
@ -5,7 +5,8 @@
|
||||
# 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
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
def main(numbers_file, multiplier):
|
||||
"""
|
||||
@ -19,12 +20,10 @@ 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()
|
||||
#multiplied_numbers = numbers * multiplier
|
||||
|
||||
f=open("multiplied_numbers_plot.png","w+")
|
||||
f.write(text)
|
||||
f.write("\n")
|
||||
f.close()
|
||||
numbers = np.genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False)
|
||||
numbers = numbers[~np.isnan(numbers)]
|
||||
numbers = np.array(numbers).flatten()
|
||||
multiplied_numbers = numbers * multiplier
|
||||
plt.figure()
|
||||
plt.plot(multiplied_numbers)
|
||||
plt.savefig('multiplied_numbers_plot.png')
|
Loading…
Reference in New Issue
Block a user