Skip to content

Commit

Permalink
Update MolarMassCalculator.py
Browse files Browse the repository at this point in the history
Just removes a print() and adds the github link to the docstring
  • Loading branch information
LauKr committed Jul 28, 2020
1 parent d43b997 commit 3662793
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MolarMassCalculator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
"""
Yields the class molar_mass() and a function calculate() for calculating
molar masses of samples.
For further information please see https://github.com/LauKr/Molar-mass-calculator
Created on Sun Jun 28 13:31:32 2020
@author: Laurenz Kruty
Expand Down Expand Up @@ -163,7 +167,6 @@ def get_elements(self, name):
for i in range(data_var.shape[0]):
data_var.loc[i, "Molar Mass"] = float(self.database[data_var.loc[i, "Element"]])
data_var.loc[i, "Total Molar Mass"] = data_var.loc[i, "Molar Mass"] * data_var.loc[i, "Quantity"]
print(data_var)
return data_var
except ValueError as err:
print(f"I'm sorry, I couldn't translate {name} into a structural formular.")
Expand Down

0 comments on commit 3662793

Please sign in to comment.