Closed milesbodmer closed 4 years ago
I am encountering a similar issue when trying to run the demo codes using binder.
I'm pretty sure it's caused by a compatibility issue between xarray-simlab and xarray 0.14.1. It has been fixed in https://github.com/benbovy/xarray-simlab/pull/69, but I'm gonna pin xarray for the fastscape demo environment until xarray-simlab 0.4 is released.
It should work if you downgrade xarray to 0.14.0 in your environment.
Hi Benoit,
Thank you for your quick reply. I tested things out and they seem to be working for me correctly now.
Thanks!
On Tue, Jan 28, 2020 at 12:50 AM Benoit Bovy notifications@github.com wrote:
Closed #12 https://github.com/fastscape-lem/fastscape/issues/12.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fastscape-lem/fastscape/issues/12?email_source=notifications&email_token=AIROWN3YLVIQNZ7FBIVAXHLQ77WUDA5CNFSM4KLZZ2D2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWHTYYUI#event-2984741969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIROWNZQ4AFIC4QWFSQCDODQ77WUDANCNFSM4KLZZ2DQ .
Hi Benoit,
A related question. When running scripts using Binder or the environment (with the compatible xarray), routines using hvplot appear to fail. The code and error are below from the margin script.
Thank you.
import hvplot.xarrayimport holoviews as hvfrom xshade import hillshadess_ratio_plot = out_ds.mariness_ratio_sea.hvplot.image( x='x', y='y', clim=(0, 1), width=550, height=350, cmap=plt.cm.viridis_r, groupby='out')hillshade_plot = hillshade(out_ds, 'out').hvplot.image( x='x', y='y', cmap=plt.cm.gray, alpha=0.7, colorbar=False, hover=False, groupby='out')ysections = out_ds.topographyelevation.sel(y=[2.5e4, 5e4, 7.5e4])sections_plot = ysections.hvplot.line( by='y', groupby='out', ylim=(-1e3, 1e3), width=550, height=200, legend='top_left',)hv.Layout((ss_ratio_plot hillshade_plot) + sections_plot).cols(1)*
---------------------------------------------------------------------------AttributeError
Traceback (most recent call
last)
On Wed, Jan 29, 2020 at 12:39 PM miles bodmer milesbodmer@gmail.com wrote:
Hi Benoit,
Thank you for your quick reply. I tested things out and they seem to be working for me correctly now.
Thanks!
On Tue, Jan 28, 2020 at 12:50 AM Benoit Bovy notifications@github.com wrote:
Closed #12 https://github.com/fastscape-lem/fastscape/issues/12.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fastscape-lem/fastscape/issues/12?email_source=notifications&email_token=AIROWN3YLVIQNZ7FBIVAXHLQ77WUDA5CNFSM4KLZZ2D2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWHTYYUI#event-2984741969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIROWNZQ4AFIC4QWFSQCDODQ77WUDANCNFSM4KLZZ2DQ .
I see, it's because of a recent change in datashader. I'll fix this.
Hello Benoit,
Sorry to bother you again and thanks for all the help so far. I have 2 colleagues attempting to use FastScape on PCs. They are both encountering the same error when trying to install the required dependencies. They are trying to load the demo environment using the updated .yml file. Attached below is a screenshot of the error message. Any help with this would be greatly appreciated.
Thanks.
[image: Error.PNG]
On Thu, Jan 30, 2020 at 1:39 AM Benoit Bovy notifications@github.com wrote:
Fixed in fastscape-lem/fastscape-demo@105c850 https://github.com/fastscape-lem/fastscape-demo/commit/105c8507faf6eb304929171dd56bc0d392b329c9
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fastscape-lem/fastscape/issues/12?email_source=notifications&email_token=AIROWN2AXJAC5FN72WCEIK3RAKN4DA5CNFSM4KLZZ2D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKKKUJA#issuecomment-580168228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIROWN6RXJ5PMNQP2W2Q3WLRAKN4DANCNFSM4KLZZ2DQ .
I can't see the attached screenshot, but I guess the error message says something like "fastscapelib-f2py not found". fastscapelib-f2py is a dependency of fastscape, but it has is no conda package yet on Windows (hopefully soon when the next release of scikit-build will be available).
Hello,
I am receiving an error when trying to run the tutorial for the basic model. I have loaded the demo environment as per the instructions in the readme.md file and have not modified any of the code.
`out_ds = in_ds.xsimlab.run(model=basic_model)
out_ds
ValueError Traceback (most recent call last)