Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Made small change to datagen
Browse files Browse the repository at this point in the history
  • Loading branch information
William Benoit committed Feb 23, 2024
1 parent 3f45149 commit a32a312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/sandbox/datagen/datagen/scripts/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def _intify(x: float):
"""
Converts the input float into an int if the two are equal (e.g., 4.0 == 4).
Otherwise, returns the input unchanged.
Otherwise, returns the input unchanged
"""
return int(x) if int(x) == x else x

Expand Down

0 comments on commit a32a312

Please sign in to comment.