Skip to content

Instantly share code, notes, and snippets.

@shoyer
shoyer / fails.txt
Created October 25, 2017 03:56
xarray build failure: No module named 'hypothesis.extra.pytestplugin
This file has been truncated, but you can view the full file.
travis_fold:start:worker_info
Worker information
hostname: 1d69df04-f002-4b58-a506-c7b9fba6bdd5@1.i-03218df-production-2-worker-org-ec2.travisci.net
version: v3.1.0 https://github.com/travis-ci/worker/tree/5b106cb773802277034d07b0a865af58d67bb1d2
instance: 51daf6d:travisci/ci-garnet:packer-1503972846 (via amqp)
startup: 527.739487ms
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: python
=============================== warnings summary ===============================
xarray/tests/test_backends.py::NetCDF4DataTest::test_default_fill_value
/home/travis/build/pydata/xarray/xarray/conventions.py:1162: RuntimeWarning: saving variable x with floating point data as an integer dtype without any _FillValue to use for NaNs
for k, v in iteritems(variables))
xarray/tests/test_backends.py::NetCDF4DataStoreAutocloseTrue::test_default_fill_value
/home/travis/build/pydata/xarray/xarray/conventions.py:1162: RuntimeWarning: saving variable x with floating point data as an integer dtype without any _FillValue to use for NaNs
for k, v in iteritems(variables))
xarray/tests/test_backends.py::NetCDF4ViaDaskDataTest::test_default_fill_value
/home/travis/build/pydata/xarray/xarray/conventions.py:1162: RuntimeWarning: saving variable x with floating point data as an integer dtype without any _FillValue to use for NaNs
for k, v in iteritems(variables))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@xr.register_dataset_accessor('crs')
@xr.register_dataarray_accessor('crs')
def make_crs(xarray_obj):
return xarray_obj.coords['crs'].item()
In [24]: ds = xr.Dataset({'x': 1}, coords={'foo': 'bar', 'crs': 'hello, my lovely unwrapped object'})
In [25]: ds
Out[25]:
HDF5 "strings.nc" {
GROUP "/" {
ATTRIBUTE "_NCProperties" {
DATATYPE H5T_STRING {
STRSIZE 8192;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_UTF8;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shoyer
shoyer / xarray-tutorial-cleared.ipynb
Last active November 25, 2023 03:59
Xarray tutorial for Rossbypalooza
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.