Skip to content

Commit

Permalink
Fix help page of the collectwavecoeffs script
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhe committed Apr 26, 2024
1 parent c8c5f71 commit 382d696
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 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,13 @@ def setup_parser_main(parser):
help='Logging level (default: info)')


def get_parser_and_subparser_container():
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 382d696

Please sign in to comment.