forked from KDSource/mcpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hook for converting ASCII SSV files to MCPL
Add ASCII-SSV format compatibility. This includes a mcpl2ssv hook, which redirects to mcpltool --text, and a ssv2mcpl hook, with the inverse functionality. Also add save2ascii and apend2ascii functions in Python API, which allow saving a particle list with numpy array format into an ASCII-SSV file, which then can be converted to MCPL format. This adds an indirect way of writing MCPL files from Python (github issue mctools#54).
- Loading branch information
1 parent
69303bd
commit 42beb8d
Showing
13 changed files
with
891 additions
and
188 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,14 @@ | ||
#include "ssvmcpl.h" | ||
|
||
///////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// ssv2mcpl : a simple command line utility for converting SSV text files to // | ||
// MCPL. // | ||
// // | ||
// Written 2021, [email protected] (Instituto Balseiro). // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////// | ||
|
||
int main(int argc,char** argv) { | ||
return mcpl2ssv_app(argc,argv); | ||
} |
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,14 @@ | ||
#include "ssvmcpl.h" | ||
|
||
///////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// ssv2mcpl : a simple command line utility for converting SSV text files to // | ||
// MCPL. // | ||
// // | ||
// Written 2021, [email protected] (Instituto Balseiro). // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////// | ||
|
||
int main(int argc,char** argv) { | ||
return ssv2mcpl_app(argc,argv); | ||
} |
Oops, something went wrong.