Skip to content

Instantly share code, notes, and snippets.

View nathan-sixnines's full-sized avatar

Nathan Epstein nathan-sixnines

View GitHub Profile
import math
import numpy as np
# very simple discrete "convolution" of 1D filter [1,1,0] over input B
# example: input: 00010
# output: 00110
# input: 01110
# output: 12210
def convoleBasic(a,b):
@nathan-sixnines
nathan-sixnines / shapecutter.py
Last active June 18, 2019 23:38
Functions to assist using shapely and ezdzf
# Draws shape to modelspace
def drawShape(shape,msp):
if(shape.type == 'Polygon'):
drawLineRing(shape.exterior,msp)
for linering in shape.interiors:
import sys
import string
import matplotlib.dates as mdates
#lines, warnings, errors
timeBuckets = [[],[],[]]
hoursList = []