[WIP] Adding Support for Command Line Interface #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear Maintainer,
This pull request introduces a Command Line Interface (CLI) for the nonrad repository, enhancing the usability and accessibility of the tool. The CLI is built using the click library, providing a structured and user-friendly way to interact with the functionalities of nonrad.
Key Features
CLI Group: Added a CLI group
nonrad
to serve as the entry point for various commands.Commands
nonrad is the main command.
Subcommands
prep_ccd: Implemented the
prep_ccd
command which accepts three arguments:pes: Extracts the Potential Energy Surface (PES) related data and plots it. It accepts following arguements:
pes.png
.Changes Made
cli.py
file to define the CLI commands.pyproject.toml
to include the CLI entry point.nonrad
CLI group andpccd
command.Usage
nonrad prep_ccd <ground_path> <excited_path> <cc_dir> -d -0.5 0.5 9
nonrad pes -p -n pes.pdf CC_DIR GROUND_FILES EXCITED_FILES
TODO
I will be adding the above as soon as possible.
Please give your suggestion for improvement.