@@ -213,48 +213,43 @@ class maskAndFuntionality (BASE, WIDGET):
ncFile.close()
defshowInfo(self):
#we get the path of the netCDF file
path=self.tree_data.currentItem().text(0)
"""this function is to show the attributes of the groups if the group is clicked and the groups of the groups if the group of the group is clicked and the attributes of the variables if the variable is clicked"""
#we get the item that is clicked
item=self.tree_data.currentItem()
#we get the name of the item that is clicked
itemName=item.text(0)
#we get the name of the file
fileName=self.text_file.text()
#we open the netCDF file
ncFile=nc.Dataset(path,'r',format='NETCDF4')
#we get the name of the netCDF file to show it in the GUI
ncFileName=os.path.basename(path)
#We get the title of the netCDF file
ncFileTitle=ncFile.title
#convert file name and file title into a QTreeWidgetItem