Skip to content

Commit

Permalink
should be name, not label
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang authored and mjohnson541 committed Apr 7, 2023
1 parent 74d2b09 commit 0579e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmgpy/rmg/reactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,11 @@ def to_rms(obj, species_names=None, rms_species_list=None, rmg_species=None):
kLA = rms.TemperatureDependentLiquidVolumetricMassTransferCoefficient(Ts=obj.liquid_volumetric_mass_transfer_coefficient_data.Ts,kLAs=obj.liquid_volumetric_mass_transfer_coefficient_data.kLAs)
else:
kLA = rms.EmptyLiquidVolumetricMassTransferCoefficient()
return rms.Species(label=obj.label, index=obj.index, inchi="", smiles="", adjlist="", thermo=thermo, atomnums=atomnums, bondnum=bondnum, diffusion=diff, radius=rad, radicalelectrons=obj.molecule[0].multiplicity-1, molecularweight=obj.molecular_weight.value_si, henrylawconstant=kH, liquidvolumetricmasstransfercoefficient=kLA, comment=obj.thermo.comment)
return rms.Species(name=obj.label, index=obj.index, inchi="", smiles="", adjlist="", thermo=thermo, atomnums=atomnums, bondnum=bondnum, diffusion=diff, radius=rad, radicalelectrons=obj.molecule[0].multiplicity-1, molecularweight=obj.molecular_weight.value_si, henrylawconstant=kH, liquidvolumetricmasstransfercoefficient=kLA, comment=obj.thermo.comment)
else:
th = obj.get_thermo_data()
thermo = to_rms(th)
return rms.Species(label=obj.label, index=obj.index, inchi="", smiles="", adjlist="", thermo=thermo, atomnums=atomnums, bonnum=bondnum, diffusion=rms.EmptyDiffusivity(), radius=0.0, radicalelectrons=obj.molecule[0].multiplicity-1, molecularweight=0.0, henrylawconstant=rms.EmptyHenryLawConstant(), liquidvolumetricmasstransfercoefficient=rms.EmptyLiquidVolumetricMassTransferCoefficient(), comment=obj.thermo.comment)
return rms.Species(name=obj.label, index=obj.index, inchi="", smiles="", adjlist="", thermo=thermo, atomnums=atomnums, bonnum=bondnum, diffusion=rms.EmptyDiffusivity(), radius=0.0, radicalelectrons=obj.molecule[0].multiplicity-1, molecularweight=0.0, henrylawconstant=rms.EmptyHenryLawConstant(), liquidvolumetricmasstransfercoefficient=rms.EmptyLiquidVolumetricMassTransferCoefficient(), comment=obj.thermo.comment)
elif isinstance(obj, Reaction):
reactantinds = [species_names.index(spc.label) for spc in obj.reactants]
productinds = [species_names.index(spc.label) for spc in obj.products]
Expand Down

0 comments on commit 0579e03

Please sign in to comment.