import * as socket from '../socket' export const get_params = () => { socket.get_params() return { type: 'GET_PARAMS', } } export const set_param = (key, value) => { console.log('set param', key, value) socket.set_param(key, value) return { type: 'SET_PARAM', key, value, } } export const list_checkpoints = () => { socket.list_checkpoints() return { type: 'LOADING_CHECKPOINTS', } } export const list_epochs = (path) => { socket.list_epochs(path) return { type: 'LOADING_EPOCHS', } } export const list_sequences = () => { socket.list_sequences() return { type: 'LOADING_SEQUENCES', } } export const load_sequence = (sequence) => { socket.load_sequence(sequence) return { type: 'LOADING_SEQUENCE', } } export const load_epoch = (checkpoint, epoch) => { socket.load_epoch(checkpoint, epoch) return { type: 'LOADING_CHECKPOINT', } } export const seek = (frame) => { socket.seek(frame) return { type: 'LOADING_CHECKPOINT', } }