Skip to content

Commit

Permalink
Merge pull request #2241 from martinholmer/fix-comments
Browse files Browse the repository at this point in the history
Minor updates to Calculator.read_json_parameters() staticmethod
  • Loading branch information
martinholmer authored Feb 22, 2019
2 parents 1234962 + 31e3526 commit 8dc4281
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions taxcalc/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,9 @@ def read_json_param_objects(reform, assump):
@staticmethod
def read_json_parameters(param):
"""
A convenience function for other PSL models that have only
scalar parameters that are not inflation indexed.
Read JSON param object and return one dictionary that has
the same structure as each subdictionary returned by the
Calculator.read_json_param_objects method.
Expand All @@ -1157,7 +1160,7 @@ def read_json_parameters(param):
of the Calculator.read_json_param_objects method EXCEPT FOR
ONE THING: the parameter values are NOT enclosed in [] brackets.
"""
# construct returned dictionary from specified assump
# construct returned dictionary from specified param argument
if param is None:
returned_dict = dict()
elif isinstance(param, str):
Expand All @@ -1167,7 +1170,6 @@ def read_json_parameters(param):
req = requests.get(param)
req.raise_for_status()
txt = req.text
print(txt)
else:
txt = param
# strip out //-comments without changing line numbers
Expand Down

0 comments on commit 8dc4281

Please sign in to comment.