Skip to content
Snippets Groups Projects
Commit 59d460b0 authored by Timothe Jost's avatar Timothe Jost
Browse files

allow to IGNORE_VERSIONS at the package level

parent a1a64e41
No related branches found
No related tags found
No related merge requests found
Pipeline #152449 passed
__version__ = "0.0.77"
__version__ = "0.0.78"
from . import loggs
from .pipes import *
......
......@@ -6,6 +6,9 @@ import pickle, natsort, os, re, logging
import pandas as pd
IGNORE_VERSIONS = False
class PickleDiskObject(BaseDiskObject):
collection = ["preprocessing_saves"] # collection a.k.a subfolders in the session.path
extension = "pickle"
......@@ -37,6 +40,9 @@ class PickleDiskObject(BaseDiskObject):
"""
logger = logging.getLogger("pickle.version_deprecated")
if IGNORE_VERSIONS:
return False
# if we didn't found the disk version, we return False.
# it's not labeled as "deprecated" for retro-compatibility
if self.disk_version is None or self.disk_version == "":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment