Hi!,
I hope you are doing well. I'm trying to use the conditional mean spectrum included in the VMTK. However, I'm experience the following issue (also please the attached file from the terminal). Could you please me some guidance to fix it?.
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\ragop\miniconda3\envs\vulkits\lib\tkinter_init_.py", line 1892, in call
return self.func(*args)
File "C:\Users\ragop\Desktop\Non Structural Modelling\10._Vulnerabilitykit\GUI\Start_GUI.py", line 414, in
command=lambda:button_select_gmr(gmrs_location_folderPath_tk_var.get(),IM_tk_var.get(),radio_var.get(),out_demand_folderPath_tk_var.get(),no_gmrs_entry_tk_var.get(),max_scale_factor_entry_tk_var.get(),min_scale_factor_entry_tk_var.get(),imls_entry_tk_var.get(),hzd_disag_filePath_tk_var.get(),vs30_tk_var.get()),
File "C:\Users\ragop\Desktop\Non Structural Modelling\10._Vulnerabilitykit\GUI\Start_GUI.py", line 393, in button_select_gmr
IMs =csm.find_ground_motions(selectionParams,simulatedSpectra,IMs)
File "C:\Users\ragop\Desktop\Non Structural Modelling\10._Vulnerabilitykit\GUI\csm_implementation.py", line 476, in find_ground_motions
temp=np.min(err)
,min_scale_factor_entry_tk_var.get(),imls_entry_tk_var.get(),hzd_disag_filePath_tk_var.get(),vs30_tk_var.get()),
File "C:\Users\ragop\Desktop\Non Structural Modelling\10._Vulnerabilitykit\GUI\Start_GUI.py", line 393, in button_select_gmr
IMs =csm.find_ground_motions(selectionParams,simulatedSpectra,IMs)
File "C:\Users\ragop\Desktop\Non Structural Modelling\10._Vulnerabilitykit\GUI\csm_implementation.py", line 479, in find_ground_motions
temp=np.min(err)
File "<array_function internals>", line 200, in amin
File "C:\Users\ragop\miniconda3\envs\vulkits\lib\site-packages\numpy\core\fromnumeric.py", line 2946, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "C:\Users\ragop\miniconda3\envs\vulkits\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
If you need any additional information, I will happy to share.
Best,
Salvador
![Issue_VM](https://private-user-images.githubusercontent.com/97601361/239565467-43ecb729-29b6-4f80-bc88-63b2fe5ac06e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyMDM1MzEsIm5iZiI6MTcyMzIwMzIzMSwicGF0aCI6Ii85NzYwMTM2MS8yMzk1NjU0NjctNDNlY2I3MjktMjliNi00ZjgwLWJjODgtNjNiMmZlNWFjMDZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDExMzM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1N2FiNzBkZTQ4YWFlNGMxOGY3MDBiMmFiZjM4MjRkYjllMWUyODIyZGI3OGQxYmQ1ZWFjNWJjMGViMWI4ZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-NVUGOQl1DhvjguAJocfJv3iLlqinftWiuLOtjkGR-U)