tscircuit/autorouting-dataset-01
This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.
- Version
- 1.0.102
- License
- unset
- Stars
- 4
scripts/random-circuits/index.ts
import { defaultConfiguration } from "scripts/random-circuits/defaultConfiguration"
import { generateRandomDataset } from "scripts/random-circuits/generateRandomDataset"
import type { GenerationContext } from "types/GenerationContext"
/**
* Script to generate a dataset of random circuits.
* Its slides the components on the board and creates random connections between them.
* It uses the default configuration to generate a set of random circuits.
*/
const main = async () => {
const context: GenerationContext = {
configuration: { ...defaultConfiguration },
}
await generateRandomDataset(context)
}
main()