private IndraFFTDataProcess RefreshFFTDataProcess() { IndraFFTDataProcess process = new IndraFFTDataProcess(globalParameters); process.inPath = FFTSrcPath.Text; process.outPath = FFTDstPath.Text; process.filePrefix = FFTFilePrefix.Text; process.fileExtension = ".dat"; process.firstSnap = Int16.Parse(FFTFirstFile.Text); process.lastSnap = Int16.Parse(FFTLastFile.Text); return process; }
/// <summary> /// Creates a new IndraFFTProcess to process the FFT files generated by Gadget /// </summary> /// <param name="gp">The global parameters</param> /// <param name="inpath">Where the FFT files are located on disk</param> /// <param name="outpath">Where the processed files should be written to before /// being bulk loaded into the database</param> /// <param name="opts">The command line options</param> /// <returns>A new IndraFFTProcess ready to be executed</returns> private static IndraFFTDataProcess RefreshIndraFFTProcess(GlobalParameters gp, string inpath, string outpath, CommandLineOptions opts) { IndraFFTDataProcess process = new IndraFFTDataProcess(gp); process.inPath = inpath; process.outPath = outpath; process.filePrefix = LoaderParamSingleton.getInstance().fftFilePrefix; process.fileExtension = LoaderParamSingleton.getInstance().fftFileExtension; process.snapnumber = opts.timestep; return process; }