-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move functions read_ccp4_map() and read_ccp4_mask() to the library
for consistency, it was the last implementation guarded by macros
- Loading branch information
Showing
5 changed files
with
32 additions
and
42 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2021 Global Phasing Ltd. | ||
|
||
#include "gemmi/read_map.hpp" | ||
#include "gemmi/gz.hpp" // for MaybeGzipped | ||
|
||
namespace gemmi { | ||
|
||
Ccp4<float> read_ccp4_map(const std::string& path, bool setup) { | ||
Ccp4<float> ccp4; | ||
ccp4.read_ccp4(MaybeGzipped(path)); | ||
if (setup) | ||
ccp4.setup(NAN); | ||
return ccp4; | ||
} | ||
|
||
Ccp4<int8_t> read_ccp4_mask(const std::string& path, bool setup) { | ||
Ccp4<int8_t> ccp4; | ||
ccp4.read_ccp4(MaybeGzipped(path)); | ||
if (setup) | ||
ccp4.setup(-1); | ||
return ccp4; | ||
} | ||
|
||
} // namespace gemmi |