Skip to content

Commit

Permalink
v0.1.3 production
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasic2 committed Nov 19, 2022
1 parent 9c5e32f commit a501c65
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 12 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ A quick post-process for resolve or assistant the VASP calculations, which can i
- plot interface
- charge related work
- band-center calculation
- surface energy / electrostatic energy calculations
- calculation utils
- surface energy calculation
- electrostatic energy calculation
- thermo-correction

More detailed information can see [here](https://qvasp.readthedocs.io/en/latest/).

Expand Down
7 changes: 6 additions & 1 deletion auto_conda.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Directory constant
$CondaDir = "conda"
$RootDir = Get-Location
$Exclued = @("bld.bat", "build.sh", "meta.yaml")

# delete files first
Set-Location $CondaDir
Get-ChildItem -Path "." -Exclude $Exclued | Remove-Item -Force -Recurse
Set-Location $RootDir

# copy source files
Copy-Item -r extension $CondaDir
Expand All @@ -21,7 +27,6 @@ conda-build . -c conda-forge
conda activate

# delete all files
$Exclued = @("bld.bat", "build.sh", "meta.yaml")
Get-ChildItem -Path "." -Exclude $Exclued | Remove-Item -Force -Recurse

# back to RootDir
Expand Down
19 changes: 14 additions & 5 deletions auto_conda.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/usr/bin/env bash

rmfile() {
for file in *; do
if [ "$file" != "bld.bat" ] && [ "$file" != "build.sh" ] && [ "$file" != "meta.yaml" ]; then
rm -rf $file
fi
done
}

# Directory constant
CondaDir=conda
RootDir=$(pwd)

# delete files first
cd $CondaDir || return
rmfile
cd $RootDir || return

# copy source files
cp -r extension $CondaDir
cp -r gvasp $CondaDir
Expand All @@ -24,11 +37,7 @@ conda-build . -c conda-forge
conda activate

# delete all files
for file in *; do
if [ "$file" != "bld.bat" ] && [ "$file" != "build.sh" ] && [ "$file" != "meta.yaml" ]; then
rm -rf $file
fi
done
rmfile

# back to RootDir
cd "$RootDir" || exit
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: gvasp
version: 0.1.2
version: 0.1.3

source:
path: .
Expand Down
2 changes: 1 addition & 1 deletion gvasp/common/constant.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import platform
import time

Version = "0.1.2"
Version = "0.1.3"
Platform = platform.platform()
DATE = time.strftime("%Y-%m-%d", time.localtime())

Expand Down
4 changes: 2 additions & 2 deletions gvasp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def main_parser() -> argparse.ArgumentParser:

# calc parser
calc_parser = subparsers.add_parser(name="calc", help="various calculation utils")
calc_parser.add_argument("task", type=int, help="specify task-order (0-[surface energy]; 1-[electrostatic energy])")
calc_parser.add_argument("task", type=int, help="specify task-order (0-[surface energy]; 1-[electrostatic energy]; 2-[thermo-correction])")
surf_calc_group = calc_parser.add_argument_group(title='surface energy calculation')
surf_calc_group.add_argument("-c", "--crystal_dir", type=str, help='specify crystal directory')
surf_calc_group.add_argument("-s", "--slab_dir", type=str, help='specify slab directory')
Expand Down Expand Up @@ -198,7 +198,7 @@ def main(argv=None):
if "-h" in dargv: # print LOGO for '-h' option
print(f"{BOLD}{LOGO}{RESET}")

args = parser.parse_args(argv)
args = parser.parse_args(dargv)

if len(sys.argv) == 1:
print(f"{BOLD}{LOGO}{RESET}")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_export_symbols_fixed(self, ext):

setup(
name='gvasp',
version='0.1.2',
version='0.1.3',
license='GPL-3.0',
author='hui_zhou',
author_email='[email protected]',
Expand Down

0 comments on commit a501c65

Please sign in to comment.