Skip to content

Instantly share code, notes, and snippets.

View jwiggins's full-sized avatar

John Wiggins jwiggins

View GitHub Profile
@jwiggins
jwiggins / Description.md
Created March 16, 2018 10:15
Windows PyTables & PyInstaller Failure

Freezing a very simple script fails with PyTables 3.3.0 and PyInstaller 3.3.1 on Windows 10.

To create a test environment using the EDM tool:

C:\Enthought\frozen-tables>edm install pytables pywin32 -e frozen_tables
C:\Enthought\frozen-tables>edm run -e frozen_tables -- pip install pyinstaller

Some debugging info:

C:\Enthought\frozen-tables>edm run -e frozen_tables -- python --version
@jwiggins
jwiggins / example_algorithm.py
Created November 12, 2013 16:06
A short example of a processing step...
ARRAYS = {
'2D_VSLICE': ('/vslice',
{'chunked': True,
'title': "Vertical slice of enhanced data"}),
'2D_VSLICE_ORIGINAL': ('/vslice_original',
{'chunked': True,
'title': "Vertical slice of original data"}),
'VSLICE_LOD_N': ('/lod_{0}',
{'chunked': True,
'title': "Vertical slice LOD"}),
from enaml.core.item_model import AbstractListModel, ALIGN_LEFT
class XFileItemModel(AbstractListModel):
""" An AbstractListModel implementation which handles X files.
"""
columns = [
'#',
'X File',
@jwiggins
jwiggins / gist:3840576
Created October 5, 2012 15:39
This is a list model that I'm using for my Enaml ListView. For some reason, the column indices that I'm getting don't compare correctly with integer constants. WTF.
class XFileItemModel(AbstractListModel):
""" An AbstractListModel implementation which handles X files.
"""
columns = [
'#',
'X File',
'Start Time (UTC)',
'Duration',