EDF implementation for Golang
Go Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
.gitignore
.houseconfig
LICENSE
README.md
cwrap.go
edfReader.go
edfSave.go
edfWrite.go
makefile
rearrange.go
spec.go
useful.go

README.md

Go support for EDF+

This package provides a Go implementation of the EDF format. It reads EDF+ files into two structures:

  • A map from strings to strings, representing the main header in the EDF file.
  • A slice of slices of int16, each one representing one channel's recording.

These structures are generated by the ReadFile(string) function and stored in a struct. The header information can be accessed through the keys given by the GetSpecsList() function. This query will give the raw string contained in the EDF file to be processed. The records can be accessed through their label's index. They are stored in their raw form. They can be converted using their respective convertion factor, as given by the SetConvertionFactor() method.

Getting started

To install the EDF lib, run on terminal:

go get github.com/ishiikurisu/edf

Then import it on your code:

import "github.com/ishiikurisu/edf"
import "fmt"

func main() {
    edfFile := "your_file.edf"
    edfContents := edf.ReadFile(edfFile)
    fmt.Println(edfContents.WriteCSV())
}