Skip to content

Commit 12a96cc

Browse files
committed
ver. 0.15.9
1 parent 482516a commit 12a96cc

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

npy/ns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
from .tools.bash_commands import *
1212
from .tools.short_hands import *
1313
from .utils import set_cuda, set_tf_log, task, prinfo, pprint, set_warning, Axof, Rowof, Colof, get_hostname
14-
from .files import ldb, svb, load_binary, save_binary, gb, lgb
14+
from .files import ldb, svb, load_binary, save_binary, gb, lgb, load_json, save_json
1515
from .log.loggers import *

npy/utils/datastructure/d_of.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
from abc import ABCMeta
33
import numpy as np
44

5-
__all__ = ['d_of_l', 'd_of_f', 'd_of_i',
6-
'd_of_d_of_l', 'd_of_d_of_f',
7-
'attrdict']
5+
__all__ = [
6+
'd_of_sth', 'attrdict',
7+
'd_of_l', 'd_of_f', 'd_of_i', 'd_of_d',
8+
'd_of_d_of_l', 'd_of_d_of_f', 'd_of_d_of_d',
9+
'd_of_d_of_d_of_d', 'd_of_d_of_d_of_d_of_d',
10+
]
811

912

1013
class BetterDict(dict):
@@ -77,6 +80,13 @@ def __init__(self, *args, **kwargs):
7780
super().__init__(int, *args, **kwargs)
7881

7982

83+
class d_of_d(d_of_sth):
84+
def __init__(self, *args, **kwargs):
85+
super().__init__(defaultdict, *args, **kwargs)
86+
87+
88+
##########
89+
8090
class d_of_d_of_l(d_of_sth):
8191
def __init__(self, *args, **kwargs):
8292
super().__init__(d_of_l, *args, **kwargs)
@@ -85,3 +95,20 @@ def __init__(self, *args, **kwargs):
8595
class d_of_d_of_f(d_of_sth):
8696
def __init__(self, *args, **kwargs):
8797
super().__init__(d_of_f, *args, **kwargs)
98+
99+
100+
class d_of_d_of_d(d_of_sth):
101+
def __init__(self, *args, **kwargs):
102+
super().__init__(d_of_d, *args, **kwargs)
103+
104+
105+
########
106+
107+
class d_of_d_of_d_of_d(d_of_sth):
108+
def __init__(self, *args, **kwargs):
109+
super().__init__(d_of_d_of_d, *args, **kwargs)
110+
111+
112+
class d_of_d_of_d_of_d_of_d(d_of_sth):
113+
def __init__(self, *args, **kwargs):
114+
super().__init__(d_of_d_of_d_of_d, *args, **kwargs)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(name='nuclear-python',
1212

13-
version='0.15.8',
13+
version='0.15.9',
1414

1515
url='https://github.com/nuclearboy95/nuclear-python',
1616

0 commit comments

Comments
 (0)