Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Install ngspice
shell: powershell
run: |
curl.exe -L -o ngspice.7z "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/44.2/ngspice-44.2_64.7z"
curl.exe -L -o ngspice.7z "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45.2/ngspice-45.2_64.7z"

7z x ngspice.7z -o"C:\Program Files"

Expand Down
2 changes: 1 addition & 1 deletion engibench/problems/power_electronics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## Installation of ngSpice
### 1. Windows
Download ngSpice from https://sourceforge.net/projects/ngspice/files/ng-spice-rework/44.2/.
Download NGSpice from https://sourceforge.net/projects/ngspice/files/ng-spice-rework/45.2/.

Make sure `ngspice.exe` is located either at `C:/Program Files/Spice64/bin/ngspice.exe` or at `C:/Program Files (x86)/ngspice/bin/ngspice.exe`.

Expand Down
4 changes: 2 additions & 2 deletions engibench/problems/power_electronics/utils/ngspice.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import subprocess

MIN_SUPPORTED_VERSION: int = 42 # Major version number of ngspice
MAX_SUPPORTED_VERSION: int = 44 # Major version number of ngspice
MAX_SUPPORTED_VERSION: int = 45 # Major version number of ngspice


class NgSpice:
Expand Down Expand Up @@ -48,7 +48,7 @@ def _get_ngspice_path(self) -> str:
ngspice_path = possible_paths[0] # Default to first path if none found
if ngspice_path is None or not os.path.exists(ngspice_path):
raise FileNotFoundError(
f"ngspice.exe not found at {ngspice_path}. You can download it from https://sourceforge.net/projects/ngspice/files/ng-spice-rework/44.2/. You can also see our GitHub Actions workflow (test.yml) for how to automatically install it."
f"ngspice.exe not found at {ngspice_path}. You can download it from https://sourceforge.net/projects/ngspice/files/ng-spice-rework/45.2/. You can also see our GitHub Actions workflow (test.yml) for how to automatically install it."
)
return ngspice_path
if self.system in ["darwin", "linux"]:
Expand Down
2 changes: 1 addition & 1 deletion engibench/problems/power_electronics/v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PowerElectronics(Problem[npt.NDArray]):

## Simulator
The simulator is ngSpice circuit simulator. You can download it based on your operating system:
- Windows: [https://sourceforge.net/projects/ngspice/files/ng-spice-rework/44.2/](https://sourceforge.net/projects/ngspice/files/ng-spice-rework/44.2/)
- Windows: [https://sourceforge.net/projects/ngspice/files/ng-spice-rework/45.2/](https://sourceforge.net/projects/ngspice/files/ng-spice-rework/45.2/)
- MacOS: `brew install ngspice`
- Linux: `sudo apt-get install ngspice`

Expand Down
Loading