Class Recording
- Namespace
- DotFly
- Assembly
- DotFly.Engine.dll
A parsed .dfs recording.
public sealed class Recording
- Inheritance
-
Recording
- Inherited Members
Properties
Header
Header.
public required RecordingHeader Header { get; init; }
Property Value
Injections
Injections.
public required IReadOnlyList<RecordedInjection> Injections { get; init; }
Property Value
Inputs
Input writes.
public required IReadOnlyList<RecordedInput> Inputs { get; init; }
Property Value
Outputs
Output frames.
public required IReadOnlyList<RecordedOutput> Outputs { get; init; }
Property Value
Ports
Port definitions.
public required IReadOnlyList<RecordedPort> Ports { get; init; }
Property Value
Resets
Steps at which the simulation was reset/restored (the restored step).
public required IReadOnlyList<long> Resets { get; init; }
Property Value
Spikes
All spikes as (step, neuron), in order.
public required IReadOnlyList<(long Step, int Neuron)> Spikes { get; init; }
Property Value
- IReadOnlyList<(long Step, int Neuron)>
Methods
Read(string)
Reads a .dfs file.
public static Recording Read(string path)
Parameters
pathstring
Returns
Replay(Simulation)
Re-applies the recorded input writes and injections to sim at their
recorded steps (relative to the simulation's current step being the recording's start step).
Ports are matched by id and must have been created in the same order with the same sets.
public void Replay(Simulation sim)
Parameters
simSimulation
WriteFramesCsv(string, int)
Writes the output frames of one port as CSV: one row per frame, columns
frame,step,neural_ms,v0..vK-1. Feature vectors for training readout adapters.
public void WriteFramesCsv(string path, int port)
Parameters
WriteSpikesCsv(string)
Writes the spikes as CSV (step,neuron).
public void WriteSpikesCsv(string path)
Parameters
pathstring