-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from rs-station/stats-refactor
resolves #107
- Loading branch information
Showing
8 changed files
with
129 additions
and
87 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,48 @@ | ||
""" | ||
Compute CCpred from careless output. | ||
""" | ||
import argparse | ||
import numpy as np | ||
import reciprocalspaceship as rs | ||
import gemmi | ||
|
||
import matplotlib.pyplot as plt | ||
import seaborn as sns | ||
|
||
|
||
class BaseParser(argparse.ArgumentParser): | ||
def __init__(self, **kwargs): | ||
super().__init__( | ||
formatter_class=argparse.RawTextHelpFormatter, | ||
**kwargs | ||
) | ||
|
||
self.add_argument( | ||
"-s", | ||
"--show", | ||
action="store_true", | ||
help="Make a plot of the results and display it using matplotlib.", | ||
) | ||
|
||
self.add_argument( | ||
"-i", | ||
"--image", | ||
type=str, | ||
default=None, | ||
help="Make a plot of the results and save it to this filename. " | ||
"The filetype will be determined from the filename. " | ||
"Any filetype supported by your matplotlib version will be available.", | ||
) | ||
|
||
self.add_argument( | ||
"-o", | ||
"--output", | ||
type=str, | ||
default=None, | ||
help="Optionally save results to this file in csv format instead of printing " | ||
"them to the terminal.", | ||
) | ||
|
||
|
||
|
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.