[WIP] Adding Support for Command Line Interface#6
Conversation
|
Hi @Shibu778, thanks for working on this. I see that this is a work in progress, so let me know when you are ready for me to look it over. Please make sure there are unit tests for all the functionality that you're adding and that the docstrings adhere to numpy-style formatting. |
|
Dear @mturiansky, This pull request introduces a comprehensive Command Line Interface (CLI) for the Following your feedback, I have completed the implementation of all CLI utilities, formatted all docstrings to adhere strictly to numpy-style guidelines, and added a comprehensive suite of unit tests. Key Features & Subcommands
Changes Made
Verification and Testing
Usage ExamplesPreparing CCD folders: nonrad prep-ccd ground_dir/ excited_dir/ ccd_output/ -d -0.5 0.5 9 -f INCAR,POTCAREvaluating capture coefficient over a temperature range: nonrad capture --dq 1.6858 --de 1.0 --wi 0.03 --wf 0.03 --wif 0.094 --volume 1000.0 --temperature-range 100 500 5The pull request is now fully complete and ready for your review. Please let me know if you have any suggestions or further feedback! |
|
Thanks for your continued work on this. I'll try to look over it soon. |
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
nonradto serve as the entry point for various commands.Commands
nonrad is the main command.
Subcommands
prep_ccd: Implemented the
prep_ccdcommand 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.pyfile to define the CLI commands.pyproject.tomlto include the CLI entry point.nonradCLI group andpccdcommand.Usage
nonrad prep_ccd <ground_path> <excited_path> <cc_dir> -d -0.5 0.5 9nonrad pes -p -n pes.pdf CC_DIR GROUND_FILES EXCITED_FILESTODO
I will be adding the above as soon as possible.
Please give your suggestion for improvement.