Documentation ¶
Overview ¶
This contains functions to process the JSON files for the NY philharmonic data
Index ¶
- Variables
- func Coperformance(CompMap map[string]Composer, Nprog int) ([]([]float64), []string)
- func LoadComposers(file string, MinProg int, Years string) (map[string]Composer, int, error)
- func Ncommon_Uint16(Slice1, Slice2 []uint16) (common int)
- func ProcessJSON(minprog int, yearbounds, infile, jsonfile, csvfile string) (jsonMessage, csvMessage, loadMessage string)
- func WriteComposer(CompMap map[string]Composer, filename string) error
- func WriteCoperformance(Coperf [][]float64, CompNames []string, filename string) error
- type Composer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( YearInds = loadYears() NoDataErr = errors.New("Not enough data to write file") )
Functions ¶
func Coperformance ¶
this function makes the coperformance matrix from a map of composers
func LoadComposers ¶
this function returns a map of composer names to program ids and seasons
func Ncommon_Uint16 ¶
this function returns the number of common occurrences in 2 slices of uints
func ProcessJSON ¶
func ProcessJSON(minprog int, yearbounds, infile, jsonfile, csvfile string) (jsonMessage, csvMessage, loadMessage string)
now export a function that does everything
func WriteComposer ¶
this function writes the json of Composers given a map[string]Composers
Types ¶
Click to show internal directories.
Click to hide internal directories.