Skip to content

Commit

Permalink
backwards compatible check
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Dec 20, 2024
1 parent 36abd0a commit f9d39b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tfs/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def write_tfs(
data_frame.columns = data_frame.columns.astype(str)

# Only perform validation if asked (validation is OFF by default)
if validate is not None: # validation function checks for valid values
# We also check for False as it was the way to skip it in tfs-pandas 3.x
if validate is not None and validate is not False: # validation function will check for valid values
validate_frame(
data_frame,
info_str=f"to be written in {tfs_file_path.absolute()}",
Expand Down

0 comments on commit f9d39b6

Please sign in to comment.