Compare commits

..

4 Commits

Author SHA1 Message Date
5feb785439 Update sample_app.py 2024-03-29 11:13:59 +01:00
80d592b6ce Update sample_app.py 2024-03-29 10:57:24 +01:00
2cf466f5ec Update appDefinition.json 2024-03-29 10:52:28 +01:00
1e7014b9a5 Update sample_app.py 2024-03-29 10:52:07 +01:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# PythonSampleApp
This application shows:
- basic usage of input files in Python applications
- basic usage of input files in Python applications
- creating and returning output file in Python application
- declaring Matplotlib dependency
Contents of the repository:
- [appDefinition.json](appDefinition.json) - application definition descriptor

View File

@ -18,6 +18,6 @@
"fileName" : "multiplied_numbers_plot.png",
"isReturnedValue" : false
} ],
"requiredTools" : [ "python3", "python-matplotlib" ],
"requiredTools" : [ "python3", "python-numpy" ],
"requiredComputationResources" : { }
}

View File

@ -26,4 +26,4 @@ def main(numbers_file, multiplier):
multiplied_numbers = numbers * multiplier
plt.figure()
plt.plot(multiplied_numbers)
plt.savefig('multiplied_numbers_plot.png')
plt.savefig('multiplied_numbers_plot.png')