You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/09/20 17:56:20 UTC
[airavata-django-portal] branch master updated: Open test file in
binary mode, consistent with how it loaded from user data store
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 4d1afae Open test file in binary mode, consistent with how it loaded from user data store
4d1afae is described below
commit 4d1afae258da8392cd82912583200de0b247dd5b
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri Sep 20 13:56:10 2019 -0400
Open test file in binary mode, consistent with how it loaded from user data store
---
django_airavata/apps/api/output_views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django_airavata/apps/api/output_views.py b/django_airavata/apps/api/output_views.py
index a2122b4..2375bd2 100644
--- a/django_airavata/apps/api/output_views.py
+++ b/django_airavata/apps/api/output_views.py
@@ -195,7 +195,7 @@ def _generate_data(request,
if data_products_helper.exists(request, data_product):
output_file = data_products_helper.open(request, data_product)
elif settings.DEBUG and test_output_file is not None:
- output_file = open(test_output_file)
+ output_file = open(test_output_file, 'rb')
# TODO: change interface to provide output_file as a path
# TODO: convert experiment and experiment_output to dict/JSON
data = output_view_provider.generate_data(