Skip to content

credit_requests

Requests for research credits: a new grant, or more time on one.

An organization's owner or admin asks; an administrator decides. A grant request carries a plan of the analyses it is for, priced by the same function that prices a run, so the estimate and the eventual runs agree. The requester enters the amount they ask for; the administrator sees the plan, the estimate and the amount side by side.

CreditEstimate pydantic-model

Bases: BaseModel

What a plan would cost, priced as its runs would be.

Config:

  • frozen: True

Fields:

buffer_pct pydantic-field

The margin added, in percent.

computed_credits pydantic-field

The rows' total.

suggested_credits pydantic-field

computed_credits plus the margin, rounded up.

CreditEstimateRequest pydantic-model

Bases: BaseModel

A plan to price, with the buffer to add.

Fields:

buffer_pct = 10 pydantic-field

Margin added to the computed cost, in percent.

CreditEstimateRow pydantic-model

Bases: BaseModel

The cost of one row of a plan.

Config:

  • frozen: True

Fields:

credits pydantic-field

runs × credits_per_run.

credits_per_run pydantic-field

Credits one run of an average-length recording costs.

name pydantic-field

The analysis's display name.

runs pydantic-field

Runs in total: studies × runs per study.

CreditPlan pydantic-model

Bases: BaseModel

What a grant is for: studies, their length, and the analyses to run.

Config:

  • frozen: True

Fields:

average_recording_hours pydantic-field

Average recording length per study, in hours.

rows pydantic-field

The analyses to run.

studies pydantic-field

Number of studies.

CreditPlanRow pydantic-model

Bases: BaseModel

One analysis in a plan, and how often it runs on each study.

Config:

  • frozen: True

Fields:

analysis_config_id pydantic-field

The analysis configuration id.

runs_per_study pydantic-field

How many times it runs on each study, e.g. once per configuration of its parameters.

CreditRequestDecision pydantic-model

Bases: BaseModel

An administrator's decision on a request, as the organization sees it.

Config:

  • frozen: True

Fields:

amount = None pydantic-field

Credits granted; null for an extension or a decline.

expires_at = None pydantic-field

When the grant expires after the decision; null on a decline.

reason = None pydantic-field

Why a request was declined.

CreditRequestOut pydantic-model

Bases: BaseModel

A request for research credits, as its organization sees it.

Config:

  • frozen: True

Fields:

computed_credits = None pydantic-field

The plan's cost when it was submitted.

grant_id = None pydantic-field

The grant an extension is for.

plan = None pydantic-field

A grant request's plan; null for an extension.

requested_by = None pydantic-field

Who asked; null once their account is gone.

text pydantic-field

The purpose of a grant, or the reason for an extension.

CreditRequestPage pydantic-model

Bases: BaseModel

One page of requests, newest first.

Config:

  • frozen: True

Fields:

ExtensionRequestCreate pydantic-model

Bases: BaseModel

A request for more time on a grant.

Fields:

reason pydantic-field

Why more time is needed.

term_months pydantic-field

The extra time asked for, from the offered terms.

GrantRequestCreate pydantic-model

Bases: BaseModel

A request for a new research grant.

Fields:

purpose pydantic-field

What the research is, in a few sentences.

requested_credits pydantic-field

The amount asked for, which the requester chooses.

term_months pydantic-field

How long the grant should last, from the offered terms.