From cd8051035b5d3b33b8706321dc2335a31284d84e Mon Sep 17 00:00:00 2001 From: Guillermo Marcus Date: Tue, 1 Oct 2024 13:59:30 +0200 Subject: [PATCH] update examples for Google Colab. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: The Sionna Team Merged-by: Guillermo Marcus <4169784+gmarcusm@users.noreply.github.com> Co-authored-by: Jakob Hoydis <5190129+jhoydis@users.noreply.github.com> Co-authored-by: Fayçal Ait-Aoudia <43564757+faycalaa@users.noreply.github.com> Co-authored-by: Sebastian Cammerer <18167671+SebastianCa@users.noreply.github.com> Co-authored-by: Guillermo Marcus <4169784+gmarcusm@users.noreply.github.com> Co-authored-by: Merlin Nimier-David Co-authored-by: Lorenzo Maggi <34341780+lollodealma@users.noreply.github.com> --- ...annel_Coding_Polar_vs_LDPC_Codes.ipynb.txt | 18 ++++++++--------- docs/_sources/examples/5G_NR_PUSCH.ipynb.txt | 18 ++++++++--------- docs/_sources/examples/Autoencoder.ipynb.txt | 18 ++++++++--------- ...Bit_Interleaved_Coded_Modulation.ipynb.txt | 18 ++++++++--------- docs/_sources/examples/CIR_Dataset.ipynb.txt | 19 +++++++++--------- docs/_sources/examples/DeepMIMO.ipynb.txt | 18 ++++++++--------- .../examples/Evolution_of_FEC.ipynb.txt | 18 ++++++++--------- ...Iterative_Detection_and_Decoding.ipynb.txt | 18 ++++++++--------- ...MIMO_OFDM_Transmissions_over_CDL.ipynb.txt | 18 ++++++++--------- .../examples/Neural_Receiver.ipynb.txt | 18 ++++++++--------- .../examples/OFDM_MIMO_Detection.ipynb.txt | 18 ++++++++--------- ...cal_Lumped_Amplification_Channel.ipynb.txt | 20 +++++++++---------- .../examples/Pulse_shaping_basics.ipynb.txt | 20 +++++++++---------- ...istic_Multiuser_MIMO_Simulations.ipynb.txt | 20 +++++++++---------- .../examples/Simple_MIMO_Simulation.ipynb.txt | 20 +++++++++---------- .../Sionna_Ray_Tracing_Coverage_Map.ipynb.txt | 20 +++++++++---------- .../Sionna_Ray_Tracing_Diffraction.ipynb.txt | 20 +++++++++---------- .../Sionna_Ray_Tracing_Introduction.ipynb.txt | 20 +++++++++---------- .../Sionna_Ray_Tracing_Mobility.ipynb.txt | 20 +++++++++---------- .../examples/Sionna_Ray_Tracing_RIS.ipynb.txt | 20 +++++++++---------- .../Sionna_Ray_Tracing_Scattering.ipynb.txt | 20 +++++++++---------- .../examples/Sionna_tutorial_part1.ipynb.txt | 20 +++++++++---------- .../examples/Sionna_tutorial_part2.ipynb.txt | 20 +++++++++---------- .../examples/Sionna_tutorial_part3.ipynb.txt | 20 +++++++++---------- .../examples/Sionna_tutorial_part4.ipynb.txt | 20 +++++++++---------- .../examples/Weighted_BP_Algorithm.ipynb.txt | 20 +++++++++---------- ...5G_Channel_Coding_Polar_vs_LDPC_Codes.html | 18 ++++++++--------- ...G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb | 18 ++++++++--------- docs/examples/5G_NR_PUSCH.html | 18 ++++++++--------- docs/examples/5G_NR_PUSCH.ipynb | 18 ++++++++--------- docs/examples/Autoencoder.html | 18 ++++++++--------- docs/examples/Autoencoder.ipynb | 18 ++++++++--------- .../Bit_Interleaved_Coded_Modulation.html | 18 ++++++++--------- .../Bit_Interleaved_Coded_Modulation.ipynb | 18 ++++++++--------- docs/examples/CIR_Dataset.html | 19 +++++++++--------- docs/examples/CIR_Dataset.ipynb | 19 +++++++++--------- docs/examples/DeepMIMO.html | 18 ++++++++--------- docs/examples/DeepMIMO.ipynb | 18 ++++++++--------- docs/examples/Evolution_of_FEC.html | 18 ++++++++--------- docs/examples/Evolution_of_FEC.ipynb | 18 ++++++++--------- ...n_to_Iterative_Detection_and_Decoding.html | 18 ++++++++--------- ..._to_Iterative_Detection_and_Decoding.ipynb | 18 ++++++++--------- .../MIMO_OFDM_Transmissions_over_CDL.html | 18 ++++++++--------- .../MIMO_OFDM_Transmissions_over_CDL.ipynb | 18 ++++++++--------- docs/examples/Neural_Receiver.html | 18 ++++++++--------- docs/examples/Neural_Receiver.ipynb | 18 ++++++++--------- docs/examples/OFDM_MIMO_Detection.html | 18 ++++++++--------- docs/examples/OFDM_MIMO_Detection.ipynb | 18 ++++++++--------- .../Optical_Lumped_Amplification_Channel.html | 18 ++++++++--------- ...Optical_Lumped_Amplification_Channel.ipynb | 20 +++++++++---------- docs/examples/Pulse_shaping_basics.html | 18 ++++++++--------- docs/examples/Pulse_shaping_basics.ipynb | 20 +++++++++---------- .../Realistic_Multiuser_MIMO_Simulations.html | 18 ++++++++--------- ...Realistic_Multiuser_MIMO_Simulations.ipynb | 20 +++++++++---------- docs/examples/Simple_MIMO_Simulation.html | 18 ++++++++--------- docs/examples/Simple_MIMO_Simulation.ipynb | 20 +++++++++---------- .../Sionna_Ray_Tracing_Coverage_Map.html | 18 ++++++++--------- .../Sionna_Ray_Tracing_Coverage_Map.ipynb | 20 +++++++++---------- .../Sionna_Ray_Tracing_Diffraction.html | 18 ++++++++--------- .../Sionna_Ray_Tracing_Diffraction.ipynb | 20 +++++++++---------- .../Sionna_Ray_Tracing_Introduction.html | 18 ++++++++--------- .../Sionna_Ray_Tracing_Introduction.ipynb | 20 +++++++++---------- .../examples/Sionna_Ray_Tracing_Mobility.html | 18 ++++++++--------- .../Sionna_Ray_Tracing_Mobility.ipynb | 20 +++++++++---------- docs/examples/Sionna_Ray_Tracing_RIS.html | 18 ++++++++--------- docs/examples/Sionna_Ray_Tracing_RIS.ipynb | 20 +++++++++---------- .../Sionna_Ray_Tracing_Scattering.html | 18 ++++++++--------- .../Sionna_Ray_Tracing_Scattering.ipynb | 20 +++++++++---------- docs/examples/Sionna_tutorial_part1.html | 18 ++++++++--------- docs/examples/Sionna_tutorial_part1.ipynb | 20 +++++++++---------- docs/examples/Sionna_tutorial_part2.html | 18 ++++++++--------- docs/examples/Sionna_tutorial_part2.ipynb | 20 +++++++++---------- docs/examples/Sionna_tutorial_part3.html | 18 ++++++++--------- docs/examples/Sionna_tutorial_part3.ipynb | 20 +++++++++---------- docs/examples/Sionna_tutorial_part4.html | 18 ++++++++--------- docs/examples/Sionna_tutorial_part4.ipynb | 20 +++++++++---------- docs/examples/Weighted_BP_Algorithm.html | 18 ++++++++--------- docs/examples/Weighted_BP_Algorithm.ipynb | 20 +++++++++---------- 78 files changed, 732 insertions(+), 735 deletions(-) diff --git a/docs/_sources/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb.txt b/docs/_sources/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb.txt index aac887da..ef78c133 100644 --- a/docs/_sources/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb.txt +++ b/docs/_sources/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb.txt @@ -74,6 +74,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -86,15 +95,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", diff --git a/docs/_sources/examples/5G_NR_PUSCH.ipynb.txt b/docs/_sources/examples/5G_NR_PUSCH.ipynb.txt index aafca2e6..c6f41324 100644 --- a/docs/_sources/examples/5G_NR_PUSCH.ipynb.txt +++ b/docs/_sources/examples/5G_NR_PUSCH.ipynb.txt @@ -60,6 +60,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -72,15 +81,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible results\n", "\n", "# Load the required Sionna components\n", diff --git a/docs/_sources/examples/Autoencoder.ipynb.txt b/docs/_sources/examples/Autoencoder.ipynb.txt index d9d2de78..0341158d 100644 --- a/docs/_sources/examples/Autoencoder.ipynb.txt +++ b/docs/_sources/examples/Autoencoder.ipynb.txt @@ -85,6 +85,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -100,15 +109,6 @@ "from tensorflow.keras import Model\n", "from tensorflow.keras.layers import Layer, Dense\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "from sionna.channel import AWGN\n", "from sionna.utils import BinarySource, ebnodb2no, log10, expand_to_rank, insert_dims\n", "from sionna.fec.ldpc.encoding import LDPC5GEncoder\n", diff --git a/docs/_sources/examples/Bit_Interleaved_Coded_Modulation.ipynb.txt b/docs/_sources/examples/Bit_Interleaved_Coded_Modulation.ipynb.txt index 397e1d85..5ba9c863 100644 --- a/docs/_sources/examples/Bit_Interleaved_Coded_Modulation.ipynb.txt +++ b/docs/_sources/examples/Bit_Interleaved_Coded_Modulation.ipynb.txt @@ -79,6 +79,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -95,15 +104,6 @@ "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Load the required Sionna components\n", "from sionna.mapping import Constellation, Mapper, Demapper\n", "from sionna.fec.ldpc import LDPC5GEncoder, LDPC5GDecoder, LDPCBPDecoder\n", diff --git a/docs/_sources/examples/CIR_Dataset.ipynb.txt b/docs/_sources/examples/CIR_Dataset.ipynb.txt index 0a483542..b6a830ed 100644 --- a/docs/_sources/examples/CIR_Dataset.ipynb.txt +++ b/docs/_sources/examples/CIR_Dataset.ipynb.txt @@ -49,6 +49,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -61,16 +70,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "import numpy as np\n", "import h5py\n", "\n", diff --git a/docs/_sources/examples/DeepMIMO.ipynb.txt b/docs/_sources/examples/DeepMIMO.ipynb.txt index 2b29b50c..e49b4309 100644 --- a/docs/_sources/examples/DeepMIMO.ipynb.txt +++ b/docs/_sources/examples/DeepMIMO.ipynb.txt @@ -49,6 +49,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -61,15 +70,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation" ] }, diff --git a/docs/_sources/examples/Evolution_of_FEC.ipynb.txt b/docs/_sources/examples/Evolution_of_FEC.ipynb.txt index ae268351..cbb6a8f6 100644 --- a/docs/_sources/examples/Evolution_of_FEC.ipynb.txt +++ b/docs/_sources/examples/Evolution_of_FEC.ipynb.txt @@ -50,6 +50,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -63,15 +72,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation\n", "\n", "# Load the required Sionna components\n", diff --git a/docs/_sources/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb.txt b/docs/_sources/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb.txt index 8685472e..fa08ec58 100644 --- a/docs/_sources/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb.txt +++ b/docs/_sources/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb.txt @@ -96,6 +96,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "from tensorflow.keras import Model\n", "gpus = tf.config.list_physical_devices('GPU')\n", @@ -107,15 +116,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", diff --git a/docs/_sources/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb.txt b/docs/_sources/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb.txt index aebc5608..97f9d04a 100644 --- a/docs/_sources/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb.txt +++ b/docs/_sources/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb.txt @@ -105,6 +105,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -116,15 +125,6 @@ " print(e)\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] diff --git a/docs/_sources/examples/Neural_Receiver.ipynb.txt b/docs/_sources/examples/Neural_Receiver.ipynb.txt index 1289d868..e668e9c2 100644 --- a/docs/_sources/examples/Neural_Receiver.ipynb.txt +++ b/docs/_sources/examples/Neural_Receiver.ipynb.txt @@ -88,6 +88,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -100,15 +109,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation" ] }, diff --git a/docs/_sources/examples/OFDM_MIMO_Detection.ipynb.txt b/docs/_sources/examples/OFDM_MIMO_Detection.ipynb.txt index b17379f9..7531ca33 100644 --- a/docs/_sources/examples/OFDM_MIMO_Detection.ipynb.txt +++ b/docs/_sources/examples/OFDM_MIMO_Detection.ipynb.txt @@ -121,6 +121,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -133,15 +142,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation" ] }, diff --git a/docs/_sources/examples/Optical_Lumped_Amplification_Channel.ipynb.txt b/docs/_sources/examples/Optical_Lumped_Amplification_Channel.ipynb.txt index 0e319ce1..86672ff8 100644 --- a/docs/_sources/examples/Optical_Lumped_Amplification_Channel.ipynb.txt +++ b/docs/_sources/examples/Optical_Lumped_Amplification_Channel.ipynb.txt @@ -91,6 +91,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -103,15 +112,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "from sionna.channel import utils\n", @@ -1360,7 +1360,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "vscode": { "interpreter": { diff --git a/docs/_sources/examples/Pulse_shaping_basics.ipynb.txt b/docs/_sources/examples/Pulse_shaping_basics.ipynb.txt index 1c2e318a..a27ad3eb 100644 --- a/docs/_sources/examples/Pulse_shaping_basics.ipynb.txt +++ b/docs/_sources/examples/Pulse_shaping_basics.ipynb.txt @@ -79,6 +79,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -91,15 +100,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -735,7 +735,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/_sources/examples/Realistic_Multiuser_MIMO_Simulations.ipynb.txt b/docs/_sources/examples/Realistic_Multiuser_MIMO_Simulations.ipynb.txt index 06f1937a..1e436b2f 100644 --- a/docs/_sources/examples/Realistic_Multiuser_MIMO_Simulations.ipynb.txt +++ b/docs/_sources/examples/Realistic_Multiuser_MIMO_Simulations.ipynb.txt @@ -99,6 +99,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -111,15 +120,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -1048,7 +1048,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Simple_MIMO_Simulation.ipynb.txt b/docs/_sources/examples/Simple_MIMO_Simulation.ipynb.txt index 481d48d6..e27f5871 100644 --- a/docs/_sources/examples/Simple_MIMO_Simulation.ipynb.txt +++ b/docs/_sources/examples/Simple_MIMO_Simulation.ipynb.txt @@ -80,6 +80,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -92,15 +101,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducability\n", "sionna.config.seed = 42" ] @@ -932,7 +932,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/_sources/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb.txt b/docs/_sources/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb.txt index 7b62f410..50669ed5 100644 --- a/docs/_sources/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb.txt +++ b/docs/_sources/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb.txt @@ -59,6 +59,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -96,15 +105,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", @@ -1236,7 +1236,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Sionna_Ray_Tracing_Diffraction.ipynb.txt b/docs/_sources/examples/Sionna_Ray_Tracing_Diffraction.ipynb.txt index cd351111..9e582fd5 100644 --- a/docs/_sources/examples/Sionna_Ray_Tracing_Diffraction.ipynb.txt +++ b/docs/_sources/examples/Sionna_Ray_Tracing_Diffraction.ipynb.txt @@ -139,6 +139,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -176,15 +185,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", @@ -1227,7 +1227,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Sionna_Ray_Tracing_Introduction.ipynb.txt b/docs/_sources/examples/Sionna_Ray_Tracing_Introduction.ipynb.txt index e43c75b1..57d2b6d7 100644 --- a/docs/_sources/examples/Sionna_Ray_Tracing_Introduction.ipynb.txt +++ b/docs/_sources/examples/Sionna_Ray_Tracing_Introduction.ipynb.txt @@ -85,6 +85,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -122,15 +131,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -2329,7 +2329,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/_sources/examples/Sionna_Ray_Tracing_Mobility.ipynb.txt b/docs/_sources/examples/Sionna_Ray_Tracing_Mobility.ipynb.txt index e8588ec2..42ae4afb 100644 --- a/docs/_sources/examples/Sionna_Ray_Tracing_Mobility.ipynb.txt +++ b/docs/_sources/examples/Sionna_Ray_Tracing_Mobility.ipynb.txt @@ -104,6 +104,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -141,15 +150,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -1076,7 +1076,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/_sources/examples/Sionna_Ray_Tracing_RIS.ipynb.txt b/docs/_sources/examples/Sionna_Ray_Tracing_RIS.ipynb.txt index 0d06ea51..58edee53 100644 --- a/docs/_sources/examples/Sionna_Ray_Tracing_RIS.ipynb.txt +++ b/docs/_sources/examples/Sionna_Ray_Tracing_RIS.ipynb.txt @@ -82,6 +82,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -119,15 +128,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 40" ] @@ -1417,7 +1417,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/_sources/examples/Sionna_Ray_Tracing_Scattering.ipynb.txt b/docs/_sources/examples/Sionna_Ray_Tracing_Scattering.ipynb.txt index 53f3ac4a..30a63689 100644 --- a/docs/_sources/examples/Sionna_Ray_Tracing_Scattering.ipynb.txt +++ b/docs/_sources/examples/Sionna_Ray_Tracing_Scattering.ipynb.txt @@ -69,6 +69,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -106,15 +115,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", @@ -1109,7 +1109,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/_sources/examples/Sionna_tutorial_part1.ipynb.txt b/docs/_sources/examples/Sionna_tutorial_part1.ipynb.txt index a4ddea45..4f3be377 100644 --- a/docs/_sources/examples/Sionna_tutorial_part1.ipynb.txt +++ b/docs/_sources/examples/Sionna_tutorial_part1.ipynb.txt @@ -72,6 +72,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -85,15 +94,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For plotting\n", @@ -1423,7 +1423,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Sionna_tutorial_part2.ipynb.txt b/docs/_sources/examples/Sionna_tutorial_part2.ipynb.txt index cca9c2e6..d1d016d4 100644 --- a/docs/_sources/examples/Sionna_tutorial_part2.ipynb.txt +++ b/docs/_sources/examples/Sionna_tutorial_part2.ipynb.txt @@ -68,6 +68,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -81,15 +90,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For plotting\n", @@ -839,7 +839,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Sionna_tutorial_part3.ipynb.txt b/docs/_sources/examples/Sionna_tutorial_part3.ipynb.txt index 9170a0a8..2f2c4ee4 100644 --- a/docs/_sources/examples/Sionna_tutorial_part3.ipynb.txt +++ b/docs/_sources/examples/Sionna_tutorial_part3.ipynb.txt @@ -69,6 +69,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -82,15 +91,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For plotting\n", @@ -903,7 +903,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Sionna_tutorial_part4.ipynb.txt b/docs/_sources/examples/Sionna_tutorial_part4.ipynb.txt index a3126788..64ae148f 100644 --- a/docs/_sources/examples/Sionna_tutorial_part4.ipynb.txt +++ b/docs/_sources/examples/Sionna_tutorial_part4.ipynb.txt @@ -77,6 +77,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -90,15 +99,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For saving complex Python data structures efficiently\n", @@ -914,7 +914,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/_sources/examples/Weighted_BP_Algorithm.ipynb.txt b/docs/_sources/examples/Weighted_BP_Algorithm.ipynb.txt index 09488af8..d12d586c 100644 --- a/docs/_sources/examples/Weighted_BP_Algorithm.ipynb.txt +++ b/docs/_sources/examples/Weighted_BP_Algorithm.ipynb.txt @@ -77,6 +77,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -89,15 +98,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Import required Sionna components\n", "from sionna.fec.ldpc import LDPCBPDecoder, LDPC5GEncoder, LDPC5GDecoder\n", "from sionna.utils.metrics import BitwiseMutualInformation\n", @@ -1089,7 +1089,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.html b/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.html index bd546e41..6c6dfa94 100644 --- a/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.html +++ b/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.html @@ -884,6 +884,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + import tensorflow as tf # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu @@ -896,15 +905,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb b/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb index aac887da..ef78c133 100644 --- a/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb +++ b/docs/examples/5G_Channel_Coding_Polar_vs_LDPC_Codes.ipynb @@ -74,6 +74,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -86,15 +95,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", diff --git a/docs/examples/5G_NR_PUSCH.html b/docs/examples/5G_NR_PUSCH.html index 43672bfc..860d6613 100644 --- a/docs/examples/5G_NR_PUSCH.html +++ b/docs/examples/5G_NR_PUSCH.html @@ -876,6 +876,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + import tensorflow as tf # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu @@ -888,15 +897,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - sionna.config.seed = 42 # Set seed for reproducible results # Load the required Sionna components diff --git a/docs/examples/5G_NR_PUSCH.ipynb b/docs/examples/5G_NR_PUSCH.ipynb index aafca2e6..c6f41324 100644 --- a/docs/examples/5G_NR_PUSCH.ipynb +++ b/docs/examples/5G_NR_PUSCH.ipynb @@ -60,6 +60,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -72,15 +81,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible results\n", "\n", "# Load the required Sionna components\n", diff --git a/docs/examples/Autoencoder.html b/docs/examples/Autoencoder.html index 3520d627..6fabeeb3 100644 --- a/docs/examples/Autoencoder.html +++ b/docs/examples/Autoencoder.html @@ -868,6 +868,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -883,15 +892,6 @@

GPU Configuration and Importsfrom tensorflow.keras import Model from tensorflow.keras.layers import Layer, Dense -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - from sionna.channel import AWGN from sionna.utils import BinarySource, ebnodb2no, log10, expand_to_rank, insert_dims from sionna.fec.ldpc.encoding import LDPC5GEncoder diff --git a/docs/examples/Autoencoder.ipynb b/docs/examples/Autoencoder.ipynb index d9d2de78..0341158d 100644 --- a/docs/examples/Autoencoder.ipynb +++ b/docs/examples/Autoencoder.ipynb @@ -85,6 +85,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -100,15 +109,6 @@ "from tensorflow.keras import Model\n", "from tensorflow.keras.layers import Layer, Dense\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "from sionna.channel import AWGN\n", "from sionna.utils import BinarySource, ebnodb2no, log10, expand_to_rank, insert_dims\n", "from sionna.fec.ldpc.encoding import LDPC5GEncoder\n", diff --git a/docs/examples/Bit_Interleaved_Coded_Modulation.html b/docs/examples/Bit_Interleaved_Coded_Modulation.html index d520fe99..4ffce621 100644 --- a/docs/examples/Bit_Interleaved_Coded_Modulation.html +++ b/docs/examples/Bit_Interleaved_Coded_Modulation.html @@ -888,6 +888,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -904,15 +913,6 @@

