Skip to content

Commit

Permalink
force the tag to be in lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Nov 3, 2024
1 parent 95ee675 commit e086219
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyxtal/optimize/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ def handler(signum, frame):
#logger.info(f"Rank-{args[-2]} after signal")

try:
logger.info(f"Rank-{args[-2]} running optimizer_par for PID {os.getpid()}")
if args[-2] > 0:
logger.info(f"Rank-{args[-2]} running optimizer_par for PID {os.getpid()}")
result = optimizer_par(*args[:-2])
logger.info(f"Rank-{args[-2]} finished optimizer_par for PID {os.getpid()}")
if args[-2] > 0:
logger.info(f"Rank-{args[-2]} finished optimizer_par for PID {os.getpid()}")
signal.alarm(0) # Disable the alarm
return result
except TimeoutError:
Expand Down Expand Up @@ -291,7 +293,7 @@ def __init__(
self.early_quit = early_quit
self.N_min_matches = 10 # The min_num_matches for early termination
self.E_max = E_max
self.tag = tag
self.tag = tag.lower()
self.suffix = f"{self.workdir:s}/{self.name:s}-{self.ff_style:s}"
if self.rank == 0:
if cif is None:
Expand Down

0 comments on commit e086219

Please sign in to comment.