Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit 350da72

Browse files
author
Kamil A. Kaczmarek
authored
Dev 0.1.9 (#106)
* corrected display bug * made all steps list private * prepare for 0.1.9
1 parent 71df8b5 commit 350da72

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The short X.Y version
2727
version = '0.1'
2828
# The full version, including alpha/beta/rc tags
29-
release = '0.1.8'
29+
release = '0.1.9'
3030

3131

3232
# -- General configuration ---------------------------------------------------

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
setup(name='steppy',
1515
packages=['steppy'],
16-
version='0.1.8',
16+
version='0.1.9',
1717
description='A lightweight, open-source, Python library for fast and reproducible experimentation',
1818
long_description=long_description,
1919
url='https://github.com/minerva-ml/steppy',
20-
download_url='https://github.com/minerva-ml/steppy/archive/0.1.8.tar.gz',
20+
download_url='https://github.com/minerva-ml/steppy/archive/0.1.9.tar.gz',
2121
author='Kamil A. Kaczmarek, Jakub Czakon',
2222
author_email='kamil.kaczmarek@neptune.ml, jakub.czakon@neptune.ml',
2323
keywords=['machine-learning', 'reproducibility', 'pipeline', 'data-science'],

steppy/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'load_persisted_output': False
1919
}
2020

21-
ALL_STEPS_NAMES = list()
21+
_ALL_STEPS_NAMES = list()
2222

2323

2424
class Step:
@@ -229,7 +229,7 @@ def __init__(self,
229229

230230
self.output = None
231231
self.name = self._apply_suffix(name)
232-
ALL_STEPS_NAMES.append(self.name)
232+
_ALL_STEPS_NAMES.append(self.name)
233233

234234
self.experiment_directory = os.path.join(experiment_directory)
235235
self.experiment_directory_transformers_step = os.path.join(self.experiment_directory,
@@ -487,7 +487,7 @@ def get_step_by_name(self, name):
487487
return self.all_upstream_steps[name]
488488
except KeyError as e:
489489
msg = 'No Step with name "{}" found. ' \
490-
'You have following Steps: {}'.format(name, ALL_STEPS_NAMES)
490+
'You have following Steps: {}'.format(name, _ALL_STEPS_NAMES)
491491
raise StepError(msg) from e
492492

493493
def persist_upstream_structure(self):
@@ -670,7 +670,7 @@ def _apply_suffix(self, name):
670670
Where 'k' is int that denotes highest increment of step with the same name.
671671
"""
672672
highest_id = 0
673-
for x in ALL_STEPS_NAMES:
673+
for x in _ALL_STEPS_NAMES:
674674
if not x == name:
675675
key_id = x.split('_')[-1]
676676
key_stripped = x[:-len(key_id) - 1]

steppy/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def display_upstream_structure(structure_dict):
7777
"""
7878
graph = _create_graph(structure_dict)
7979
plt = Image(graph.create_png())
80-
display((plt,))
80+
display(plt)
8181

8282

8383
def persist_as_png(structure_dict, filepath):

0 commit comments

Comments
 (0)