GPU Configuration and Importsimport matplotlib.pyplot as plt import numpy as np -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Load the required Sionna components from sionna.mapping import Constellation, Mapper, Demapper from sionna.fec.ldpc import LDPC5GEncoder, LDPC5GDecoder, LDPCBPDecoder diff --git a/docs/examples/Bit_Interleaved_Coded_Modulation.ipynb b/docs/examples/Bit_Interleaved_Coded_Modulation.ipynb index 397e1d85..5ba9c863 100644 --- a/docs/examples/Bit_Interleaved_Coded_Modulation.ipynb +++ b/docs/examples/Bit_Interleaved_Coded_Modulation.ipynb @@ -79,6 +79,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -95,15 +104,6 @@ "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Load the required Sionna components\n", "from sionna.mapping import Constellation, Mapper, Demapper\n", "from sionna.fec.ldpc import LDPC5GEncoder, LDPC5GDecoder, LDPCBPDecoder\n", diff --git a/docs/examples/CIR_Dataset.html b/docs/examples/CIR_Dataset.html index 3e0ff417..aec56b81 100644 --- a/docs/examples/CIR_Dataset.html +++ b/docs/examples/CIR_Dataset.html @@ -857,6 +857,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -869,16 +878,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') - -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - import numpy as np import h5py diff --git a/docs/examples/CIR_Dataset.ipynb b/docs/examples/CIR_Dataset.ipynb index 0a483542..b6a830ed 100644 --- a/docs/examples/CIR_Dataset.ipynb +++ b/docs/examples/CIR_Dataset.ipynb @@ -49,6 +49,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -61,16 +70,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "import numpy as np\n", "import h5py\n", "\n", diff --git a/docs/examples/DeepMIMO.html b/docs/examples/DeepMIMO.html index e9a45d43..89c1dec9 100644 --- a/docs/examples/DeepMIMO.html +++ b/docs/examples/DeepMIMO.html @@ -861,6 +861,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -873,15 +882,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - sionna.config.seed = 42 # Set seed for reproducible random number generation diff --git a/docs/examples/DeepMIMO.ipynb b/docs/examples/DeepMIMO.ipynb index 2b29b50c..e49b4309 100644 --- a/docs/examples/DeepMIMO.ipynb +++ b/docs/examples/DeepMIMO.ipynb @@ -49,6 +49,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -61,15 +70,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation" ] }, diff --git a/docs/examples/Evolution_of_FEC.html b/docs/examples/Evolution_of_FEC.html index b7e9ace2..599cd3ef 100644 --- a/docs/examples/Evolution_of_FEC.html +++ b/docs/examples/Evolution_of_FEC.html @@ -862,6 +862,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -875,15 +884,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - sionna.config.seed = 42 # Set seed for reproducible random number generation # Load the required Sionna components diff --git a/docs/examples/Evolution_of_FEC.ipynb b/docs/examples/Evolution_of_FEC.ipynb index ae268351..cbb6a8f6 100644 --- a/docs/examples/Evolution_of_FEC.ipynb +++ b/docs/examples/Evolution_of_FEC.ipynb @@ -50,6 +50,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -63,15 +72,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation\n", "\n", "# Load the required Sionna components\n", diff --git a/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.html b/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.html index 0fd0925c..0b48a9ed 100644 --- a/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.html +++ b/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.html @@ -874,6 +874,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + import tensorflow as tf from tensorflow.keras import Model gpus = tf.config.list_physical_devices('GPU') @@ -885,15 +894,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - %matplotlib inline import matplotlib.pyplot as plt import numpy as np diff --git a/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb b/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb index 8685472e..fa08ec58 100644 --- a/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb +++ b/docs/examples/Introduction_to_Iterative_Detection_and_Decoding.ipynb @@ -96,6 +96,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "from tensorflow.keras import Model\n", "gpus = tf.config.list_physical_devices('GPU')\n", @@ -107,15 +116,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", diff --git a/docs/examples/MIMO_OFDM_Transmissions_over_CDL.html b/docs/examples/MIMO_OFDM_Transmissions_over_CDL.html index 9c02c62e..9e998156 100644 --- a/docs/examples/MIMO_OFDM_Transmissions_over_CDL.html +++ b/docs/examples/MIMO_OFDM_Transmissions_over_CDL.html @@ -906,6 +906,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -917,15 +926,6 @@

