Skip to content

Commit

Permalink
fixed parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Al-Saffar committed Jul 15, 2024
1 parent 39ecdf4 commit e3b6261
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 129 deletions.
2 changes: 1 addition & 1 deletion myresources/crocodile/file_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def read(path: PLike, **kwargs: Any) -> Any:
if suffix in ('eps', 'jpg', 'jpeg', 'pdf', 'pgf', 'png', 'ps', 'raw', 'rgba', 'svg', 'svgz', 'tif', 'tiff'):
import matplotlib.pyplot as pyplot
return pyplot.imread(path, **kwargs) # from: plt.gcf().canvas.get_supported_filetypes().keys():
if suffix == ".parquet":
if suffix == "parquet":
import pandas as pd
return pd.read_parquet(path, **kwargs)
try: raise AttributeError(f"Unknown file type. failed to recognize the suffix `{suffix}`. According to libmagic1, the file seems to be: {install_n_import('magic', 'python-magic').from_file(path)}") from err
Expand Down
Empty file removed tst/cluster/__init__.py
Empty file.
51 changes: 0 additions & 51 deletions tst/deeplearning.py

This file was deleted.

30 changes: 0 additions & 30 deletions tst/file_management.py

This file was deleted.

23 changes: 0 additions & 23 deletions tst/test_base.py

This file was deleted.

24 changes: 0 additions & 24 deletions tst/toolbox_test.py

This file was deleted.

0 comments on commit e3b6261

Please sign in to comment.