Skip to content

Commit

Permalink
add streets with number names as string
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon committed Jun 26, 2024
1 parent dc7b6c2 commit 7f5d758
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anyway/parsers/cbs/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,10 @@ def get_files(directory):
streets_map[key] = [
{
field_names.street_sign: x[field_names.street_sign],
field_names.street_name: x[field_names.street_name],
field_names.street_name: str(x[field_names.street_name]),
}
for _, x in settlement.iterrows() if isinstance(x[field_names.street_name], str)
for _, x in settlement.iterrows() if isinstance(x[field_names.street_name], str) \
or ((isinstance(x[field_names.street_name], int) or isinstance(x[field_names.street_name], float)) and x[field_names.street_name] > 0)
]

output_files_dict[name] = streets_map
Expand Down

0 comments on commit 7f5d758

Please sign in to comment.