Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch an exception in metsis_ts_bokeh.utils.inc due to new plotting API #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

epifanio
Copy link

I added an hackish ' if statment ' which temporary handles the new plotting API to support the plotting of vertical profiles.
In such case the get adc_get_ts_bokeh_plot_vars will return x_axis instead of y_axis based on the NetCDF dimensions.

the hack works but one time only .. If I use a necdf that reurns a non empty y_axis .. when trying again the netcdf which requires the x_axis .. it doesn't work anymore. seems the variables are cached in the system.
To get it to work I added unset($y_vars); at the end after the loop.

I added an hackish ' if statment '  which temporary handles the new plotting API  to support the plotting of vertical profiles.
In such case the get `adc_get_ts_bokeh_plot_vars` will return `x_axis` instead of `y_axis` based on the NetCDF dimensions.
catch an exception in metsis_ts_bokeh.utils.inc due to new plotting API
@epifanio
Copy link
Author

my hack seems doesn't work .. neither with the unset variables

@epifanio
Copy link
Author

seems the module use some cache system .. which prevent the list of vars to be updated when using a different netcdf resource.

testing as admin it seems to work, while non-admin doesn't work .. .and uses a cached version of last url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant