From 989d3e4ddde1aeefeb92ef33d8c02bd62ee7bdfe Mon Sep 17 00:00:00 2001 From: anaik Date: Mon, 11 Dec 2023 09:54:38 +0100 Subject: [PATCH 1/3] remove duplicated integrated arg in cli and fix typo --- lobsterpy/cli.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lobsterpy/cli.py b/lobsterpy/cli.py index 1238263f..30af0374 100644 --- a/lobsterpy/cli.py +++ b/lobsterpy/cli.py @@ -371,7 +371,8 @@ def get_parser() -> argparse.ArgumentParser: # Argument specific to COHPs / COOPs / COBIs plots coxx_plotting_args = argparse.ArgumentParser(add_help=False) coxx_plotting_args.add_argument( - "-integr--integrated", + "-integr", + "--integrated", dest="integrated", action="store_true", help="Show integrated cohp/cobi/coop plots.", @@ -646,6 +647,7 @@ def get_parser() -> argparse.ArgumentParser: structure_file, plotting_parent, advanced_plotting_args, + coxx_plotting_args, analysis_switch, ], help="Plot specific COHPs/COBIs/COOPs based on bond numbers.", @@ -656,12 +658,12 @@ def get_parser() -> argparse.ArgumentParser: type=int, help="List of bond numbers, determining COHPs/COBIs/COOPs to include in plot.", ) - plot_parser.add_argument( - "-integr", - "--integrated", - action="store_true", - help="Show integrated cohp/cobi/coop plots.", - ) + # plot_parser.add_argument( + # "-integr", + # "--integrated", + # action="store_true", + # help="Show integrated cohp/cobi/coop plots.", + # ) plot_grouping = plot_parser.add_mutually_exclusive_group() plot_grouping.add_argument( "--summed", From 07b71904cadce66072ca2303ae2f61eece77682d Mon Sep 17 00:00:00 2001 From: anaik Date: Mon, 11 Dec 2023 09:55:18 +0100 Subject: [PATCH 2/3] limit docs deployment to new releases --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1ffa939..c16a931a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,8 @@ on: workflow_dispatch: push: branches: [main] + release: + types: [ published ] # set GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions: From 2ac489ad1c8aaff764ebbde035cdbca5532ae43f Mon Sep 17 00:00:00 2001 From: anaik Date: Mon, 11 Dec 2023 10:56:13 +0100 Subject: [PATCH 3/3] remove commented lines --- lobsterpy/cli.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lobsterpy/cli.py b/lobsterpy/cli.py index 30af0374..4fda1c77 100644 --- a/lobsterpy/cli.py +++ b/lobsterpy/cli.py @@ -658,12 +658,6 @@ def get_parser() -> argparse.ArgumentParser: type=int, help="List of bond numbers, determining COHPs/COBIs/COOPs to include in plot.", ) - # plot_parser.add_argument( - # "-integr", - # "--integrated", - # action="store_true", - # help="Show integrated cohp/cobi/coop plots.", - # ) plot_grouping = plot_parser.add_mutually_exclusive_group() plot_grouping.add_argument( "--summed",