Compare commits

..

7 Commits

3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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" : { }
} }

View File

@ -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')