Based on the example on the help page, I shouldn't be getting this error. The example is:
class MyFactor(CustomFactor):
def compute(self, today, asset_ids, out, values):
out[:] = do_something_with_values(values)
def initialize(context):
p = attach_pipeline(Pipeline(), 'my_pipeline')
my_factor = MyFactor(inputs=[USEquityPricing.close], window_length=5)
p.add(my_factor, 'my_factor')
Does out
always need to be an array of length N, where N is the number of assets? Or can it be multi-dimensional? If it can be multi-dimensional, how can I modify my code so that it runs?