Commit 9e402b37 by Garrett Johnson

add

parent 21c370a4
Showing with 4 additions and 4 deletions
......@@ -12,10 +12,10 @@ def create_json_file(dictionary, path_file_name):
json.dump(tract_str, json_file)
def recover_json(json_file):
with open(json_file) as json_tracts:
str_tracts = json.load(json_tracts)
dict_tracts = ast.literal_eval(str_tracts)
return dict_tracts
with open(json_file) as json_tracts:
str_tracts = json.load(json_tracts)
dict_tracts = ast.literal_eval(str_tracts)
return dict_tracts
def read_csv(path, file_name):
with open(path + file_name) as csvfile:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment