-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added flake8 and linted our current code (#4)
- Loading branch information
Showing
28 changed files
with
695 additions
and
725 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- mode: conf; -*- | ||
## flake8 default linting configuration | ||
# | ||
# Loaded by flake8 by default | ||
|
||
[flake8] | ||
# DO NOT check for the following errors: | ||
#F403 unable to detect undefined names | ||
|
||
# E265: block comment should start with '# ' | ||
# (Note: autopep8 will not fix instances of commented-out code) | ||
# E266: too many leading '#' for block comment | ||
# E402: module level import not at top of file | ||
# E701: multiple statements on one line (colon) | ||
# E702: multiple statements on one line (semicolon) | ||
# E704: multiple statements on one line (def) | ||
# E722: do not use bare except, specify exception instead | ||
# E741: do not use variables named 'l', 'O', or 'I' | ||
# W503: line break before binary operator | ||
# W605: invalid escape sequence 'x' | ||
# (Note: would only raise on false-positives in LaTeX samples) | ||
# F401: module imported but unused | ||
# F403: 'from module import *' used; unable to detect undefined names | ||
# F405: name may be undefined, or defined from star imports: module | ||
# N806: variable in function should be lowercase | ||
ignore=F403,E266,W503,W291,W293 | ||
|
||
exclude= | ||
qick/*.py | ||
|
||
# N801 : class name should not be mixed case | ||
# N802 : function name should be lowercase | ||
# N805 : first argument to method should be called 'self' | ||
per-file-ignores = | ||
qickdawg/__init__.py:F401 | ||
qickdawg/nvpulsing/__init__.py:F401 | ||
qickdawg/fitfunctions/__init__.py:F401 | ||
qickdawg/util/__init__.py:F401 | ||
|
||
# 120 characters is a more agreeable max line length for modern displays | ||
max-line-length=120 | ||
|
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
from qickdawg.util import * | ||
from .nvpulsing import * | ||
from .fit_functions import * | ||
from qickdawg.nvpulsing import * | ||
from qickdawg.fitfunctions import * | ||
|
||
# Now using QICK 0.2.160 as of 7/03/2023 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
qickdawg/fit_functions/exponentialdecay.py → qickdawg/fitfunctions/exponentialdecay.py
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,5 +1,6 @@ | ||
import numpy as np | ||
|
||
|
||
def exponential_decay(x, a, t, y0): | ||
|
||
return a*np.exp(-x/t) + y0 | ||
return a * np.exp(-x / t) + y0 |
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.