Skip to content

Commit

Permalink
move standard use case into separate function
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Apr 28, 2024
1 parent 6b5fd87 commit 855f006
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions parastell/parastell.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,14 +585,12 @@ def check_inputs(
'prevent overwriting files.'
)
logger.error(e.args[0])
raise e


def parastell():
"""Main method when run as a command line script.
"""
args = parse_args()
raise e

def full_model_mode(args):
"""Primary use case of parastell reads all the input and builds and exports
a full stellarator model."""

all_data = read_yaml_config(args.filename)

logger = log.check_init(None)
Expand Down Expand Up @@ -626,6 +624,13 @@ def parastell():
all_data['magnet_coils'],
all_data['source_mesh'],
all_data['dagmc_export'])

def parastell():
"""Main method when run as a command line script.
"""
args = parse_args()

full_model_mode(args)


if __name__ == "__main__":
Expand Down

0 comments on commit 855f006

Please sign in to comment.