Skip to content

Commit

Permalink
fixed convert vulcan
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Jan 13, 2025
1 parent 3b24a96 commit 563a66d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions photochem/utils/_convert_vulcan.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,16 +269,17 @@ def vulcan2yaml(vulcan_rx_filename, thermo_folder):

# Condensation
particles = []
for i, line in enumerate(lines[type_ind['condensation']:]):
if len(line.strip()) == 0:
continue
elif line[0] == '#':
break
sp = line.split(']')[0].split('[')[1].split('->')[0].strip()
if sp in zahnle_condensates:
particles.append(zahnle_condensates[sp])
else:
print('Skipping condensate '+sp+' because we do not have data for it.')
if 'condensation' in type_ind:
for i, line in enumerate(lines[type_ind['condensation']:]):
if len(line.strip()) == 0:
continue
elif line[0] == '#':
break
sp = line.split(']')[0].split('[')[1].split('->')[0].strip()
if sp in zahnle_condensates:
particles.append(zahnle_condensates[sp])
else:
print('Skipping condensate '+sp+' because we do not have data for it.')

# photolysis
photolysis = []
Expand Down

0 comments on commit 563a66d

Please sign in to comment.