ENH: Added dynamic name functionality to record() API function.

Added the ability to pass *args before the **kwargs so that positional
arguments of the form name, value can be recorded.
This commit is contained in:
Delaney Granizo-Mackenzie
2014-06-26 16:46:23 -04:00
committed by Scott Sanderson
parent 75b415ac48
commit c3169f60cd
3 changed files with 20 additions and 3 deletions
+6
View File
@@ -98,6 +98,12 @@ class TestRecordAlgorithm(TestCase):
np.testing.assert_array_equal(output['incr'].values,
range(1, len(output) + 1))
np.testing.assert_array_equal(output['name'].values,
range(1, len(output) + 1))
np.testing.assert_array_equal(output['name2'].values,
[2] * len(output))
np.testing.assert_array_equal(output['name3'].values,
range(1, len(output) + 1))
class TestMiscellaneousAPI(TestCase):