-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #518 from danielgafni/isort-and-autoflake-refactor
Applied isort and autoflake; Converted all relative imports to absolute
- Loading branch information
Showing
74 changed files
with
490 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort | ||
entry: isort . --settings-file pyproject.toml | ||
language: system | ||
pass_filenames: false | ||
- id: black | ||
name: black | ||
entry: black . | ||
language: system | ||
pass_filenames: false | ||
- id: autoflake | ||
name: autoflake | ||
entry: autoflake | ||
language: system | ||
types: [ python ] | ||
args: [ --in-place, --remove-all-unused-imports, --remove-duplicate-keys ] | ||
files: ^bindsnet/|test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
from pathlib import Path | ||
|
||
from . import ( | ||
utils, | ||
network, | ||
models, | ||
from bindsnet import ( | ||
analysis, | ||
preprocessing, | ||
conversion, | ||
datasets, | ||
encoding, | ||
pipeline, | ||
learning, | ||
evaluation, | ||
environment, | ||
conversion, | ||
evaluation, | ||
learning, | ||
models, | ||
network, | ||
pipeline, | ||
preprocessing, | ||
utils, | ||
) | ||
|
||
ROOT_DIR = Path(__file__).parents[0].parents[0] | ||
|
||
|
||
__all__ = [ | ||
"utils", | ||
"network", | ||
"models", | ||
"analysis", | ||
"preprocessing", | ||
"datasets", | ||
"encoding", | ||
"pipeline", | ||
"learning", | ||
"evaluation", | ||
"environment", | ||
"conversion", | ||
"ROOT_DIR", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from . import plotting, visualization, pipeline_analysis | ||
from bindsnet.analysis import pipeline_analysis, plotting, visualization | ||
|
||
__all__ = ["plotting", "visualization", "pipeline_analysis"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
from .conversion import ( | ||
Permute, | ||
from bindsnet.conversion.conversion import ( | ||
ConstantPad2dConnection, | ||
FeatureExtractor, | ||
SubtractiveResetIFNodes, | ||
PassThroughNodes, | ||
Permute, | ||
PermuteConnection, | ||
ConstantPad2dConnection, | ||
data_based_normalization, | ||
SubtractiveResetIFNodes, | ||
ann_to_snn, | ||
data_based_normalization, | ||
) | ||
|
||
__all__ = [ | ||
"Permute", | ||
"FeatureExtractor", | ||
"SubtractiveResetIFNodes", | ||
"PassThroughNodes", | ||
"PermuteConnection", | ||
"ConstantPad2dConnection", | ||
"data_based_normalization", | ||
"ann_to_snn", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from typing import Optional, Iterable, Union | ||
from typing import Iterable, Optional, Union | ||
|
||
import torch | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.