-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev-sge
- Loading branch information
Showing
110 changed files
with
33,702 additions
and
1,626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
#include "util.hpp" | ||
#include <io/reader/molecule.hpp> | ||
#include <io/reader/system.hpp> | ||
#include <util/network.hpp> | ||
|
||
namespace VTX::Bench | ||
{ | ||
Core::Struct::Molecule loadMolecule( const FilePath & p_filename ) | ||
Core::Struct::System loadSystem( const FilePath & p_filename ) | ||
{ | ||
IO::Reader::Molecule reader; | ||
Core::Struct::Molecule molecule; | ||
IO::Reader::System reader; | ||
Core::Struct::System system; | ||
|
||
reader.readFile( VTX::Util::Filesystem::getExecutableDir() / "data" / p_filename, molecule ); | ||
reader.readFile( VTX::Util::Filesystem::getExecutableDir() / "data" / p_filename, system ); | ||
|
||
return molecule; | ||
return system; | ||
} | ||
|
||
Core::Struct::Molecule downloadMolecule( const std::string & p_pdb ) | ||
Core::Struct::System downloadSystem( const std::string & p_pdb ) | ||
{ | ||
IO::Reader::Molecule reader; | ||
Core::Struct::Molecule molecule; | ||
std::string data; | ||
IO::Reader::System reader; | ||
Core::Struct::System system; | ||
std::string data; | ||
|
||
VTX::Util::Network::httpRequestGet( "https://files.rcsb.org/download/" + p_pdb + ".pdb", &data ); | ||
reader.readBuffer( data, p_pdb + ".pdb", molecule ); | ||
reader.readBuffer( data, p_pdb + ".pdb", system ); | ||
|
||
return molecule; | ||
return system; | ||
} | ||
|
||
} // namespace VTX::Bench |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.