Skip to content

Instantly share code, notes, and snippets.

🐌
I'll be slow to respond - I operate a notification pull (not push) policy

Phil Elson pelson

🐌
I'll be slow to respond - I operate a notification pull (not push) policy
Block or report user

Report or block pelson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pelson
pelson / README.md
Last active Feb 4, 2020
Demonstration of pypi_simple and parsing wheel (PEP427) filenames
View README.md

Demonstrates how to use pypi_simple to parse and manipulate PyPI wheel package metadata.

It takes quite some effort to figure out if a wheel is compatible with your system (platform_tag) and your Python version (python_tag), not to mention other features such as abi-tag, yanked status etc.. All in all, this points at a need for a high-level interface for package resolving with pip. (e.g. pip-tools, poetry, pip/wheel itself)

Stdout as of 2020-02-04:

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): pypi.org:443
@pelson
pelson / index.ipynb
Created Apr 17, 2019
(old) Iris based interpolators, including spline and triangulation
View index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Last active Apr 17, 2019
(old) Playing with Shapely and the 2012 Olympic torch track
View index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Created Apr 17, 2019
(old) Demo of automatic front and feature identification
View index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / gfort.sh
Last active Mar 15, 2019
Demonstration of Intel Fortran compiler issue
View gfort.sh
gfortran -g main.f90 -fbacktrace -O0 && ./a.out
@pelson
pelson / .gitignore
Last active Feb 27, 2019
A quick proof-of-concept to wrap a C++ object in a Fortran 2003 object, and honouring the C++ object lifecycle
View .gitignore
bin/
*.o
*.mod
.nfs*
@pelson
pelson / index.ipynb
Created Jan 20, 2019
CPython grammar and negative numbers - they only appear after an AST optimisation
View index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Last active Jan 5, 2019
First pass at documenting the cartopy project_segment algorithm
View index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Last active Aug 31, 2018
A notebook to answer a StackOverflow question (https://stackoverflow.com/questions/51801109) relating to animating the rotation of a projecton using cartopy
View index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View animate_along_great_circle.py
import cartopy.crs as ccrs
import matplotlib.animation as animation
import matplotlib.pyplot as plt
ax = plt.axes(projection=ccrs.Robinson())
ax.stock_img()
ny_lon, ny_lat = -75, 43
delhi_lon, delhi_lat = 77.23, 28.61
You can’t perform that action at this time.