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 18:09:11 UTC

[airavata-django-portal] branch master updated: Gateways19 tutorial: updating code snippets to match

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 ce2f6b7  Gateways19 tutorial: updating code snippets to match
ce2f6b7 is described below

commit ce2f6b714b6a5ea227535793a4ac203d0a768d5f
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri Sep 20 14:09:01 2019 -0400

    Gateways19 tutorial: updating code snippets to match
---
 docs/tutorial/gateways2019_tutorial.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/tutorial/gateways2019_tutorial.md b/docs/tutorial/gateways2019_tutorial.md
index bc5d3f0..49d394b 100644
--- a/docs/tutorial/gateways2019_tutorial.md
+++ b/docs/tutorial/gateways2019_tutorial.md
@@ -434,7 +434,8 @@ class GaussianEigenvaluesViewProvider:
 ```python
     def generate_data(self, request, experiment_output, experiment, output_file=None):
         # Parse output_file
-        gaussian = ccopen(output_file)
+        output_text = io.TextIOWrapper(output_file)
+        gaussian = ccopen(output_text)
         data = gaussian.parse()
         data.listify()
         homo_eigenvalues = None
@@ -518,7 +519,8 @@ class GaussianEigenvaluesViewProvider:
     def generate_data(self, request, experiment_output, experiment, output_file=None):
 
         # Parse output_file
-        gaussian = ccopen(output_file)
+        output_text = io.TextIOWrapper(output_file)
+        gaussian = ccopen(output_text)
         data = gaussian.parse()
         data.listify()
         homo_eigenvalues = None