Skip to content

Commit

Permalink
Prepare release v1.0.0 (#411)
Browse files Browse the repository at this point in the history
* setup.py: update requirements

* bump version to v.1.0.0

* solvers: remove hard dependency on cvxopt

* Update changelog

* update copyright notice
  • Loading branch information
luisfabib authored Dec 19, 2022
1 parent 9a65fdf commit da38704
Show file tree
Hide file tree
Showing 22 changed files with 193 additions and 48 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-2022 Luis Fabregas, Stefan Stoll, Gunnar Jeschke, and other contributors
Copyright (c) 2019-2023 Luis Fabregas, Stefan Stoll, Gunnar Jeschke, and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Here is the citation in bibtex format:

DeerLab is licensed under the [MIT License](LICENSE).

Copyright © 2019-2022: Luis Fábregas Ibáñez, Stefan Stoll, Gunnar Jeschke, and [other contributors](https://github.com/JeschkeLab/DeerLab/contributors).
Copyright © 2019-2023: Luis Fábregas Ibáñez, Stefan Stoll, Gunnar Jeschke, and [other contributors](https://github.com/JeschkeLab/DeerLab/contributors).
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.15.0-dev
v1.0.0
2 changes: 1 addition & 1 deletion deerlab/bg_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# bg_models.py - Background parametric models
# ---------------------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
import math as m
Expand Down
2 changes: 1 addition & 1 deletion deerlab/bootstrap_analysis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# bootstrap_analysis.py - Bootstrap analysis for uncertainty estimation
# --------------------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
import types
Expand Down
2 changes: 1 addition & 1 deletion deerlab/classes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
from deerlab.utils import Jacobian, nearest_psd
Expand Down
2 changes: 1 addition & 1 deletion deerlab/correctzerotime.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# correctzerotime.py - Zero-time correction of dipolar signals
#--------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
import scipy as scp
Expand Down
2 changes: 1 addition & 1 deletion deerlab/dd_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dd_models.py - Distance distribtion parametric models
# ---------------------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.


import inspect
Expand Down
2 changes: 1 addition & 1 deletion deerlab/dipolarbackground.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dipolarbackground.py - Multipathway background generator
# --------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
import inspect
Expand Down
2 changes: 1 addition & 1 deletion deerlab/dipolarkernel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dipolarkernel.py - Dipolar kernel operator
# -----------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

# Numpy + SciPy
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion deerlab/distancerange.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# distancerange.py - DeerAnalysis distance axis constructor
# ------------------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.
import numpy as np

def distancerange(t, nr=None):
Expand Down
2 changes: 1 addition & 1 deletion deerlab/diststats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# diststats.py - Distance distribution descriptors
# -----------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
import warnings
Expand Down
2 changes: 1 addition & 1 deletion deerlab/fftspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# fftspec.py - Fast-Fourier transform spectrum
# ---------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
from numpy.fft import fft, fftshift, fftfreq
Expand Down
2 changes: 1 addition & 1 deletion deerlab/model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# model.py - DeerLab's modeling interface
# ---------------------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
from scipy.sparse import block_diag
Expand Down
2 changes: 1 addition & 1 deletion deerlab/noiselevel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# noiselevel.py - Noise level estimator
# -----------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

from numpy import isreal, std, mean, shape, atleast_1d
from deerlab.utils import movmean, der_snr
Expand Down
2 changes: 1 addition & 1 deletion deerlab/profile_analysis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# profile_analysis.py - Likelihood/Objective function
# --------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
from scipy.stats import chi2
Expand Down
2 changes: 1 addition & 1 deletion deerlab/regoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# regoperator.py - Regularization Operators
# --------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion deerlab/selregparam.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# selregparam.py - Regularization parameter selection
# -----------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

import numpy as np
import scipy.optimize as opt
Expand Down
6 changes: 3 additions & 3 deletions deerlab/solvers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# solvers.py - Collection of least-squares solvers
# --------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2022: Luis Fabregas, Stefan Stoll and other contributors.
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.

# External dependencies
import numpy as np
import cvxopt as cvx
import matplotlib.pyplot as plt
from scipy.optimize import least_squares, lsq_linear
# DeerLab dependencies
Expand Down Expand Up @@ -1172,7 +1171,8 @@ def cvxnnls(AtA, Atb, tol=None, maxiter=None,x0=None):
Global analysis of complex PELDOR time traces
"""

import cvxopt as cvx

N = np.shape(AtA)[1]
if tol is None:
eps = np.finfo(float).eps
Expand Down
Loading

0 comments on commit da38704

Please sign in to comment.