-
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 pull request #3 from rs-station/refactor
Refactor
- Loading branch information
Showing
17 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
Empty file.
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,38 @@ | ||
""" | ||
ABISMAL - merge serial diffraction data using neural networks and variational inference. | ||
""" | ||
|
||
import abismal.command_line.parser.io as io | ||
import abismal.command_line.parser.architecture as architecture | ||
import abismal.command_line.parser.likelihood as likelihood | ||
import abismal.command_line.parser.optimizer as optimizer | ||
import abismal.command_line.parser.phenix as phenix | ||
import abismal.command_line.parser.priors as priors | ||
import abismal.command_line.parser.ray as ray | ||
import abismal.command_line.parser.surrogate_posterior as surrogate_posterior | ||
import abismal.command_line.parser.tf as tf | ||
import abismal.command_line.parser.training as training | ||
|
||
groups = [ | ||
architecture, | ||
io, | ||
likelihood, | ||
optimizer, | ||
phenix, | ||
priors, | ||
ray, | ||
surrogate_posterior, | ||
tf, | ||
training, | ||
] | ||
|
||
from argparse import ArgumentParser | ||
parser = ArgumentParser(description=__doc__) | ||
for group in groups: | ||
g = parser.add_argument_group(group.title, group.description) | ||
for args,kwargs in group.args_and_kwargs: | ||
g.add_argument(*args, **kwargs) | ||
|
||
all = [ | ||
parser, | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
abismal/parser/priors.py → abismal/command_line/parser/priors.py
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
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