Skip to content

Commit f2babee

Browse files
author
kgillette
committed
Cleaned up IGB file and fixed data ouput
1 parent 394efee commit f2babee

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Core/IEPlugin/IgbFileToMatrix_Plugin.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ MatrixHandle SCIRun::IgbFileMatrix_reader(LoggerHandle pr, const char *filename)
8484
for(int i=0; i<5; i++)
8585
{
8686
getline (myfile,line);
87-
cout << line << endl;
8887

8988
boost::split(strs,line,boost::is_any_of(":, "));
9089
size_t sz;
9190
sz=line.size();
9291

93-
std::cout << sz << std::endl;
9492

9593

9694
for(int p=0;p<sz;p++)
@@ -101,15 +99,15 @@ MatrixHandle SCIRun::IgbFileMatrix_reader(LoggerHandle pr, const char *filename)
10199
if (boost::iequals(strs[p], "x"))
102100
{
103101
x_size=atoi(strs[p+1].c_str());
104-
std::cout << "found it: " << strs[p] << "= " << strs[p+1] << '\n';
102+
105103

106104
count += 1;
107105

108106
}
109107
if (boost::iequals(strs[p], "t"))
110108
{
111109
t_size=atoi(strs[p+1].c_str());
112-
std::cout << "found it: " << strs[p] << "= " << strs[p+1] << '\n';
110+
113111

114112
count +=1;
115113

@@ -170,8 +168,8 @@ MatrixHandle SCIRun::IgbFileMatrix_reader(LoggerHandle pr, const char *filename)
170168
{
171169

172170

173-
(*result) << vec[(p*x_size)+pp];
174-
std::cout << vec[(p*x_size)+pp] << std::endl;
171+
(*result)(pp, p) = vec[(p*x_size)+pp];
172+
175173
}
176174
}
177175

0 commit comments

Comments
 (0)