Skip to content

Commit

Permalink
Added missing docstring for config.load
Browse files Browse the repository at this point in the history
  • Loading branch information
Serrof committed Jan 23, 2019
1 parent e01b19c commit 23b1e41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def __init__(self):
self.load("default_conf.xml")

def load(self, file):
"""Function to load configuration from input file.
"""

# get root of XML configuration file
tree = ET.parse(file)
Expand Down Expand Up @@ -155,7 +158,7 @@ def compute_complement(self):
self.const_grav["Sun_constant"] = self.const_grav["G"] * self.const_mass["mass_Sun"]

def reset(self):
"""Function to reset all parameters and constants to initially loaded values.
"""Function to reset all parameters and constants to last values loaded from file.
"""

Expand Down

0 comments on commit 23b1e41

Please sign in to comment.