You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gt.load.seaglider_show_variables uses pandas dataframe .style to make a pretty return. This will not work if run from plain python/command line application
To Reproduce
Start a Python session from the command line and load glidertools import glidertools as gt
Get some Seaglider .nc files and point at them filenames = 'data_marina/p*.nc'
gt.load.seaglider_show_variables(filenames)
Get the return: <pandas.io.formats.style.Styler at 0x7fe6bbf98af0>
Expected behavior
Print out a pretty table with all the variables in those .nc files
Cause
The styling commands at lines 53-59 of gt.load.seaglider:
gt.load.seaglider_show_variables uses pandas dataframe .style to make a pretty return. This will not work if run from plain python/command line application
To Reproduce
import glidertools as gt
filenames = 'data_marina/p*.nc'
gt.load.seaglider_show_variables(filenames)
<pandas.io.formats.style.Styler at 0x7fe6bbf98af0>
Expected behavior
Print out a pretty table with all the variables in those .nc files
Cause
The styling commands at lines 53-59 of gt.load.seaglider:
System
Proposed fix
Credit to Marina Azaneu at UEA for discovering this.
The text was updated successfully, but these errors were encountered: