NVlabs / sionna

Sionna: An Open-Source Library for Next-Generation Physical Layer Research
https://nvlabs.github.io/sionna
Other
787 stars 224 forks source link

AttributeError when running tutorial part 3 #176

Closed lkh9908 closed 1 year ago

lkh9908 commented 1 year ago

I am running tutorial part 3 provided in https://nvlabs.github.io/sionna/examples/Sionna_tutorial_part3.html

And I got AttributeError: Exception encountered when calling layer 'lmmse_equalizer' (type LMMSEEqualizer).

module 'sionna' has no attribute 'config'

at

x_hat, no_eff = lmmse_equ([y, h_hat, err_var, no])

How should I fix it? Or is it caused by a patch update?

jhoydis commented 1 year ago

Hi,

I am not able to reproduce this error.

Which version of Sionna are you using (print(sn.__version__))?

Could you run print(dir(sn)) in a new cell in the notebook and copy & paste the output?

lkh9908 commented 1 year ago

Thank you for the fase response: print(sn.version):

0.15.0

print(dir(sn)):

['ALPHA_MAX', 'Config', 'DIELECTRIC_PERMITTIVITY_VACUUM', 'H', 'PI', 'SPEED_OF_LIGHT', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'version', 'channel', 'config', 'fec', 'mapping', 'mimo', 'nr', 'ofdm', 'rt', 'signal', 'utils']

And the error occurs at: x_hat, no_eff = lmmse_equ([y, h_hat, err_var, no])

jhoydis commented 1 year ago

As you can see, the module sionna (imported as sn) has the property config. Not sure what is going on. Have you tried to restart the kernel? Could you provide a minimum code example that leads to the error?

lkh9908 commented 1 year ago

I will try restarting the kernel, I have not changed anything from the original example online.

Thank you!

jhoydis commented 1 year ago

Closed due to inactivity.