Compare commits
11 Commits
master
...
errorSearc
Author | SHA1 | Date | |
---|---|---|---|
07daf93022 | |||
942c138921 | |||
f9c3158e08 | |||
701057987c | |||
32324ea9e8 | |||
2658d4bc52 | |||
100d96b3bd | |||
4647099f1f | |||
6637abae4b | |||
38cc92efd3 | |||
7c71daf037 |
@ -1,7 +1,5 @@
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
- conda-forge
|
||||
- defaults
|
||||
dependencies:
|
||||
- python >=3.11
|
||||
- matplotlib
|
||||
- numpy
|
||||
- python
|
@ -5,8 +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
|
||||
import matplotlib.pyplot as plt
|
||||
#import numpy as np
|
||||
|
||||
def main(numbers_file, multiplier):
|
||||
"""
|
||||
@ -20,10 +19,12 @@ 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
|
||||
plt.figure()
|
||||
plt.plot(multiplied_numbers)
|
||||
plt.savefig('multiplied_numbers_plot.png')
|
||||
#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()
|
Loading…
Reference in New Issue
Block a user