Skip to content

Commit

Permalink
dropped python 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
vvbragin committed Apr 29, 2024
1 parent 2556f56 commit ff8bb97
Show file tree
Hide file tree
Showing 73 changed files with 1 addition and 739 deletions.
9 changes: 0 additions & 9 deletions netpyne/analysis/csd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from future import standard_library

standard_library.install_aliases()

try:
basestring
except NameError:
Expand Down
11 changes: 0 additions & 11 deletions netpyne/analysis/dipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,13 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

import os
from builtins import range
from builtins import round
from builtins import str

try:
basestring
except NameError:
basestring = str

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
5 changes: 0 additions & 5 deletions netpyne/analysis/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

import warnings

import numpy as np
Expand Down
9 changes: 0 additions & 9 deletions netpyne/analysis/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

try:
basestring
except NameError:
basestring = str

from builtins import zip
from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
8 changes: 0 additions & 8 deletions netpyne/analysis/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
"""

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

try:
Expand Down
12 changes: 0 additions & 12 deletions netpyne/analysis/lfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,11 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from builtins import range
from builtins import round
from builtins import str

try:
basestring
except NameError:
basestring = str

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
12 changes: 0 additions & 12 deletions netpyne/analysis/lfp_orig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,11 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from builtins import range
from builtins import round
from builtins import str

try:
basestring
except NameError:
basestring = str

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
15 changes: 0 additions & 15 deletions netpyne/analysis/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,11 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from builtins import open
from builtins import next
from builtins import range
from builtins import str

try:
basestring
except NameError:
basestring = str
from builtins import zip

from builtins import round
from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
8 changes: 0 additions & 8 deletions netpyne/analysis/rxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,11 @@
"""

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

try:
basestring
except NameError:
basestring = str

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
13 changes: 0 additions & 13 deletions netpyne/analysis/spikes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"""

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from future import standard_library

standard_library.install_aliases()

from builtins import round
from builtins import open
from builtins import range

try:
to_unicode = unicode
except NameError:
Expand Down
14 changes: 0 additions & 14 deletions netpyne/analysis/spikes_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,11 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from builtins import dict
from builtins import round
from builtins import str

try:
basestring
except NameError:
basestring = str
from builtins import range
from builtins import zip

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
13 changes: 0 additions & 13 deletions netpyne/analysis/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"""

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from future import standard_library

standard_library.install_aliases()

from builtins import round
from builtins import open
from builtins import range

try:
to_unicode = unicode
except NameError:
Expand Down
10 changes: 0 additions & 10 deletions netpyne/analysis/traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,11 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from builtins import range
from builtins import str

try:
basestring
except NameError:
basestring = str
from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
12 changes: 0 additions & 12 deletions netpyne/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
"""

from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import

from builtins import round
from builtins import open
from builtins import range

# required to make json saving work in Python 2/3
try:
to_unicode = unicode
Expand All @@ -22,9 +13,6 @@
except NameError:
basestring = str

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

if __gui__:
Expand Down
8 changes: 0 additions & 8 deletions netpyne/analysis/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
"""

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import

from future import standard_library

standard_library.install_aliases()
from netpyne import __gui__

try:
Expand Down
7 changes: 0 additions & 7 deletions netpyne/batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,4 @@
"""

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library

standard_library.install_aliases()
from .batch import Batch
14 changes: 0 additions & 14 deletions netpyne/batch/asd_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@
"""

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import

from builtins import zip

from builtins import range
from builtins import open
from builtins import str
from future import standard_library

standard_library.install_aliases()

# required to make json saving work in Python 2/3
try:
to_unicode = unicode
Expand Down
14 changes: 0 additions & 14 deletions netpyne/batch/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@
"""

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import

from builtins import zip

from builtins import range
from builtins import open
from builtins import str
from future import standard_library

standard_library.install_aliases()

# required to make json saving work in Python 2/3
try:
to_unicode = unicode
Expand Down
13 changes: 0 additions & 13 deletions netpyne/batch/evol.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,7 @@
"""

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import

from builtins import zip

from builtins import range
from builtins import open
from builtins import str
from ctypes import util
from future import standard_library

standard_library.install_aliases()

# required to make json saving work in Python 2/3
try:
Expand Down
Loading

0 comments on commit ff8bb97

Please sign in to comment.