Skip to content
Snippets Groups Projects
tests.json 9.30 KiB
{
  "Edgelist_Isic_1": {
    "command": [
      "$src_dir/Trajectories/segments.py",
      "$src_dir/Trajectories/Tests/edgelist_Isic_1.csv",
      "segments.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_segments.txt"
      ]
    }
  },
  "Edgelist_Isic_2": {
    "command": [
      "$src_dir/Trajectories/segments.py",
      "$src_dir/Trajectories/Tests/edgelist_Isic_2.csv",
      "segments.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_segments.txt"
      ]
    }
  },
  "Edgelist_Isic_1_nx": {
    "description": "Same as Edgelist_Isic_1, except with networkx instead of graph-tool.",
    "command": [
      "$src_dir/Trajectories/Tests/segments_networkx.py",
      "$src_dir/Trajectories/Tests/edgelist_Isic_1.csv",
      "segments.gv"
    ]
  },
  "Edgelist_Isic_2_nx": {
    "command": [
      "$src_dir/Trajectories/Tests/segments_networkx.py",
      "$src_dir/Trajectories/Tests/edgelist_Isic_2.csv",
      "segments.gv"
    ]
  },
  "Segments": {
    "command": [
      "$src_dir/Trajectories/segments.py",
      "$tests_old_dir/EGr2nd15md4/edgelist.csv",
      "segments.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_segments.txt"
      ]
    }
  },
  "Cost_functions": {
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "--avg_fix",
      "$tests_old_dir/Extraction_eddies_region_2_noise/SHPC",
      "Anticyclones",
      "$tests_old_dir/Segments/segments.graphml",
      "segments_cost_functions.graphml",
      "--debug"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    }
  },
  "Greece_segments": {
    "description": "This is a case where the speed is not defined on a whole segment.",
    "command": [
      "$src_dir/Trajectories/segments.py",
      "$tests_old_dir/Greece_graph/edgelist.csv",
      "segments.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_segments.txt"
      ]
    }
  },
  "Greece_cost_function": {
    "description": "This is a case where the speed is not defined on a whole segment. It can be seen in the properties first_av_ros or last_av_ros.",
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "--avg_fix",
      "$tests_old_dir/Greece/SHPC",
      "Anticyclones",
      "$tests_old_dir/Greece_segments/segments.graphml",
      "segments_cost_functions.graphml",
      "--debug"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    }
  },
  "Cost_function_no_debug": {
    "description": "Like Greece_cost_function but without option --debug.",
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "--avg_fix",
      "$tests_old_dir/Greece/SHPC",
      "Anticyclones",
      "$tests_old_dir/Greece_segments/segments.graphml",
      "segments_cost_functions.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    }
  },
  "Trajectories": {
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$tests_old_dir/Cost_functions/segments_cost_functions.graphml",
      "segments_traj.graphml"
    ]
  },
  "Greece_trajectories": {
    "description": "A larger case than Trajectories.",
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$tests_old_dir/Cost_function_no_debug/segments_cost_functions.graphml",
      "segments_traj.graphml"
    ]
  },
  "Eurec4A_segments": {
    "description": "I want a larger case than Greece to test script cost_function.py.",
    "command": [
      "$src_dir/Trajectories/segments.py",
      "$my_data_dir/Eurec4A/Graph_anti/edgelist.csv",
      "segments.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_segments.txt"
      ]
    }
  },
  "Eurec4A_cost": {
    "description": "I want a larger case than Greece to test script cost_function.py.",
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "--avg_fix",
      "$my_data_dir/Eurec4A/SHPC",
      "Anticyclones",
      "$tests_old_dir/Eurec4A_segments/segments.graphml",
      "segments_cost.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    }
  },
  "Draw_segments": {
    "command": [
      "$src_dir/Trajectories/Analysis/draw_segments.py",
      "$my_data_dir/Eurec4A/Graph_anti/segments_traj.gt",
      "segments.gv"
    ]
  },
  "Plot_traj": {
    "command": [
      "$src_dir/Trajectories/Analysis/plot_traj.py",
      "$tests_old_dir/Trajectories/expanded_traj.json",
      "$tests_old_dir/Extraction_eddies_region_2_noise/SHPC",
      "--save=png",
      "--annotate"
    ]
  },
  "Plot_traj_Greece": {
    "command": [
      "$src_dir/Trajectories/Analysis/plot_traj.py",
      "$tests_old_dir/Greece_trajectories/expanded_traj.json",
      "$tests_old_dir/Greece/SHPC",
      "--save=png",
      "--annotate"
    ]
  },
  "Division_fusion": {
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$src_dir/Trajectories/Tests/segments_cost.graphml",
      "segments_traj.graphml"
    ],
    "description": "A toy case of division followed by fusion. Note this is a phantom pattern."
  },
  "Test_order_edges": {
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$src_dir/Trajectories/Tests/example_2.graphml",
      "segments_traj.graphml"
    ],
    "description": "A toy case to test the algorithm in trajectories.py, specifically to test the order in which edges are processed.",
    "sel_diff_args": {
      "exclude": [
        "timings_trajectories.txt"
      ]
    }
  },
  "Draw_component": {
    "description": "draw_segments.py from a graph containing an extracted component.",
    "command": [
      "$src_dir/Trajectories/Analysis/draw_segments.py",
      "$tests_old_dir/Extract_component/component_1980897.graphml",
      "component_1980897.gv"
    ]
  },
  "Draw_segments_no_traj": {
    "description": "draw_segments.py on a graph without the property traj.",
    "command": [
      "$src_dir/Trajectories/Analysis/draw_segments.py",
      "$tests_old_dir/Cost_function_no_debug/segments_cost_functions.graphml",
      "segments.gv"
    ]
  },
  "Traj_component": {
    "description": "Recompute trajectories on an extracted component. This is also an example where we have a splitting event immediately followed by a merging, but not a phantom pattern because the date interval is > 6.",
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$tests_old_dir/Extract_component/component_1980897.graphml",
      "segments_traj.graphml"
    ]
  },
  "Component_60148580": {
    "description": "This is a case where the test on in-degrees and out-degrees in trajectories.py is important.",
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$tests_old_dir/Extract_component_60148580/component_60148580.graphml",
      "segments_traj.graphml"
    ]
  },
  "Swapping": {
    "description": "The input file is a component extracted from Eurec4A/Graph_anti. This is a case where, in a phantom pattern, we swap the trajectories of pred[0] and pred[1].",
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$src_dir/Trajectories/Tests/Eurec4A_1993179.graphml",
      "segments_traj.graphml"
    ]
  },
  "Geodesic": {
    "description": "The input file is a component extracted from Global_1993_2023/Graph_anti. This is a rare example of a trajectory which is not a geodesic.",
    "command": [
      "$src_dir/Trajectories/trajectories.py",
      "$src_dir/Trajectories/Tests/component_69684840.graphml",
      "segments_traj.graphml"
    ]
  },
  "Cost_function_avg_date": {
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "$tests_old_dir/Extraction_eddies_region_2_noise/SHPC",
      "Anticyclones",
      "$tests_old_dir/Segments/segments.graphml",
      "segments_cost_functions.graphml",
      "--debug"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    },
    "description": "Same as test Cost_functions except without option --avg_fix."
  },
  "Greece_date": {
    "description": "Same as test Greece_cost_function except without option --avg_fix.",
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "$tests_old_dir/Greece/SHPC",
      "Anticyclones",
      "$tests_old_dir/Greece_segments/segments.graphml",
      "segments_cost_functions.graphml",
      "--debug"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    }
  },
  "Eurec4A_cost_date": {
    "description": "Same as test Eurec4A_cost except without option --avg_fix.",
    "command": [
      "$src_dir/Trajectories/cost_function.py",
      "$my_data_dir/Eurec4A/SHPC",
      "Anticyclones",
      "$tests_old_dir/Eurec4A_segments/segments.graphml",
      "segments_cost.graphml"
    ],
    "sel_diff_args": {
      "exclude": [
        "timings_cost.txt"
      ]
    }
  },
  "Create_lists": {
    "command": [
      "$src_dir/Trajectories/create_traj_lists.py",
      "$tests_old_dir/Extract_component/component_1980897.graphml"
    ]
  },
  "Plot_component_traj": {
    "description": "plot_traj.py on a component, with option --alt.",
    "command": [
      "$src_dir/Trajectories/Analysis/plot_traj.py",
      "$tests_old_dir/Create_lists/expanded_traj.json",
      "$my_data_dir/Eurec4A/SHPC",
      "--alt",
      "--save=png"
    ]
  },
  "Long_trajectories": {
    "command": "$src_dir/Trajectories/Analysis/long_trajectories.py",
    "input": "Anticyclones\n"
  }
}