Commit b371f055 authored by Hugo Buddelmeijer's avatar Hugo Buddelmeijer
Browse files

Moved from astro.main.sourcecollection.AttributeCalculator

parent 295fe1f2
def get_onthefly_dependencies_with_attributes(self, config=None, attributes=None):
Experimental functionality.
The dependency of an AttributeCalculator is a SourceCollection
that represents the same sources but with the attributes that
are required for the calculation.
The necessary attributes can only be known when the
AttributeCalculatorDefinition is known, which is currently
set by set_onthefly_attributes. Another option might be to
have the ACD itself as a dependency. The easiest way to achieve
that might be to make the ACD a 'raw'.
from astro.experimental.SourceCollection.SourceCollectionAttributesSelectedSourcesAll import SourceCollectionAttributesSelectedSourcesAll
dependencies_and_attributes = [
'attributes': tuple(self.definition.input_attribute_names),
'universe': attributes['universe'],
return dependencies_and_attributes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment