DeepMIMO Forum
[Solved] module 'DeepMIMO' has no attribute 'default_params'
Traceback (most recent call last):
File "D:\venv\lib\site-packages\IPython\core\interactiveshell.py", line 3417, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-1857049f5b34>", line 1, in <module>
runfile('E:/PythonCode/DeepMIMOv2/DeepMIMO.py', wdir='E:/PythonCode/DeepMIMOv2')
File "D:\Program Files\JetBrains\PyCharm 2020.2.2\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "D:\Program Files\JetBrains\PyCharm 2020.2.2\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:/PythonCode/DeepMIMOv2/DeepMIMO.py", line 11, in <module>
import DeepMIMO
File "D:\Program Files\JetBrains\PyCharm 2020.2.2\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "E:\PythonCode\DeepMIMOv2\DeepMIMO.py", line 15, in <module>
parameters = DeepMIMO.default_params()
AttributeError: module 'DeepMIMO' has no attribute 'default_params'
Hello,
I think you named your file DeepMIMO.py, which is the same name as the package. That's why when you try to import the module, it imports your own python file.
Please try to change the name of your file to a different name and try again.
Thanks,
Umut Demirhan
parameters['user_row_last'] = 2
# To activate the half of the selected rows randomly, set
parameters['row_subsampling'] = 0.5
# To activate the half of the users in each selected row randomly, set
parameters['user_subsampling'] = 0.01
parameters['active_BS'] = np.array([1, 11])
# Define 3 different antennas:
antenna1 = {'shape': np.array([1, 32, 1]),
'spacing': 0.5}
antenna2 = {'shape': np.array([1, 6, 8]),
'spacing': 0.5}
dataset[0]['user']['distance'][0]
Out[4]: 95.82479858398438
dataset[0]['user']['distance'][1]
Out[5]: 98.51629638671875
dataset[1]['user']['distance'][1]
Out[6]: 98.51629638671875
dataset[1]['user']['distance'][0]
Out[7]: 95.82479858398438
the distance of the user from different BS are same, and the path loss are different too . even if i choose BS11 and BS1 which are the most far.
Hello,
We have checked the current DeepMIMOv2 python generation code and we have received a different output:
dataset[0]['user']['distance'][0] Out[2]: 95.82479858398438 dataset[0]['user']['distance'][1] Out[3]: 98.51629638671875 dataset[1]['user']['distance'][1] Out[4]: 555.39599609375 dataset[1]['user']['distance'][0] Out[5]: 554.9249877929688
May you please try to regenerate using the current python generation code and provide the numbers you are getting if the problem is still there? thank you.
Leave a reply
-
Channel Generation with 1 OFDM sub-carrier
2 months ago
-
Cannot open the datafile
7 months ago
Latest Post: Error in implementation of "Deep Learning Coordinated Beamforming for Highly-Mobile Millimeter Wave Systems" Our newest member: Kavitha Recent Posts Unread Posts Tags
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed