Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiecook committed Oct 30, 2024
1 parent eeec3a9 commit ef80e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions aequilibrae/paths/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ def __determine_types__(self, new_type, current_type):
self.logger.warning("Could not convert {} - {}".format(new_type, verr.__str__()))
if isinstance(new_type, int):
def_type = int
if current_type == float:
if current_type is float:
def_type = float
elif current_type == str:
elif current_type is str:
def_type = str
elif isinstance(new_type, float):
def_type = float
if current_type == str:
if current_type is str:
def_type = str
elif isinstance(new_type, str):
def_type = str
Expand Down
2 changes: 1 addition & 1 deletion aequilibrae/transit/parse_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def parse_csv(file_name: str, column_order=[]): # noqa B006
if int(data.shape.__len__()) > 0:
# handle the case of int data given as a float string
for j, (_, dtype) in enumerate(new_data_dt):
if dtype == int:
if dtype is int:
for item in data:
item[j] = item[j].split(".")[0]

Expand Down

0 comments on commit ef80e43

Please sign in to comment.