Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main update #20

Merged
merged 65 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
b3b8a37
add function to animate constellation plots as gifs
edsonportosilva Nov 23, 2023
665b0f7
Update plot.py
edsonportosilva Nov 23, 2023
7d06399
add support to APSK modulations
edsonportosilva Dec 22, 2023
01358a1
Add references
edsonportosilva Dec 22, 2023
8556921
fix bug in gray mapping APSK
edsonportosilva Dec 22, 2023
4d4c748
Update test_modulation.ipynb
edsonportosilva Dec 22, 2023
eba2b4d
Update test_modulation.py
edsonportosilva Dec 22, 2023
a72d995
Update test_modulation-checkpoint.ipynb
edsonportosilva Dec 22, 2023
c77ed87
Update test_metrics-checkpoint.ipynb
edsonportosilva Dec 22, 2023
66c3119
Update test_metrics.ipynb
edsonportosilva Dec 22, 2023
4436362
Update test_metrics.py
edsonportosilva Dec 22, 2023
4a35714
code cleaning
edsonportosilva Dec 22, 2023
a97dbcd
update function name from GrayMapping to grayMapping
edsonportosilva Dec 23, 2023
9039e82
Update tx.py
edsonportosilva Dec 23, 2023
04184bf
Update modulation.py
edsonportosilva Dec 23, 2023
51aa2af
Update modulation.py
edsonportosilva Dec 24, 2023
287db02
Update setup.py
edsonportosilva Feb 6, 2024
9860244
Merge branch 'main' of github.com:edsonportosilva/OptiCommPy
edsonportosilva Feb 6, 2024
b873a46
Merge branch 'main' into add-plot-utils
edsonportosilva Feb 8, 2024
5339df1
add example of decision boundary plot
edsonportosilva Feb 8, 2024
af2ff89
add function to plot decision boundaries of AWGN detectors
edsonportosilva Feb 8, 2024
3d3ef67
add MAP/ML detector function
edsonportosilva Feb 8, 2024
cb2c202
Update test_modulation.ipynb
edsonportosilva Feb 8, 2024
3beb832
Update test_modulation-checkpoint.ipynb
edsonportosilva Feb 8, 2024
0e89f6f
Update test_modulation.ipynb
edsonportosilva Feb 8, 2024
9095c45
Update test_modulation-checkpoint.ipynb
edsonportosilva Feb 8, 2024
9d83161
fix bug in pad
edsonportosilva Feb 10, 2024
feb1837
Update clockRecovery.py
edsonportosilva Feb 11, 2024
33aed9d
update notebook
edsonportosilva Feb 11, 2024
29af56a
Update clockRecovery.py
edsonportosilva Feb 11, 2024
b4e41b8
Update test_clockRecovery.ipynb
edsonportosilva Feb 11, 2024
e2da876
Update test_clockRecovery-checkpoint.ipynb
edsonportosilva Feb 11, 2024
46ed31f
Update test_clockRecovery.py
edsonportosilva Feb 11, 2024
b7b49f0
Update clockRecovery.py
edsonportosilva Feb 13, 2024
5e86ea6
Update test_clockRecovery.py
edsonportosilva Feb 13, 2024
dd9a892
Update test_clockRecovery.ipynb
edsonportosilva Feb 13, 2024
326bcc2
Update test_clockRecovery-checkpoint.ipynb
edsonportosilva Feb 13, 2024
e1bda61
Update clockRecovery.py
edsonportosilva Feb 13, 2024
7997411
Update test_clockRecovery.py
edsonportosilva Feb 13, 2024
bcb9154
Update test_clockRecovery.ipynb
edsonportosilva Feb 13, 2024
9c16637
Update test_clockRecovery-checkpoint.ipynb
edsonportosilva Feb 13, 2024
7c964f1
Fix indexing bug
edsonportosilva Feb 13, 2024
fec0944
Update test_clockRecovery.ipynb
edsonportosilva Feb 13, 2024
222b170
Update test_clockRecovery-checkpoint.ipynb
edsonportosilva Feb 13, 2024
0746e07
Update test_clockRecovery.ipynb
edsonportosilva Feb 13, 2024
56fab08
Update test_clockRecovery-checkpoint.ipynb
edsonportosilva Feb 13, 2024
cb50a64
Update clockRecovery.py
edsonportosilva Feb 13, 2024
c20b07a
Merge branch 'main' into add-plot-utils
edsonportosilva Feb 14, 2024
c311d2e
add function to generate a random colormap
edsonportosilva Feb 14, 2024
75b6340
Update plot.py
edsonportosilva Feb 14, 2024
ba7d24b
Update test_modulation.ipynb
edsonportosilva Feb 14, 2024
e25baf2
Update test_clockRecovery.ipynb
edsonportosilva Feb 14, 2024
1b1651a
Merge branch 'main' of github.com:edsonportosilva/OptiCommPy
edsonportosilva Feb 14, 2024
1d5aac4
add function to calculate clock deviation ppm
edsonportosilva Feb 14, 2024
72b21a6
Fix bug and improve logging
edsonportosilva Feb 15, 2024
c555ae5
Update test_clockRecovery.ipynb
edsonportosilva Feb 15, 2024
a9e2d45
Update test_clockRecovery.ipynb
edsonportosilva Feb 15, 2024
42aebde
Merge branch 'add-resampling-interpolation'
edsonportosilva Feb 15, 2024
33bcfb9
improve doc
edsonportosilva Feb 15, 2024
6fef8f5
Update test_clockRecovery.ipynb
edsonportosilva Feb 15, 2024
f685a8a
Merge branch 'add-resampling-interpolation'
edsonportosilva Feb 15, 2024
c408954
Improve doc
edsonportosilva Feb 15, 2024
9403f49
Merge branch 'add-resampling-interpolation'
edsonportosilva Feb 15, 2024
9203651
Fix docstrings
edsonportosilva Feb 15, 2024
3442146
fix docstring
edsonportosilva Feb 15, 2024
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

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions examples/.ipynb_checkpoints/basic_OOK_transmission-checkpoint.ipynb

Large diffs are not rendered by default.

111 changes: 75 additions & 36 deletions examples/.ipynb_checkpoints/test_clockRecovery-checkpoint.ipynb

Large diffs are not rendered by default.

386 changes: 285 additions & 101 deletions examples/.ipynb_checkpoints/test_metrics-checkpoint.ipynb

Large diffs are not rendered by default.

105 changes: 75 additions & 30 deletions examples/.ipynb_checkpoints/test_modulation-checkpoint.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/basic_EDFA.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.11.3"
},
"vscode": {
"interpreter": {
Expand Down
8 changes: 4 additions & 4 deletions examples/basic_IMDD_PAM_transmission.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"from commpy.utilities import upsample\n",
"from optic.models.devices import mzm, photodiode, edfa\n",
"from optic.models.channels import linearFiberChannel\n",
"from optic.comm.modulation import GrayMapping, modulateGray, demodulateGray\n",
"from optic.comm.modulation import grayMapping, modulateGray, demodulateGray\n",
"from optic.comm.metrics import theoryBER\n",
"from optic.dsp.core import pulseShape, lowPassFIR, pnorm, signal_power\n",
"\n",
Expand Down Expand Up @@ -432,7 +432,7 @@
"symbRx = pnorm(symbRx)\n",
"\n",
"# demodulate symbols to bits with minimum Euclidean distance \n",
"const = GrayMapping(M,'pam') # get PAM constellation\n",
"const = grayMapping(M,'pam') # get PAM constellation\n",
"Es = signal_power(const) # calculate the average energy per symbol of the PAM constellation\n",
"\n",
"bitsRx = demodulateGray(np.sqrt(Es)*symbRx, M, 'pam')\n",
Expand Down Expand Up @@ -520,7 +520,7 @@
"BER = np.zeros(powerValues.shape)\n",
"Pb = np.zeros(powerValues.shape)\n",
"\n",
"const = GrayMapping(M,'pam') # get PAM constellation\n",
"const = grayMapping(M,'pam') # get PAM constellation\n",
"Es = signal_power(const) # calculate the average energy per symbol of the PAM constellation\n",
" \n",
"discard = 100\n",
Expand Down Expand Up @@ -693,7 +693,7 @@
"BER = np.zeros(distance.shape)\n",
"Pb = np.zeros(distance.shape)\n",
"\n",
"const = GrayMapping(M,'pam') # get PAM constellation\n",
"const = grayMapping(M,'pam') # get PAM constellation\n",
"Es = signal_power(const) # calculate the average energy per symbol of the PAM constellation\n",
" \n",
"discard = 100\n",
Expand Down
8 changes: 4 additions & 4 deletions examples/basic_IMDD_PAM_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from commpy.utilities import upsample
from optic.models.devices import mzm, photodiode, edfa
from optic.models.channels import linearFiberChannel
from optic.comm.modulation import GrayMapping, modulateGray, demodulateGray
from optic.comm.modulation import grayMapping, modulateGray, demodulateGray
from optic.comm.metrics import theoryBER
from optic.dsp.core import pulseShape, lowPassFIR, pnorm, signal_power

Expand Down Expand Up @@ -199,7 +199,7 @@
symbRx = pnorm(symbRx)

# demodulate symbols to bits with minimum Euclidean distance
const = GrayMapping(M,'pam') # get PAM constellation
const = grayMapping(M,'pam') # get PAM constellation
Es = signal_power(const) # calculate the average energy per symbol of the PAM constellation

bitsRx = demodulateGray(np.sqrt(Es)*symbRx, M, 'pam')
Expand Down Expand Up @@ -255,7 +255,7 @@
BER = np.zeros(powerValues.shape)
Pb = np.zeros(powerValues.shape)

const = GrayMapping(M,'pam') # get PAM constellation
const = grayMapping(M,'pam') # get PAM constellation
Es = signal_power(const) # calculate the average energy per symbol of the PAM constellation

discard = 100
Expand Down Expand Up @@ -362,7 +362,7 @@
BER = np.zeros(distance.shape)
Pb = np.zeros(distance.shape)

const = GrayMapping(M,'pam') # get PAM constellation
const = grayMapping(M,'pam') # get PAM constellation
Es = signal_power(const) # calculate the average energy per symbol of the PAM constellation

discard = 100
Expand Down
4 changes: 2 additions & 2 deletions examples/basic_OOK_transmission.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"from commpy.utilities import upsample\n",
"from optic.models.devices import mzm, photodiode, edfa\n",
"from optic.models.channels import linearFiberChannel\n",
"from optic.comm.modulation import GrayMapping, modulateGray\n",
"from optic.comm.modulation import modulateGray\n",
"from optic.dsp.core import pulseShape, lowPassFIR, pnorm, signal_power\n",
"\n",
"try:\n",
Expand Down Expand Up @@ -638,7 +638,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.3"
},
"toc": {
"base_numbering": 1,
Expand Down
4 changes: 2 additions & 2 deletions examples/basic_OOK_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.15.1
# jupytext_version: 1.14.7
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
Expand All @@ -28,7 +28,7 @@
from commpy.utilities import upsample
from optic.models.devices import mzm, photodiode, edfa
from optic.models.channels import linearFiberChannel
from optic.comm.modulation import GrayMapping, modulateGray
from optic.comm.modulation import modulateGray
from optic.dsp.core import pulseShape, lowPassFIR, pnorm, signal_power

try:
Expand Down
Loading