예제 #1
0
 public void EventListToEvents()
 {
     Events = new Hdf5Events(EventList.Count);
     for (int i = 0; i < EventList.Count; i++)
     {
         Events.Times[i]     = EventList[i].Time;
         Events.Durations[i] = EventList[i].Duration;
         Events.Events[i]    = EventList[i].Event;
     }
 }
예제 #2
0
        public Hdf5AcquisitionFile()
        {
            Patient   = new Hdf5Patient();
            Recording = new Hdf5Recording();
            EventList = new List <Hdf5Event>();
            Events    = new Hdf5Events();

            Recording.PropertyChanged += (sender, eventArgs) =>
            {
                if (eventArgs.PropertyName == nameof(Hdf5Recording.NrOfChannels))
                {
                    Channels = new Hdf5Channel[Recording.NrOfChannels];
                }
            };
        }