Skip to content

Commit

Permalink
fix : deprecated function moved over nft_storage method.
Browse files Browse the repository at this point in the history
  • Loading branch information
sadrasabouri committed Jul 30, 2024
1 parent 1557aa1 commit 5c146a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion samila/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion samila/genimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -179,6 +179,7 @@ def plot(
ax = rotate(fig, ax, self.rotation)
self.fig = fig

@deprecated
def nft_storage(
self,
api_key,
Expand Down

0 comments on commit 5c146a8

Please sign in to comment.