File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def to_matrix(
2525
2626 Args:
2727 arr: the array to be converted
28- style: a style formatter string, either "b" for "bmatrix" or "p" for "pmatrix"
28+ style: a style formatter string, such as "b" for "bmatrix" or "p" for "pmatrix"
2929 num_format: a number formatter string, e.g. ".2f"
3030 scientific_notation: a flag to determine whether e.g. 1 x 10^3 format should
3131 be used if ".e" is used for `num_format`, otherwise e-notation (1e3)
@@ -119,7 +119,7 @@ def to_tabular(
119119 rv += [" & " .join (cols ) + r" \\" ]
120120 rv += [r"\midrule" ]
121121 rv += [line .strip () + r" \\" for line in lines ]
122- rv += [r"\endrule " ]
122+ rv += [r"\bottomrule " ]
123123 rv += [r"\end{tabular}" ]
124124
125125 return "\n " .join (rv )
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ def test_default(self) -> None:
204204\midrule
2052051 & 2 & 3 \\
2062064 & 5 & 6 \\
207- \endrule
207+ \bottomrule
208208\end{tabular}"""
209209 )
210210
@@ -222,7 +222,7 @@ def test_given_cols(self) -> None:
222222\midrule
2232231 & 2 \\
2242243 & 4 \\
225- \endrule
225+ \bottomrule
226226\end{tabular}"""
227227 )
228228
@@ -240,7 +240,7 @@ def test_given_col_align(self) -> None:
240240\midrule
2412411 & 2 \\
2422423 & 4 \\
243- \endrule
243+ \bottomrule
244244\end{tabular}"""
245245 )
246246
@@ -257,7 +257,7 @@ def test_one_dimensional(self) -> None:
257257Col 1 & Col 2 & Col 3 \\
258258\midrule
2592591 & 2 & 3 \\
260- \endrule
260+ \bottomrule
261261\end{tabular}"""
262262 )
263263
@@ -274,6 +274,6 @@ def test_0_d(self) -> None:
274274Col 1 \\
275275\midrule
2762761 \\
277- \endrule
277+ \bottomrule
278278\end{tabular}"""
279279 )
You can’t perform that action at this time.
0 commit comments