Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
ec90c655ea | |||
310f27e572 | |||
cd7afd418b | |||
36453824a9 | |||
263e47d87a | |||
3f4919ffe7 | |||
aafadf4581 |
@ -1,9 +1,9 @@
|
|||||||
# PythonSampleApp
|
# PythonSampleApp
|
||||||
|
|
||||||
This application shows:
|
This application shows:
|
||||||
- basic usage of input files in Python applications
|
|
||||||
- basic usage of input files in Python applications
|
- basic usage of input files in Python applications
|
||||||
- creating and returning output file in Python application
|
- creating and returning output file in Python application
|
||||||
|
- declaring Matplotlib dependency
|
||||||
|
|
||||||
Contents of the repository:
|
Contents of the repository:
|
||||||
- [appDefinition.json](appDefinition.json) - application definition descriptor
|
- [appDefinition.json](appDefinition.json) - application definition descriptor
|
||||||
|
@ -18,6 +18,6 @@
|
|||||||
"fileName" : "multiplied_numbers_plot.png",
|
"fileName" : "multiplied_numbers_plot.png",
|
||||||
"isReturnedValue" : false
|
"isReturnedValue" : false
|
||||||
} ],
|
} ],
|
||||||
"requiredTools" : [ "python3", "python-numpy" ],
|
"requiredTools" : [ "python3", "python-numpy", "python-matplotlib" ],
|
||||||
"requiredComputationResources" : { }
|
"requiredComputationResources" : { }
|
||||||
}
|
}
|
@ -26,4 +26,4 @@ def main(numbers_file, multiplier):
|
|||||||
multiplied_numbers = numbers * multiplier
|
multiplied_numbers = numbers * multiplier
|
||||||
plt.figure()
|
plt.figure()
|
||||||
plt.plot(multiplied_numbers)
|
plt.plot(multiplied_numbers)
|
||||||
plt.savefig('multiplied_numbers_plot.png')
|
plt.savefig('multiplied_numbers_plot.png')
|
Loading…
Reference in New Issue
Block a user