We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate this:
sc.loadobj('my_old_pickle.obj', remapping={'fp_data.DHS.calobj.CalObj':fp_utils.calobj.CalObj})
e.g. via
def load(*args, **kwargs): ''' Tiny alias to sc.loadobj() to load saved calendar objects ''' import sys import types import fp_data # First, add any placeholder modules that have been subsequently removed fp_data.DHS = types.ModuleType('DHS') fp_data.DHS.calobj = types.ModuleType('calobj') sys.modules['fp_data.DHS'] = fp_data.DHS sys.modules['fp_data.DHS.calobj'] = fp_data.DHS.calobj fp_data.DHS.calobj.CalObj = CalObj cal = sc.loadobj(*args, **kwargs) assert isinstance(cal, CalObj) return cal
The text was updated successfully, but these errors were encountered:
Closed by #174
Sorry, something went wrong.
No branches or pull requests
Automate this:
e.g. via
The text was updated successfully, but these errors were encountered: