I added the function "smart_open" in io_func/init.py.
This function handles compression automatically based on the extension of the filename.
When reading a file that doesn't exist, it will search for corresponding compressed files.
I have also replaced all uses of "open" throughout the repo to "smart_open".
I added the function "smart_open" in io_func/init.py. This function handles compression automatically based on the extension of the filename. When reading a file that doesn't exist, it will search for corresponding compressed files. I have also replaced all uses of "open" throughout the repo to "smart_open".