--
You received this message because you are subscribed to the Google Groups "TVB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvb-users+...@googlegroups.com.
To post to this group, send email to tvb-...@googlegroups.com.
Visit this group at https://groups.google.com/group/tvb-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/tvb-users/dca55df3-3683-4831-9ac2-25d5e984ffb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
the problem I think, resides in the fact that the function patterns.StimuliRegion does not accept for the "temporal" parameter anything other then an "equations" structure.
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-19-5ff9fa3012dd> in <module>() 38 stimulus.configure_space() 39 time = r_[0:3000:1] ---> 40 stimulus.configure_time(time) 41 #pt = stimulus() <ipython-input-19-5ff9fa3012dd> in configure_time(self, *args, **kwds) 13 [stim.configure_space(*args, **kwds) for stim in self.stimuli] 14 def configure_time(self, *args, **kwds): ---> 15 [stim.configure_time(*args, **kwds) for stim in self.stimuli] 16 def __call__(self, *args, **kwds): 17 return np.array([stim(*args, **kwds) for stim in self.stimuli]).sum(axis=0) C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\tvb\datatypes\patterns.pyc in configure_time(self, time) 174 """ 175 self.time = time --> 176 self.temporal_pattern = self.time 177 178 C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\tvb\datatypes\patterns.pyc in _set_temporal_pattern(self, t) 162 Generate a discrete representation of the temporal pattern. 163 """ --> 164 self.temporal.pattern = t 165 self._temporal_pattern = numpy.reshape(self.temporal.pattern, (1, -1)) 166 C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\tvb\datatypes\equations.pyc in _set_pattern(self, var) 107 """ 108 --> 109 self._pattern = numexpr.evaluate(self.equation, global_dict=self.parameters) 110 111 pattern = property(fget=_get_pattern, fset=_set_pattern) C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\numexpr\necompiler.pyc in evaluate(ex, local_dict, global_dict, out, order, casting, **kwargs) 762 expr_key = (ex, tuple(sorted(context.items()))) 763 if expr_key not in _names_cache: --> 764 _names_cache[expr_key] = getExprNames(ex, context) 765 names, ex_uses_vml = _names_cache[expr_key] 766 # Get the arguments based on the names. C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\numexpr\necompiler.pyc in getExprNames(text, context) 688 689 def getExprNames(text, context): --> 690 ex = stringToExpression(text, {}, context) 691 ast = expressionToAST(ex) 692 input_order = getInputOrder(ast, None) C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\numexpr\necompiler.pyc in stringToExpression(s, types, context) 282 names.update(expressions.functions) 283 # now build the expression --> 284 ex = eval(c, names) 285 if expressions.isConstant(ex): 286 ex = expressions.ConstantNode(ex, expressions.getKind(ex)) <expr> in <module>() C:\D Drive\rTVB_vs15\TVB_Distribution\tvb_data\Lib\site-packages\numexpr\expressions.pyc in func(*args) 90 args[i] = x = ConstantNode(x) 91 if not isinstance(x, ExpressionNode): ---> 92 raise TypeError("unsupported object type: %s" % type(x)) 93 return f(*args) 94 TypeError: unsupported object type: <type 'function'>
--
You received this message because you are subscribed to the Google Groups "TVB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvb-users+...@googlegroups.com.
To post to this group, send email to tvb-...@googlegroups.com.
Visit this group at https://groups.google.com/group/tvb-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/tvb-users/cd32702f-89aa-4001-bc85-cee5d1062d5d%40googlegroups.com.