GPU Configuration and Importsprint(e) tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb b/docs/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb index aebc5608..97f9d04a 100644 --- a/docs/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb +++ b/docs/examples/MIMO_OFDM_Transmissions_over_CDL.ipynb @@ -105,6 +105,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -116,15 +125,6 @@ " print(e)\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] diff --git a/docs/examples/Neural_Receiver.html b/docs/examples/Neural_Receiver.html index af657831..a37562a6 100644 --- a/docs/examples/Neural_Receiver.html +++ b/docs/examples/Neural_Receiver.html @@ -870,6 +870,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -882,15 +891,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - sionna.config.seed = 42 # Set seed for reproducible random number generation diff --git a/docs/examples/Neural_Receiver.ipynb b/docs/examples/Neural_Receiver.ipynb index 1289d868..e668e9c2 100644 --- a/docs/examples/Neural_Receiver.ipynb +++ b/docs/examples/Neural_Receiver.ipynb @@ -88,6 +88,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -100,15 +109,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation" ] }, diff --git a/docs/examples/OFDM_MIMO_Detection.html b/docs/examples/OFDM_MIMO_Detection.html index bd2a1b1e..a560bfca 100644 --- a/docs/examples/OFDM_MIMO_Detection.html +++ b/docs/examples/OFDM_MIMO_Detection.html @@ -872,6 +872,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -884,15 +893,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - sionna.config.seed = 42 # Set seed for reproducible random number generation diff --git a/docs/examples/OFDM_MIMO_Detection.ipynb b/docs/examples/OFDM_MIMO_Detection.ipynb index b17379f9..7531ca33 100644 --- a/docs/examples/OFDM_MIMO_Detection.ipynb +++ b/docs/examples/OFDM_MIMO_Detection.ipynb @@ -121,6 +121,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -133,15 +142,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "sionna.config.seed = 42 # Set seed for reproducible random number generation" ] }, diff --git a/docs/examples/Optical_Lumped_Amplification_Channel.html b/docs/examples/Optical_Lumped_Amplification_Channel.html index 569418fd..0ef41e7d 100644 --- a/docs/examples/Optical_Lumped_Amplification_Channel.html +++ b/docs/examples/Optical_Lumped_Amplification_Channel.html @@ -866,6 +866,15 @@

Setupos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + import tensorflow as tf # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu @@ -878,15 +887,6 @@

Setup# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 from sionna.channel import utils diff --git a/docs/examples/Optical_Lumped_Amplification_Channel.ipynb b/docs/examples/Optical_Lumped_Amplification_Channel.ipynb index 0e319ce1..86672ff8 100644 --- a/docs/examples/Optical_Lumped_Amplification_Channel.ipynb +++ b/docs/examples/Optical_Lumped_Amplification_Channel.ipynb @@ -91,6 +91,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -103,15 +112,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "from sionna.channel import utils\n", @@ -1360,7 +1360,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "vscode": { "interpreter": { diff --git a/docs/examples/Pulse_shaping_basics.html b/docs/examples/Pulse_shaping_basics.html index fa9548b2..c7024d15 100644 --- a/docs/examples/Pulse_shaping_basics.html +++ b/docs/examples/Pulse_shaping_basics.html @@ -870,6 +870,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -882,15 +891,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Pulse_shaping_basics.ipynb b/docs/examples/Pulse_shaping_basics.ipynb index 1c2e318a..a27ad3eb 100644 --- a/docs/examples/Pulse_shaping_basics.ipynb +++ b/docs/examples/Pulse_shaping_basics.ipynb @@ -79,6 +79,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -91,15 +100,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -735,7 +735,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/examples/Realistic_Multiuser_MIMO_Simulations.html b/docs/examples/Realistic_Multiuser_MIMO_Simulations.html index e14cab9d..64f95afc 100644 --- a/docs/examples/Realistic_Multiuser_MIMO_Simulations.html +++ b/docs/examples/Realistic_Multiuser_MIMO_Simulations.html @@ -885,6 +885,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -897,15 +906,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Realistic_Multiuser_MIMO_Simulations.ipynb b/docs/examples/Realistic_Multiuser_MIMO_Simulations.ipynb index 06f1937a..1e436b2f 100644 --- a/docs/examples/Realistic_Multiuser_MIMO_Simulations.ipynb +++ b/docs/examples/Realistic_Multiuser_MIMO_Simulations.ipynb @@ -99,6 +99,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -111,15 +120,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -1048,7 +1048,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Simple_MIMO_Simulation.html b/docs/examples/Simple_MIMO_Simulation.html index 879a78ee..20e45071 100644 --- a/docs/examples/Simple_MIMO_Simulation.html +++ b/docs/examples/Simple_MIMO_Simulation.html @@ -875,6 +875,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -887,15 +896,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducability sionna.config.seed = 42 diff --git a/docs/examples/Simple_MIMO_Simulation.ipynb b/docs/examples/Simple_MIMO_Simulation.ipynb index 481d48d6..e27f5871 100644 --- a/docs/examples/Simple_MIMO_Simulation.ipynb +++ b/docs/examples/Simple_MIMO_Simulation.ipynb @@ -80,6 +80,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -92,15 +101,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducability\n", "sionna.config.seed = 42" ] @@ -932,7 +932,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/examples/Sionna_Ray_Tracing_Coverage_Map.html b/docs/examples/Sionna_Ray_Tracing_Coverage_Map.html index f58f7cf0..2ad83b81 100644 --- a/docs/examples/Sionna_Ray_Tracing_Coverage_Map.html +++ b/docs/examples/Sionna_Ray_Tracing_Coverage_Map.html @@ -875,6 +875,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -912,15 +921,6 @@

GPU Configuration and Importsreturn get_ipython().run_cell(cell) -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb b/docs/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb index 7b62f410..50669ed5 100644 --- a/docs/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb +++ b/docs/examples/Sionna_Ray_Tracing_Coverage_Map.ipynb @@ -59,6 +59,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -96,15 +105,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", @@ -1236,7 +1236,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Sionna_Ray_Tracing_Diffraction.html b/docs/examples/Sionna_Ray_Tracing_Diffraction.html index 0e519ac4..b0aec884 100644 --- a/docs/examples/Sionna_Ray_Tracing_Diffraction.html +++ b/docs/examples/Sionna_Ray_Tracing_Diffraction.html @@ -889,6 +889,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -926,15 +935,6 @@

GPU Configuration and Importsreturn get_ipython().run_cell(cell) -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Sionna_Ray_Tracing_Diffraction.ipynb b/docs/examples/Sionna_Ray_Tracing_Diffraction.ipynb index cd351111..9e582fd5 100644 --- a/docs/examples/Sionna_Ray_Tracing_Diffraction.ipynb +++ b/docs/examples/Sionna_Ray_Tracing_Diffraction.ipynb @@ -139,6 +139,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -176,15 +185,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", @@ -1227,7 +1227,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Sionna_Ray_Tracing_Introduction.html b/docs/examples/Sionna_Ray_Tracing_Introduction.html index 27e1dcda..d59a3343 100644 --- a/docs/examples/Sionna_Ray_Tracing_Introduction.html +++ b/docs/examples/Sionna_Ray_Tracing_Introduction.html @@ -879,6 +879,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -916,15 +925,6 @@

