In [18]:
import ndio.remote.neurodata as neurodata
nd = neurodata()

In [20]:
TOKEN = "Aut1367"
CHANNEL = "Aut1367_stitched"

In [19]:
nd.propagate(TOKEN, CHANNEL)


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-19-3f6de543a1a1> in <module>()
----> 1 nd.propagate(TOKEN, CHANNEL)

/usr/local/lib/python2.7/site-packages/ndio/remote/neurodata.pyc in wrapped(self, *args, **kwargs)
     95                     else:
     96                         self._known_tokens.append(token)
---> 97             return f(self, *args, **kwargs)
     98         return wrapped
     99 

/usr/local/lib/python2.7/site-packages/ndio/remote/neurodata.pyc in propagate(self, token, channel)
   1226             boolean: Success
   1227         """
-> 1228         if self.get_propagate_status(token, channel) is not 0:
   1229             return
   1230         url = self.url('{}/{}/setPropagate/1/'.format(token, channel))

/usr/local/lib/python2.7/site-packages/ndio/remote/neurodata.pyc in wrapped(self, *args, **kwargs)
     95                     else:
     96                         self._known_tokens.append(token)
---> 97             return f(self, *args, **kwargs)
     98         return wrapped
     99 

/usr/local/lib/python2.7/site-packages/ndio/remote/neurodata.pyc in get_propagate_status(self, token, channel)
   1249         req = requests.get(url)
   1250         if req.status_code is not 200:
-> 1251             raise ValueError('Bad pair: {}/{}'.format(token, channel))
   1252         return req.text

ValueError: Bad pair: kasthuri11/image

In [9]:
neurodata.get_token_dataset(TOKEN)


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-f991efac54f2> in <module>()
----> 1 neurodata.get_token_dataset(TOKEN)

TypeError: unbound method get_token_dataset() must be called with neurodata instance as first argument (got str instance instead)

In [10]:
'token' = TOKEN
'channel' = CHANNEL


  File "<ipython-input-10-e372d2f17b12>", line 1
    'token' = TOKEN
SyntaxError: can't assign to literal

In [16]:
neurodata.TOKEN = "kasthuri11"
neurodata.CHANNEL = "image"

In [17]:
neurodata._check_token('TOKEN')


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-17-91a30e429ea8> in <module>()
----> 1 neurodata._check_token('TOKEN')

TypeError: unbound method _check_token() must be called with neurodata instance as first argument (got str instance instead)

In [ ]: