-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/network_bounday_node_issue
- Loading branch information
Showing
32 changed files
with
1,193 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,65 @@ concurrency: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build_solvers: | ||
# The type of runner that the job will run on | ||
runs-on: [ windows-latest, pyaedt ] | ||
strategy: | ||
matrix: | ||
python-version: [ '3.10' ] | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: 'Create virtual env' | ||
run: | | ||
Remove-Item D:\Temp\* -Recurse -Force -ErrorAction SilentlyContinue | ||
python -m venv testenv_s | ||
testenv_s\Scripts\Activate.ps1 | ||
python -m pip install pip -U | ||
python -m pip install wheel setuptools -U | ||
python -c "import sys; print(sys.executable)" | ||
- name: 'Install pyaedt' | ||
run: | | ||
testenv_s\Scripts\Activate.ps1 | ||
pip install . | ||
pip install .[tests] | ||
pip install pytest-azurepipelines | ||
Copy-Item -Path "C:\actions-runner\opengl32.dll" -Destination "testenv_s\Lib\site-packages\vtkmodules" -Force | ||
mkdir tmp | ||
cd tmp | ||
python -c "import pyaedt; print('Imported pyaedt')" | ||
# - name: "Check licences of packages" | ||
# uses: pyansys/pydpf-actions/[email protected] | ||
|
||
- name: 'Unit testing' | ||
timeout-minutes: 40 | ||
run: | | ||
testenv_s\Scripts\Activate.ps1 | ||
Set-Item -Path env:PYTHONMALLOC -Value "malloc" | ||
pytest --durations=50 -v --cov=pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml _unittest_solvers | ||
- uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
name: 'Upload coverage to Codecov' | ||
|
||
- name: Upload pytest test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pytest-results | ||
path: junit/test-results.xml | ||
# Use always() to always run this step to publish test results when there are test failures | ||
if: ${{ always() }} | ||
|
||
|
||
build: | ||
# The type of runner that the job will run on | ||
runs-on: [windows-latest, pyaedt] | ||
|
@@ -44,7 +103,7 @@ jobs: | |
|
||
- name: 'Create virtual env' | ||
run: | | ||
Remove-Item D:\Temp\* -Recurse -Force | ||
Remove-Item D:\Temp\* -Recurse -Force -ErrorAction SilentlyContinue | ||
python -m venv testenv | ||
testenv\Scripts\Activate.ps1 | ||
python -m pip install pip -U | ||
|
@@ -73,8 +132,10 @@ jobs: | |
pytest -n 6 --dist loadfile --durations=50 -v --cov=pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml _unittest | ||
- uses: codecov/codecov-action@v3 | ||
if: matrix.python-version == '3.10' | ||
name: 'Upload coverage to Codecov' | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
name: 'Upload coverage to Codecov' | ||
|
||
- name: Upload pytest test results | ||
uses: actions/upload-artifact@v3 | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(IBIS_AMI_EXAMPLE | ||
(Reserved_Parameters | ||
(AMI_Version (Usage Info) (Type String) (Value "5.1") | ||
(Description "Valid for AMI_Version 5.1 and above")) | ||
(Ignore_Bits (Usage Info)(Type Integer)(Default 4) | ||
(Description "Ignore 4 bits to fill up tapped delay line")) | ||
(Max_Init_Aggressors (Usage Info) (Type Integer)(Default 10) | ||
(Description "Number of aggressors supported by the model")) | ||
(Init_Returns_Impulse (Usage Info) (Type Boolean)(Default True) | ||
(Description "AMI_Init function returns impulse and parameters_out")) | ||
(GetWave_Exists (Usage Info)(Type Boolean)(Default True) | ||
(Description "yes, it exists")) | ||
) | End Reserved_Parameters | ||
(Model_Specific | ||
| method = 1 applies the tap weights inside AMI_Init() to the channel impulse. | ||
| method = 2 applies the tap weights inside AMI_Getwave() to the wave. | ||
| Results of both methods should be nearly identical in AMI, but not in VerifEye | ||
| because we ignore the GetWave function there! method = 1 is faster | ||
(method (Usage In)(Type Integer)(Default 1) ) | ||
(clock_threshold (Usage In)(Type Float)(Default 0.4) | ||
(Description "clock threshold for the receiver")) | ||
(ffe_weight_1 (Usage In)(Type Float)(Default 1.0)) | ||
(ffe_weight_2 (Usage In)(Type Float)(Default 0.0)) | ||
(ffe_weight_3 (Usage In)(Type Float)(Default 0.0)) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[IBIS Ver] 5.1 | ||
[Disclaimer] | ||
Example IBIS file that refers to example | ||
Algorithmic Model. This file does not | ||
contain a model for an actual physical | ||
device. | ||
[File Name] ibis_ami_example_rx.ibs | ||
| | ||
[Date] March 29, 2018 10:59:00 AM EDT | ||
[File Rev] 0.2 | ||
[Source] | ||
| | ||
[Notes] | ||
| | ||
[Component] example_device_rx | ||
| | ||
[Manufacturer] ANSYS, Inc. | ||
| | ||
[Package] | ||
R_pkg 0.01m NA NA | ||
L_pkg 0.001nH NA NA | ||
C_pkg 0.001pF NA NA | ||
| | ||
[Pin] signal_name model_name R_pin L_pin C_pin | ||
11 example_rx_P example_model_rx NA NA NA | ||
12 example_rx_N example_model_rx NA NA NA | ||
| | ||
[Diff Pin] inv_pin vdiff tdelay_typ tdelay_min tdelay_max| | ||
11 12 0.2 NA NA NA | ||
|
||
|
||
| ------------------------------------ | ||
| | ||
| model example_model_rx | ||
| | ||
[Model] example_model_rx | ||
Model_type Input | ||
C_comp 166.88f 166.88f 166.88f | ||
Vinl = .5 | ||
Vinh = .5 | ||
[Temperature Range] 85 100 0 | ||
[Voltage Range] 1. 1. 1. | ||
[Algorithmic Model] | ||
Executable Windows_Intel7_32 ibis_ami_example_w32.dll ibis_ami_example_rx.ami | ||
Executable Windows_Intel10_64 ibis_ami_example_w64.dll ibis_ami_example_rx.ami | ||
Executable Linux_Intel10_32 ibis_ami_example_l32.so ibis_ami_example_rx.ami | ||
Executable Linux_Intel10_64 ibis_ami_example_l64.so ibis_ami_example_rx.ami | ||
[End Algorithmic Model] | ||
[GND_clamp] | ||
-1 0.0 0.0 0.0 | ||
1.5 0.0 0.0 0.0 | ||
[POWER_clamp] | ||
-1 0.0 0.0 0.0 | ||
1.5 0.0 0.0 0.0 | ||
| | ||
| ------------------------------------ | ||
| | ||
| | ||
[End] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(IBIS_AMI_EXAMPLE | ||
(Reserved_Parameters | ||
(AMI_Version (Usage Info) (Type String) (Value "5.1") | ||
(Description "Valid for AMI_Version 5.1 and above")) | ||
(Ignore_Bits (Usage Info)(Type Integer)(Default 4) | ||
(Description "Ignore 4 bits to fill up tapped delay line")) | ||
(Max_Init_Aggressors (Usage Info) (Type Integer)(Default 10) | ||
(Description "Number of aggressors supported by the model")) | ||
(Init_Returns_Impulse (Usage Info) (Type Boolean)(Default True) | ||
(Description "AMI_Init function returns impulse and parameters_out")) | ||
(GetWave_Exists (Usage Info)(Type Boolean)(Default True) | ||
(Description "yes, it exists")) | ||
) | End Reserved_Parameters | ||
(Model_Specific | ||
| method = 1 applies the tap weights inside AMI_Init() to the channel impulse. | ||
| method = 2 applies the tap weights inside AMI_Getwave() to the wave. | ||
| Results of both methods should be nearly identical in AMI, but not in VerifEye | ||
| because we ignore the GetWave function there! method = 1 is faster | ||
(method (Usage In)(Type Integer)(Default 1)) | ||
(ffe_weight_1 (Usage In)(Type Float)(Default 1.0)) | ||
(ffe_weight_2 (Usage In)(Type Float)(Default 0.0)) | ||
(ffe_weight_3 (Usage In)(Type Float)(Default 0.0)) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[IBIS Ver] 5.1 | ||
[Disclaimer] | ||
Example IBIS file that refers to example | ||
Algorithmic Model. This file does not | ||
contain a model for an actual physical | ||
device. | ||
[File Name] ibis_ami_example_tx.ibs | ||
| | ||
[Date] March 29, 2018 10:59:00 AM EDT | ||
[File Rev] 0.3 | ||
[Source] | ||
| | ||
[Notes] | ||
| | ||
[Component] example_device_tx | ||
| | ||
[Manufacturer] ANSYS, Inc. | ||
| | ||
[Package] | ||
R_pkg 0.01m NA NA | ||
L_pkg 0.001nH NA NA | ||
C_pkg 0.001pF NA NA | ||
| | ||
[Pin] signal_name model_name R_pin L_pin C_pin | ||
14 example_tx_P example_model_tx NA NA NA | ||
15 example_tx_N example_model_tx NA NA NA | ||
|
||
[Diff Pin] inv_pin vdiff tdelay_typ tdelay_min tdelay_max| | ||
14 15 0.2 NA NA NA | ||
|
||
|
||
|Model row 3 | ||
| | ||
|model example_model_tx | ||
| | ||
[Model] example_model_tx | ||
Model_type Output | ||
C_comp 64f 64f 64f | ||
Cref =0 | ||
[Model Spec] | ||
Vmeas 0.0882 0.0882 0.0882 | ||
Vref 0.0882 0.0882 0.0882 | ||
[Algorithmic Model] | ||
Executable Windows_Intel7_32 ibis_ami_example_w32.dll ibis_ami_example_tx.ami | ||
Executable Windows_Intel10_64 ibis_ami_example_w64.dll ibis_ami_example_tx.ami | ||
Executable Linux_Intel10_32 ibis_ami_example_l32.so ibis_ami_example_tx.ami | ||
Executable Linux_Intel10_64 ibis_ami_example_l64.so ibis_ami_example_tx.ami | ||
[End Algorithmic Model] | ||
[Temperature Range] 85.0000 85.0000 85.0000 | ||
[Voltage Range] 0.1694 0.1694 0.1694 | ||
[Pulldown] | ||
-2.50 -5.3821E-02 -5.3821E-02 -5.3821E-02 | ||
0.00 0.0000E+00 0.0000E+00 0.0000E+00 | ||
2.50 5.3821E-02 5.3821E-02 5.3821E-02 | ||
[Pullup] | ||
-2.50 5.3821E-02 5.3821E-02 5.3821E-02 | ||
0.00 0.0000E+00 0.0000E+00 0.0000E+00 | ||
2.50 -5.3821E-02 -5.3821E-02 -5.3821E-02 | ||
[Ramp] | ||
dV/dt_r 0.052/16.573p 0.052/16.573p 0.052/16.573p | ||
dV/dt_f 0.052/17.251p 0.052/17.251p 0.052/17.251p | ||
|
||
[End] |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.