From 5c146a892edeaaa9bbbcfc66b951c26b91828847 Mon Sep 17 00:00:00 2001 From: Sadra Sabouri Date: Tue, 30 Jul 2024 00:01:27 -0700 Subject: [PATCH] fix : `deprecated` function moved over `nft_storage` method. --- samila/functions.py | 1 - samila/genimage.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samila/functions.py b/samila/functions.py index d052d817..20424306 100644 --- a/samila/functions.py +++ b/samila/functions.py @@ -542,7 +542,6 @@ def _GI_initializer(g, function1, function2): g.missed_points_number = 0 -@deprecated def nft_storage_upload(api_key, data, timeout, gateway): """ Upload file to nft.storage. diff --git a/samila/genimage.py b/samila/genimage.py index 48004dbd..47d2a2ff 100644 --- a/samila/genimage.py +++ b/samila/genimage.py @@ -10,7 +10,7 @@ from .functions import get_config, get_data, get_python_version from .functions import float_range, save_data_file, save_fig_file, save_fig_buf, save_config_file from .functions import load_data, load_config, random_equation_gen, nft_storage_upload -from .functions import set_background, rotate +from .functions import set_background, rotate, deprecated from .params import * from warnings import warn, catch_warnings, simplefilter @@ -179,6 +179,7 @@ def plot( ax = rotate(fig, ax, self.rotation) self.fig = fig + @deprecated def nft_storage( self, api_key,