Exemplo n.º 1
0
        public static void build_from_default_repo(string output_title, bool using_full_path, bool enable_console_output)
        {
            string absolute_source_path = default_source;
            string absolute_output_path = default_repo + "\\" + output_title;

            if (using_full_path)
            {
                absolute_source_path = output_title;
            }
            string[] all_absolute_names = Directory.GetFiles(absolute_source_path);
            //will need interpolation/regression code.
            DataSetInfo info = new DataSetInfo(all_absolute_names, enable_console_output);

            Directory.CreateDirectory(absolute_output_path);
            int n = 0;

            foreach (string i in all_absolute_names)
            {
                if (enable_console_output)
                {
                    Console.WriteLine("Processing " + (++n).ToString() + " of " + all_absolute_names.Length.ToString() + " files.");
                }
                File.Copy(i, absolute_output_path + "\\" + rip_file_title(i));
                File.Delete(i);
            }
            info.write_to_info_file(absolute_output_path + "\\" + info_file_tite);
        }
Exemplo n.º 2
0
 public DataSet(string title, bool using_full_path, bool enable_console_output)
 {
     absolute_set_location = default_source + "\\" + title;
     if (using_full_path)
     {
         absolute_set_location = title;
     }
     info = new DataSetInfo(Directory.GetFiles(absolute_set_location), enable_console_output);
 }
Exemplo n.º 3
0
 public void override_colormap_limits(DataSetInfo D)
 {
     use_overriden_limits = true;
     override_max         = (float)D.UniversalMax;
     override_min         = (float)D.UniversalMin;
 }