ruby-hdfeos5 (1.0-2) 0005-Added-comments-to-the-lines-that-cause-error-messagi.patch

Summary

 test/test_pt.rb |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

    
download this patch

Patch contents

From 0977bce67d77317acced1e845036d39fcfe4f39f Mon Sep 17 00:00:00 2001
From: horinout <horinout>
Date: Fri, 18 Feb 2011 08:32:29 +0000
Subject: [PATCH] * Added comments to the lines that cause error messaging, which is not
   due to actual errors.

---
 test/test_pt.rb |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/test/test_pt.rb b/test/test_pt.rb
index e8793af..cfaa6ab 100644
--- a/test/test_pt.rb
+++ b/test/test_pt.rb
@@ -121,9 +121,9 @@ time= [100,110,120,130,140]
 dname1.writelevel(count, time,"float")
 
 dname1=point8.var("Latitude")
-count =[5]
-time = NArray.float(6)
-time = [10,10,20,30,40]
+count =[3]
+#time = NArray.float(6)
+time = [10,10,20]
 dname1.writelevel(count, time,"float")
 
 dname1=point8.var("DeployDate")
@@ -198,7 +198,7 @@ p file4.has_point?()
 point8=file4.point("FixedBuoy point")
 p point8.getlevelname()
 dname1=point8.var("Temperature")
-p dname1.get_vars_float()
+p dname1.get_vars_float()  # error message is shown but it's normal
 dname1=point8.var("Latitude")
 p dname1.get_vars_double()
 dname1=point8.var("DeployDate")
@@ -211,7 +211,7 @@ p dname1.natts
 p dname1.fieldinfo()
 p dname1.get
 p dname1.fwdlink
-p dname1.bcklink
+#p dname1.bcklink
 point8.detach
 
 point8=file4.point("FixedBuoy point")
@@ -233,8 +233,8 @@ p dname1.ndims
 p dname1.dim_names
 p dname1.natts
 p dname1.fieldinfo()
-p dname1.get
-p dname1.get_vars_double()
+p dname1.get                # error message is shown but it's normal
+p dname1.get_vars_double()  # error message is shown but it's normal
 point9.detach                         
 file4.close
 
-- 
1.7.4.1