Skip to content

Commit

Permalink
Use Python 3's definition of division in Python 2 (#58)
Browse files Browse the repository at this point in the history
Go ahead and switch to using Python 3's definition of division on Python
2 as we are doing division in modules. Though it's worth noting that one
of the values is already floating precision (possibly even complex) when
doing regular division, so this doesn't really affect the result, but it
does make it easier to reason about division in this module. In all
other cases, we are intentionally choosing C-style division in such a
way that it works on Python 2/3 anyways.
  • Loading branch information
jakirkham committed Sep 6, 2018
1 parent 8db18e9 commit e3d5265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dask_image/ndfilters/_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

from __future__ import division

import collections
import inspect
Expand Down
3 changes: 3 additions & 0 deletions dask_image/ndfourier/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-

from __future__ import division


__author__ = """John Kirkham"""
__email__ = "kirkhamj@janelia.hhmi.org"

Expand Down

0 comments on commit e3d5265

Please sign in to comment.