Skip to content

Commit

Permalink
Refs #5146 Writing filechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
jmborr committed May 10, 2012
1 parent da93be5 commit 542a4de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadSassena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ bool LoadSassena::quickFileCheck(const std::string& filePath,size_t nread, const

// If not then let's see if it is a HDF file by checking for the magic cookie
if ( nread >= sizeof(int32_t) && (ntohl(header.four_bytes) == g_hdf_cookie) ) return true;

return false;
}

Expand All @@ -54,7 +55,16 @@ bool LoadSassena::quickFileCheck(const std::string& filePath,size_t nread, const
*/
int LoadSassena::fileCheck(const std::string &filePath)
{
int confidence(50);
int confidence(0);
H5::H5File file( filePath, H5::H5F_ACC_RDONLY );

/*
* const H5std_string FILE_NAME( "SDS.h5" );
const H5std_string DATASET_NAME( "IntArray" );
H5File file( FILE_NAME, H5F_ACC_RDONLY );
DataSet dataset = file.openDataSet( DATASET_NAME );
*/
return confidence;
}

Expand Down

0 comments on commit 542a4de

Please sign in to comment.