Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Andrew Friedman
/
Fairly Draw Election Districts
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9e402b37
authored
Mar 14, 2017
by
Garrett Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
21c370a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
reading_shapes/util.py
reading_shapes/util.py
View file @
9e402b37
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment