Skip to content

Commit 0398229

Browse files
committed
ver 0.15.2
added get_hostname()
1 parent d80cabe commit 0398229

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

npy/ns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
import npy
1111
from .tools.bash_commands import *
1212
from .tools.short_hands import *
13-
from .utils import set_cuda, set_tf_log, task, prinfo, pprint, set_warning, Axof, Rowof, Colof
13+
from .utils import set_cuda, set_tf_log, task, prinfo, pprint, set_warning, Axof, Rowof, Colof, get_hostname
1414
from .files import ldb, svb, load_binary, save_binary, gb, lgb
1515
from .log.loggers import *

npy/utils/utils_misc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77

88
__all__ = ['set_warning', 'set_cuda', 'set_tf_log',
99
'lazy_property', 'failsafe',
10-
'sample_multivariate', 'pprint']
10+
'sample_multivariate', 'pprint', 'get_hostname']
11+
12+
13+
def get_hostname():
14+
import socket
15+
return socket.gethostname()
1116

1217

1318
def set_warning():

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.1',
13+
version='0.15.2',
1414

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

0 commit comments

Comments
 (0)