Skip to content

Commit

Permalink
fix: loading vessel_subset with id
Browse files Browse the repository at this point in the history
  • Loading branch information
herve.le-bars committed Mar 29, 2024
1 parent fd1f1ff commit ed1294d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tasks/dimensions/load_dim_vessel_from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class LoadDimVesselFromCsv(BaseTask):
def map_to_domain(self, row: pd.Series) -> Vessel:
isna = row.isna()
return Vessel(
id=int(row['id']),
mmsi=int(row["mmsi"]) if not isna["mmsi"] else None,
ship_name=row["ship_name"],
width=None,
Expand Down

0 comments on commit ed1294d

Please sign in to comment.