Skip to content

Commit e0205ec

Browse files
authored
Update cli.py (#190)
* Update cli.py Forgot to get value from enum class * Update cli.py Handling for none type * Update cli.py Another typo smh
1 parent 69d0742 commit e0205ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wristpy/core/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
class OutputFileType(str, Enum):
1919
"""Valid output file types for saving data."""
2020

21-
csv = "csv"
22-
parquet = "parquet"
21+
csv = ".csv"
22+
parquet = ".parquet"
2323

2424

2525
class Calibrator(str, Enum):
@@ -154,7 +154,7 @@ def main(
154154
epoch_length=epoch_length,
155155
nonwear_algorithm=nonwear_algorithms, # type: ignore[arg-type] # Covered by NonwearAlgorithm Enum class
156156
verbosity=log_level,
157-
output_filetype=output_filetype, # type: ignore[arg-type] # Covered by OutputFileType Enum class
157+
output_filetype=output_filetype.value if output_filetype else None, # type: ignore[arg-type] # Covered by OutputFileType Enum class
158158
)
159159

160160

0 commit comments

Comments
 (0)