GPU Configuration and Importsreturn get_ipython().run_cell(cell) -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Sionna_Ray_Tracing_Introduction.ipynb b/docs/examples/Sionna_Ray_Tracing_Introduction.ipynb index e43c75b1..57d2b6d7 100644 --- a/docs/examples/Sionna_Ray_Tracing_Introduction.ipynb +++ b/docs/examples/Sionna_Ray_Tracing_Introduction.ipynb @@ -85,6 +85,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -122,15 +131,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -2329,7 +2329,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/examples/Sionna_Ray_Tracing_Mobility.html b/docs/examples/Sionna_Ray_Tracing_Mobility.html index d4a6cd51..2ca54873 100644 --- a/docs/examples/Sionna_Ray_Tracing_Mobility.html +++ b/docs/examples/Sionna_Ray_Tracing_Mobility.html @@ -886,6 +886,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -923,15 +932,6 @@

GPU Configuration and Importsreturn get_ipython().run_cell(cell) -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Sionna_Ray_Tracing_Mobility.ipynb b/docs/examples/Sionna_Ray_Tracing_Mobility.ipynb index e8588ec2..42ae4afb 100644 --- a/docs/examples/Sionna_Ray_Tracing_Mobility.ipynb +++ b/docs/examples/Sionna_Ray_Tracing_Mobility.ipynb @@ -104,6 +104,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -141,15 +150,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42" ] @@ -1076,7 +1076,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/examples/Sionna_Ray_Tracing_RIS.html b/docs/examples/Sionna_Ray_Tracing_RIS.html index 62f93541..81b4d628 100644 --- a/docs/examples/Sionna_Ray_Tracing_RIS.html +++ b/docs/examples/Sionna_Ray_Tracing_RIS.html @@ -880,6 +880,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -917,15 +926,6 @@

GPU Configuration and Importsreturn get_ipython().run_cell(cell) -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 40 diff --git a/docs/examples/Sionna_Ray_Tracing_RIS.ipynb b/docs/examples/Sionna_Ray_Tracing_RIS.ipynb index 0d06ea51..58edee53 100644 --- a/docs/examples/Sionna_Ray_Tracing_RIS.ipynb +++ b/docs/examples/Sionna_Ray_Tracing_RIS.ipynb @@ -82,6 +82,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -119,15 +128,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 40" ] @@ -1417,7 +1417,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/examples/Sionna_Ray_Tracing_Scattering.html b/docs/examples/Sionna_Ray_Tracing_Scattering.html index c30cb2c4..80f5f450 100644 --- a/docs/examples/Sionna_Ray_Tracing_Scattering.html +++ b/docs/examples/Sionna_Ray_Tracing_Scattering.html @@ -868,6 +868,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -905,15 +914,6 @@

GPU Configuration and Importsreturn get_ipython().run_cell(cell) -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Set random seed for reproducibility sionna.config.seed = 42 diff --git a/docs/examples/Sionna_Ray_Tracing_Scattering.ipynb b/docs/examples/Sionna_Ray_Tracing_Scattering.ipynb index 53f3ac4a..30a63689 100644 --- a/docs/examples/Sionna_Ray_Tracing_Scattering.ipynb +++ b/docs/examples/Sionna_Ray_Tracing_Scattering.ipynb @@ -69,6 +69,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -106,15 +115,6 @@ " return\n", " get_ipython().run_cell(cell)\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Set random seed for reproducibility\n", "sionna.config.seed = 42\n", "\n", @@ -1109,7 +1109,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/docs/examples/Sionna_tutorial_part1.html b/docs/examples/Sionna_tutorial_part1.html index 7f206486..6f1c1645 100644 --- a/docs/examples/Sionna_tutorial_part1.html +++ b/docs/examples/Sionna_tutorial_part1.html @@ -869,6 +869,15 @@

Imports & Basicsos.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna as sn +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna as sn + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -882,15 +891,6 @@

Imports & Basics# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna as sn -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna as sn - import numpy as np # For plotting diff --git a/docs/examples/Sionna_tutorial_part1.ipynb b/docs/examples/Sionna_tutorial_part1.ipynb index a4ddea45..4f3be377 100644 --- a/docs/examples/Sionna_tutorial_part1.ipynb +++ b/docs/examples/Sionna_tutorial_part1.ipynb @@ -72,6 +72,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -85,15 +94,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For plotting\n", @@ -1423,7 +1423,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Sionna_tutorial_part2.html b/docs/examples/Sionna_tutorial_part2.html index 5201b25a..ee12e3b5 100644 --- a/docs/examples/Sionna_tutorial_part2.html +++ b/docs/examples/Sionna_tutorial_part2.html @@ -865,6 +865,15 @@

