Skip to content

Commit

Permalink
Merge pull request #436 from effigies/mnt/trailing_newline
Browse files Browse the repository at this point in the history
FIX: Update script to emit trailing newline, rerun
  • Loading branch information
Remi-Gau authored Apr 20, 2024
2 parents 9a4cc30 + 7aac155 commit 80937c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ DO NOT EDIT DIRECTLY.
-->



### ASL

<!--
Expand Down
4 changes: 3 additions & 1 deletion tools/print_dataset_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_tables(df: pd.DataFrame, output_file: Path) -> None:
df.fillna("n/a", inplace=True)
for table_name, table_datatypes in tables_order.items():
with output_file.open("a") as f:
f.write(f"\n\n### {table_name}\n\n")
f.write(f"\n### {table_name}\n\n")
add_warning(f)
if table_name == "qMRI":
sub_df = df[df["name"].str.contains("qmri_")]
Expand All @@ -140,6 +140,8 @@ def add_tables(df: pd.DataFrame, output_file: Path) -> None:
sub_df.sort_values(by=["name"], inplace=True)
print(sub_df)
sub_df.to_markdown(output_file, index=False, mode="a")
with output_file.open("a") as f:
f.write("\n")


def stringify_list(l):
Expand Down

0 comments on commit 80937c4

Please sign in to comment.