DeepMIMO Forum

module 'DeepMIMO' h...
 
Notifications
Clear all

[Solved] module 'DeepMIMO' has no attribute 'default_params'


(@MrLiuwinter)
New Member Guest
Joined: 1 year ago
Posts: 2
Topic starter  

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'


   
QuoteUnsolved
Topic Tags
(@udemirhan)
Member Moderator
Joined: 1 year ago
Posts: 36
 

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

This post was modified 1 year ago by admin_wilab_group

   
ReplyQuote
(@mrliuwinter)
New Member Guest
Joined: 1 year ago
Posts: 2
Topic starter  
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.


   
ReplyQuote
(@aataha)
Member Moderator
Joined: 1 year ago
Posts: 19
 

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.


   
ReplyQuote

Leave a reply

Author Name

Author Email

Title *

Maximum allowed file size is 2MB

 
Preview 0 Revisions Saved
Share: