Skip to content

Commit

Permalink
make identifier common
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Nov 14, 2023
1 parent e3a83c1 commit 38774ac
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions calphy/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,22 +461,14 @@ def create_identifier(self):
"""
#lattice processed
prefix = self.mode
if prefix == 'melting_temperature':
ts = int(0)
ps = int(0)
l = 'tm'
ts = int(self._temperature)
if self._pressure is None:
ps = "None"
else:
ts = int(self._temperature)
if self._pressure is None:
ps = "None"
else:
ps = "%d"%(int(self._pressure))
if self._original_lattice in ["", None]:
l = self._original_lattice
l = l.split('/')
l = l[-1]
else:
l = self.lattice
ps = "%d"%(int(self._pressure))
l = self._original_lattice
l = l.split('/')
l = l[-1]

if self.folder_prefix is None:
identistring = "-".join([prefix, l.lower(), self.reference_phase, str(ts), str(ps)])
Expand Down

0 comments on commit 38774ac

Please sign in to comment.