Imports os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna as sn +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna as sn + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -878,15 +887,6 @@

Imports # Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna as sn -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna as sn - import numpy as np # For plotting diff --git a/docs/examples/Sionna_tutorial_part2.ipynb b/docs/examples/Sionna_tutorial_part2.ipynb index cca9c2e6..d1d016d4 100644 --- a/docs/examples/Sionna_tutorial_part2.ipynb +++ b/docs/examples/Sionna_tutorial_part2.ipynb @@ -68,6 +68,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -81,15 +90,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For plotting\n", @@ -839,7 +839,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Sionna_tutorial_part3.html b/docs/examples/Sionna_tutorial_part3.html index 70809986..d71440f3 100644 --- a/docs/examples/Sionna_tutorial_part3.html +++ b/docs/examples/Sionna_tutorial_part3.html @@ -866,6 +866,15 @@

Imports os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna as sn +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna as sn + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -879,15 +888,6 @@

Imports # Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna as sn -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna as sn - import numpy as np # For plotting diff --git a/docs/examples/Sionna_tutorial_part3.ipynb b/docs/examples/Sionna_tutorial_part3.ipynb index 9170a0a8..2f2c4ee4 100644 --- a/docs/examples/Sionna_tutorial_part3.ipynb +++ b/docs/examples/Sionna_tutorial_part3.ipynb @@ -69,6 +69,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -82,15 +91,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For plotting\n", @@ -903,7 +903,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Sionna_tutorial_part4.html b/docs/examples/Sionna_tutorial_part4.html index c35c80a7..73de07b9 100644 --- a/docs/examples/Sionna_tutorial_part4.html +++ b/docs/examples/Sionna_tutorial_part4.html @@ -867,6 +867,15 @@

Imports os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna as sn +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna as sn + # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu import tensorflow as tf @@ -880,15 +889,6 @@

Imports # Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna as sn -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna as sn - import numpy as np # For saving complex Python data structures efficiently diff --git a/docs/examples/Sionna_tutorial_part4.ipynb b/docs/examples/Sionna_tutorial_part4.ipynb index a3126788..64ae148f 100644 --- a/docs/examples/Sionna_tutorial_part4.ipynb +++ b/docs/examples/Sionna_tutorial_part4.ipynb @@ -77,6 +77,15 @@ "\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna as sn\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna as sn\n", + "\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", "import tensorflow as tf\n", @@ -90,15 +99,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna as sn\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna as sn\n", - "\n", "import numpy as np\n", "\n", "# For saving complex Python data structures efficiently\n", @@ -914,7 +914,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/docs/examples/Weighted_BP_Algorithm.html b/docs/examples/Weighted_BP_Algorithm.html index ca9255e5..a2be0eb2 100644 --- a/docs/examples/Weighted_BP_Algorithm.html +++ b/docs/examples/Weighted_BP_Algorithm.html @@ -889,6 +889,15 @@

GPU Configuration and Importsos.environ["CUDA_VISIBLE_DEVICES"] = f"{gpu_num}" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' +# Import Sionna +try: + import sionna +except ImportError as e: + # Install Sionna if package is not already installed + import os + os.system("pip install sionna") + import sionna + import tensorflow as tf # Configure the notebook to use only a single GPU and allocate only as much memory as needed # For more details, see https://www.tensorflow.org/guide/gpu @@ -901,15 +910,6 @@

GPU Configuration and Imports# Avoid warnings from TensorFlow tf.get_logger().setLevel('ERROR') -# Import Sionna -try: - import sionna -except ImportError as e: - # Install Sionna if package is not already installed - import os - os.system("pip install sionna") - import sionna - # Import required Sionna components from sionna.fec.ldpc import LDPCBPDecoder, LDPC5GEncoder, LDPC5GDecoder from sionna.utils.metrics import BitwiseMutualInformation diff --git a/docs/examples/Weighted_BP_Algorithm.ipynb b/docs/examples/Weighted_BP_Algorithm.ipynb index 09488af8..d12d586c 100644 --- a/docs/examples/Weighted_BP_Algorithm.ipynb +++ b/docs/examples/Weighted_BP_Algorithm.ipynb @@ -77,6 +77,15 @@ " os.environ[\"CUDA_VISIBLE_DEVICES\"] = f\"{gpu_num}\"\n", "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n", "\n", + "# Import Sionna\n", + "try:\n", + " import sionna\n", + "except ImportError as e:\n", + " # Install Sionna if package is not already installed\n", + " import os\n", + " os.system(\"pip install sionna\")\n", + " import sionna\n", + "\n", "import tensorflow as tf\n", "# Configure the notebook to use only a single GPU and allocate only as much memory as needed\n", "# For more details, see https://www.tensorflow.org/guide/gpu\n", @@ -89,15 +98,6 @@ "# Avoid warnings from TensorFlow\n", "tf.get_logger().setLevel('ERROR')\n", "\n", - "# Import Sionna\n", - "try:\n", - " import sionna\n", - "except ImportError as e:\n", - " # Install Sionna if package is not already installed\n", - " import os\n", - " os.system(\"pip install sionna\")\n", - " import sionna\n", - "\n", "# Import required Sionna components\n", "from sionna.fec.ldpc import LDPCBPDecoder, LDPC5GEncoder, LDPC5GDecoder\n", "from sionna.utils.metrics import BitwiseMutualInformation\n", @@ -1089,7 +1089,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": {