Skip to content

Commit

Permalink
and document the step in the docstring of validation function
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Dec 16, 2024
1 parent 005cc8c commit eec3566
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tfs/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,12 @@ def validate(
When checking for ``MAD-X`` compatibility, which is more restrictive than ``MAD-NG``,
the following additional checks are performed:
1. Checking no boolean values are in the dataframe headers.
2. Checking no complex values are in the dataframe headers.
3. Checking no boolean-dtype columns are in the dataframe.
4. Checking no complex-dtype columns are in the dataframe.
1. Checking the dataframe has headers.
2. Checking no boolean values are in the dataframe headers.
3. Checking no complex values are in the dataframe headers.
4. Checking for a 'TYPE' entry is in the dataframe headers.
5. Checking no boolean-dtype columns are in the dataframe.
6. Checking no complex-dtype columns are in the dataframe.
Args:
data_frame (TfsDataFrame | pd.DataFrame): the dataframe to check on.
Expand Down

0 comments on commit eec3566

Please sign in to comment.