Skip to content

Commit

Permalink
Add key and from, to to the column types
Browse files Browse the repository at this point in the history
  • Loading branch information
JackWilb committed Jan 8, 2024
1 parent f2b389c commit c420cb5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions multinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def raise_for_status(r: Response):
"""A wrapper for repsonse.raise_for_status."""
"""A wrapper for response.raise_for_status."""
try:
r.raise_for_status()
except HTTPError as error:
Expand Down Expand Up @@ -86,7 +86,7 @@ def main():

for table in tables:
api_client.delete(f"tables/{table}/")

# Generate new network and table names
NODE_TABLE_NAME = f"{volume}_nodes"
EDGE_TABLE_NAME = f"{volume}_links"
Expand All @@ -108,6 +108,7 @@ def main():
"MinZ": "number",
"MaxZ": "number",
"StructureType": "category",
"_key": "primary key",
},
"quotechar": '"',
"delimiter": ',',
Expand All @@ -129,6 +130,8 @@ def main():
"Type": "category",
"Directional": "boolean",
"#ofChildren": "number",
"_from": "edge source",
"_to": "edge to",
},
"quotechar": '"',
"delimiter": ',',
Expand Down

0 comments on commit c420cb5

Please sign in to comment.