Skip to content

Commit

Permalink
Merge pull request #82 from vanderhe/collectwavecoeffDescr
Browse files Browse the repository at this point in the history
Fix description of collectwavecoeffs
  • Loading branch information
vanderhe authored May 3, 2024
2 parents 6996148 + 00f44d6 commit 90a31e0
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions sktools/src/sktools/scripts/collectwavecoeffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@


import os
import argparse

import sktools.common as sc
from sktools.skgen import compression
from sktools.scripts.skgen import get_parser_and_subparser_container, \
get_onecnt_common_parser, setup_parser_wavecomp, \
from sktools.scripts.skgen import get_onecnt_common_parser, \
setup_parser_wavecomp, \
parse_command_line_and_run_subcommand, \
convert_argument_to_elements, merge_skdefs
from sktools import PACKAGE_VERSION
Expand All @@ -20,7 +21,7 @@

SCRIPTNAME = sc.get_script_name()

USAGE = USAGE = \
USAGE = \
'''Collects coefficient information for Waveplot. It iterates over the
elements defined in skdef.hsd and collects the wavefunction coefficients
and other information necessary for Waveplot. The homonuclear SK-files as
Expand Down Expand Up @@ -150,6 +151,19 @@ def setup_parser_main(parser):
help='Logging level (default: info)')


def get_parser_and_subparser_container():
'''Instantiates parser and subparser for the collectwavecoeffs script.
Returns:
parser (ArgumentParser): parser instance
subparser (ArgumentParser): subparser instance
'''
parser = argparse.ArgumentParser(description=USAGE)
subparsers = parser.add_subparsers(
title='available subcommands', help='')
return parser, subparsers


def setup_logger(loglevel):
global logger
logger = sc.get_script_logger(loglevel, SCRIPTNAME)
Expand Down

0 comments on commit 90a31e0

Please sign in to comment.