Skip to content

Commit

Permalink
Fix help string in reshaper. Fix rounding of weights.
Browse files Browse the repository at this point in the history
  • Loading branch information
jochym committed Sep 23, 2024
1 parent 4105f90 commit 177f887
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 191 deletions.
10 changes: 5 additions & 5 deletions 01_LAMMPS_Tutorial.ipynb

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions 01_VASP_Tutorial.ipynb

Large diffs are not rendered by default.

105 changes: 42 additions & 63 deletions 02_CLI.ipynb

Large diffs are not rendered by default.

27 changes: 9 additions & 18 deletions 05_vasp_workflow.ipynb

Large diffs are not rendered by default.

65 changes: 41 additions & 24 deletions 12_optimize.ipynb

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions 13_planner.ipynb

Large diffs are not rendered by default.

31 changes: 20 additions & 11 deletions 17_xscale.ipynb

Large diffs are not rendered by default.

66 changes: 37 additions & 29 deletions 99_mh.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hecss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.5.23"
__version__ = "0.5.25"

from .core import *

6 changes: 3 additions & 3 deletions hecss/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def calculate_xscale(supercell, scale, output, skip):
@click.command()
@click.argument('dfset', type=click.Path(exists=True))
@click.argument('T', default=-1, type=float)
@click.option('-N', '--nmul', default=4, type=int, help="Sample length multiplier")
@click.option('-p', '--prob', type=float, default=0.25, help='Probability treshold')
@click.option('-w', is_flag=True, default=True, help='Force non-zero weights')
@click.option('-N', '--nmul', default=4, type=int, help="Sample length multiplier (default: 4)")
@click.option('-p', '--prob', type=float, default=0.25, help='Probability treshold (default: 0.25)')
@click.option('-w', is_flag=True, default=True, help='Force non-zero weights for samples above probability treshold. (default: True)')
@click.option('-b', is_flag=True, default=False, help='Border samples account for the rest of domain')
@click.option('-c', '--check', type=click.Path(), default="", help='Check and skip unconverged samples in calc directory.')
@click.option('-o', '--output', type=click.Path(), default="", help='Write output to the file.')
Expand Down
2 changes: 1 addition & 1 deletion hecss/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def make_sampling(data, T, sigma_scale=1.0, border=False, probTH=0.25,
# Don't remove low probability data, rise weights above probTH
# This will deform (rise) the wings of the histogram
iw[np.logical_and(probTH<iw, iw<1)]=1
iw = np.round(iw)
iw = np.rint(iw)

# Weight the data by multiplication of data points
# The output will be in energy order!
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author = Paweł T. Jochym
author_email = [email protected]
copyright = Paweł T. Jochym
branch = devel
version = 0.5.23
version = 0.5.25
min_python = 3.7
audience = Science/Research
language = English
Expand Down

0 comments on commit 177f887

Please sign in to comment.