Skip to content

Commit

Permalink
reverted parsing edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardonpa committed May 8, 2024
1 parent 7daf1c5 commit e3b2982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mhdb/core/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def one2many(data:list):
# Get phase > Update constituents
for phase in data['phases']:
if phase_species.split(',')[0] == phase.split()[1].split(':')[0]:
data_collection[i]['phases'].append(f"{phase.split('!')[0]}! CONSTITUENT {phase_species.split(',')[0]} :{re.split(r'[+-]', phase_species.split(',', 1)[1])[0]}: !{phase.split('!', 2)[2] if phase.split('!')[2] else ''}")
data_collection[i]['phases'].append(f"{phase.split('!')[0]}! CONSTITUENT {phase_species.split(',')[0]} :{phase_species.split(',', 1)[1]}: !{phase.split('!', 2)[2] if phase.split('!')[2] else ''}")

# Get species > Get elements
phase_elements = []
Expand Down

0 comments on commit e3b2982

Please sign in to comment.