nimare.studyset.PerAnalysis

class PerAnalysis(field: str, reduce: str = 'mean', name: str = 'per_analysis')[source]

Bases: object

One number per analysis, from metadata at either level.

Methods

as_input(view, block)

Render the legacy inputs_ shape: the raw metadata values.

resolve(view)

Return the block this requirement asked for.

validity(view)

Return a boolean over the view's analyses, True where satisfiable.

values(store)

Return one number per analysis, memoised against the store.

Properties

name

reduce

field

as_input(view, block)[source]

Render the legacy inputs_ shape: the raw metadata values.

Deliberately not block. The block is the reduced numeric array, and callers of inputs_ expect what the document declared – a list of per-group sample sizes stays a list rather than becoming its mean.

resolve(view)[source]

Return the block this requirement asked for.

validity(view)[source]

Return a boolean over the view’s analyses, True where satisfiable.

values(store)[source]

Return one number per analysis, memoised against the store.