def state(tempdir): # Save a test GUI state JSON file in the tempdir. state = Bunch() state.WaveformView0 = Bunch(overlap=False) state.TraceView0 = Bunch(scaling=1.) state.FeatureView0 = Bunch(feature_scaling=.5) state.CorrelogramView0 = Bunch(uniform_normalization=True) return state