Skip to content

Commit

Permalink
change np.NaN to np.nan
Browse files Browse the repository at this point in the history
Testing this threw an error using numpy 2.0, which says np.NaN has been replaced by np.nan
  • Loading branch information
ioalexei authored Oct 2, 2024
1 parent a51433d commit a216e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assign_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main(
log.info(gdf.head())
log.info(
"Are There Duplicates? {}",
gdf[gdf["image_id"] is not None and gdf["image_id"] != np.NaN]["image_id"]
gdf[gdf["image_id"] is not None and gdf["image_id"] != np.nan]["image_id"]
.duplicated()
.any(),
)
Expand Down

0 comments on commit a216e30

Please sign in to comment.