aesim-tech / simba-project

Roadmap & issue tracking
7 stars 0 forks source link

Subcircuit vanishes and is replaced with a single component #373

Closed lat-kar closed 3 months ago

lat-kar commented 9 months ago

If we save a subcircuit with a name that already exists in the SIMBA library as a separate component (e.g., MOSFET, Diode, etc.) and reload the SIMBA project, the subcircuit disappears and the model corresponding to the name appears.

For example, if we name our sub-circuit "MOSFET", save and reload the project, an ideal MOSFET model will appear and to retrieve the previously saved sub-circuit, we need to rename the sub-circuit in the .jsimba file and reload the project, as shown in the video:

https://github.com/aesim-tech/simba-project/assets/129766842/3f18cae0-d62a-40d1-a45f-94690f3437c0

Potential fix: Display an error if the user tries to use a subcircuit name that already exists as separate component, to prevent the loss of more complex subcircuits.