File size: 2,188 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  "id": "single-software-execution--cli--eagle--task-06--ubuntu",
  "snapshot": "eagle-7.7.0",
  "instruction": "The file `/home/user/Desktop/legacy.sch` is the schematic to update. On Linux, launch CadSoft EAGLE with `/opt/eagle-7.7.0/bin/eagle` (adjust to your install).\n\nIt contains a single TO-220 LM7805 linear regulator (U1) wired between VIN and VOUT nets with two decoupling caps (C1=100n on VIN, C2=10u on VOUT) and GND return. Replace U1 with a pin-compatible AMS1117-5.0 in SOT-223. Save the result as `/home/user/Desktop/replaced.sch`. Requirements: 1. File parses as EAGLE XML. 2. NO <part> references LM7805 / 7805 anywhere in its deviceset / device / value attributes (the old regulator is fully gone). 3. At least one <part> references AMS1117 (e.g. Deviceset \"AMS1117-5.0\"). 4. The AMS1117 deviceset's <connects> map the regulator's input pin to pad 3, output pin to pad 2, and GND pin to pad 1 (pad \"1 4\" including the SOT-223 tab is also accepted). 5. C1 and C2 (the two decoupling caps) are still present. 6. Nets VIN, GND, VOUT are still present.",
  "source": "https://hackaday.com/2013/03/21/assigning-new-packages-to-eagle-pcb-components/",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-06/init_file/legacy.sch",
            "path": "/home/user/Desktop/legacy.sch"
          }
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "eagle"
  ],
  "artifact_paths": [
    "/home/user/Desktop/replaced.sch"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-06/eval.py",
              "path": "/home/user/Desktop/eval.py"
            }
          ]
        }
      }
    ],
    "func": "exact_match",
    "result": {
      "type": "vm_command_line",
      "command": "python3 /home/user/Desktop/eval.py",
      "shell": "true"
    },
    "expected": {
      "type": "rule",
      "rules": {
        "expected": "True\n"
      }
    }
  },
  "proxy": false,
  "fixed_ip": false,
  "possibility_of_env_change": "low"
}