-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Only copy datetime64 data if it is using non-nanosecond precision. #125
Commits on May 16, 2014
-
convert array of netCDF4.datetime objects to numpy.datetime64 array t…
…o support virtual_variable indexing, pydata#121
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for b303744 - Browse repository at this point
Copy the full SHA b303744View commit details -
restrict the conversion of netCDF4.datetime objects to numpy.datetime…
…64 object to valid years (1677<time<2262)
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for 9dfe284 - Browse repository at this point
Copy the full SHA 9dfe284View commit details -
Handle arbitrary shape time arrays in nctime_to_nptime. Also added th…
…e ability to fallback to netCDF4.datetime objects since this solution does not fix the problem for all calendars in all situations.
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for edcc854 - Browse repository at this point
Copy the full SHA edcc854View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d6a745 - Browse repository at this point
Copy the full SHA 0d6a745View commit details -
Joe Hamman authored and Alex Kleeman committed
May 16, 2014 Configuration menu - View commit details
-
Copy full SHA for e41048c - Browse repository at this point
Copy the full SHA e41048cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c406d2b - Browse repository at this point
Copy the full SHA c406d2bView commit details -
Require only numpy 1.7 for the benefit of readthedocs
ReadTheDocs comes with pre-built packages for the basic scientific python stack, but some of these packages are old (e.g., numpy is 1.7.1). The only way to upgrade packages on readthedocs is to use a virtual environment and a requirements.txt. Unfortunately, this means we can't upgrade both numpy and pandas simultaneously, because pandas may get built first and link against the wrong version of numpy. We inadvertantly stumbled upon a work around to build the "latest" docs by first installing numpy in the (cached) virtual environment, and then later (in another commit), adding pandas to the requirements.txt file. However, this is a real hack and makes it impossible to maintain different versions of the docs, such as for tagged releases. Accordingly, this commit relaxes the numpy version requirement so we can use a version that readthedocs already has installed. (We actually don't really need a newer version of numpy for any current functionality in xray, although it's nice to have for support for missing value functions like nanmean.)
Configuration menu - View commit details
-
Copy full SHA for ec778a7 - Browse repository at this point
Copy the full SHA ec778a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c6b032 - Browse repository at this point
Copy the full SHA 1c6b032View commit details -
Add further testing for single element time ordinals.
Expanded warnings for when non numpy.datetime64 arrays are returned. Use context manager for warnings in test_conventions.py.
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for 8d95d38 - Browse repository at this point
Copy the full SHA 8d95d38View commit details -
filter warnings from earlier tests
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for e25cfcd - Browse repository at this point
Copy the full SHA e25cfcdView commit details -
correct filter message for warnings
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for a3f21d3 - Browse repository at this point
Copy the full SHA a3f21d3View commit details -
add test to catch fallback warnings, insure returning a numpy array d…
…uring fallback of single element
Joe Hamman authored and Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for 69a9aa7 - Browse repository at this point
Copy the full SHA 69a9aa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dd0d69 - Browse repository at this point
Copy the full SHA 3dd0d69View commit details -
Only copy datetime64 data if it is using non-nanosecond precision.
Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for 3e870e2 - Browse repository at this point
Copy the full SHA 3e870e2View commit details -
Convert datetime objects to datetime64 upon variable creation in
an attempt to standardize time handling. NOTE: virtual variable slicing is now broken, so do not submit.
Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for d88e54f - Browse repository at this point
Copy the full SHA d88e54fView commit details -
Added utils.safe_timestamp() which avoids issues when datetime[ns]
variables get cast to integers.
Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for 6bf4cc3 - Browse repository at this point
Copy the full SHA 6bf4cc3View commit details -
Updated test_variable to deal with python 3 unicode types
Alex Kleeman committedMay 16, 2014 Configuration menu - View commit details
-
Copy full SHA for d09708a - Browse repository at this point
Copy the full SHA d09708aView commit details