Create folder-based module and use VERSION file
use VERSION to avoid importing the module before it's installedmaster
bovenliggende
f68ab6bedb
commit
50e3822eac
@ -1,2 +1,3 @@
|
||||
include README.md
|
||||
include LICENSE.md
|
||||
include float_raster/VERSION
|
||||
|
@ -0,0 +1 @@
|
||||
0.4
|
@ -0,0 +1,16 @@
|
||||
"""
|
||||
Module for rasterizing polygons, with float-precision anti-aliasing on
|
||||
a non-uniform rectangular grid.
|
||||
|
||||
See the documentation for float_raster.raster(...) for details.
|
||||
"""
|
||||
|
||||
import pathlib
|
||||
|
||||
from .float_raster import *
|
||||
|
||||
__author__ = 'Jan Petykiewicz'
|
||||
|
||||
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
|
||||
__version__ = f.read().strip()
|
||||
|
@ -1,19 +1,8 @@
|
||||
"""
|
||||
Module for rasterizing polygons, with float-precision anti-aliasing on
|
||||
a non-uniform rectangular grid.
|
||||
|
||||
See the documentation for raster(...) for details.
|
||||
"""
|
||||
|
||||
from typing import Tuple
|
||||
import numpy
|
||||
from numpy import logical_and, diff, floor, ceil, ones, zeros, hstack, full_like, newaxis
|
||||
from scipy import sparse
|
||||
|
||||
__author__ = 'Jan Petykiewicz'
|
||||
|
||||
version = '0.4'
|
||||
|
||||
|
||||
def raster(vertices: numpy.ndarray,
|
||||
grid_x: numpy.ndarray,
|
Laden…
Verwijs in nieuw issue