Skip to content

Commit

Permalink
Update documentation of datastore class
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Aug 17, 2023
1 parent 66aa9f0 commit 10dfbb4
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/dtscalibration/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,6 @@ def variance_stokes_constant(self, st_label, sections=None, reshape_residuals=Tr
dtscalibration/python-dts-calibration/blob/main/examples/notebooks/\
04Calculate_variance_Stokes.ipynb>`_
"""

# var_I, resid = variance_stokes_constant_util(st_label, sections=None, reshape_residuals=True)
# def variance_stokes_constant_util(st_label, sections=None, reshape_residuals=True):
def func_fit(p, xs):
return p[:xs, None] * p[None, xs:]

Expand Down Expand Up @@ -1020,7 +1017,12 @@ def variance_stokes_exponential(
Parameters
----------
reshape_residuals
suppress_info : bool, optional
Suppress print statements.
use_statsmodels : bool, optional
Use statsmodels to fit the exponential. If `False`, use scipy.
reshape_residuals : bool, optional
Reshape the residuals to the shape of the Stokes intensity
st_label : str
label of the Stokes, anti-Stokes measurement.
E.g., st, ast, rst, rast
Expand Down Expand Up @@ -1706,6 +1708,9 @@ def calibration_single_ended(
variance of the estimate of dalpha.
Covariances between alpha and other parameters are not accounted
for.
fix_alpha : Tuple[array-like, array-like], optional
A tuple containing two array-likes. The first array-like is the integrated
differential attenuation of length x, and the second item is its variance.
Returns
-------
Expand Down Expand Up @@ -3035,7 +3040,7 @@ def create_da_ta2(no, i_splice, direction="fw", chunks=None):
arr = da.concatenate(
(
da.zeros(
(1, i_splice, 1), chunks=((1, i_splice, 1)), dtype=bool
(1, i_splice, 1), chunks=(1, i_splice, 1), dtype=bool
),
da.ones(
(1, no - i_splice, 1),
Expand All @@ -3051,7 +3056,7 @@ def create_da_ta2(no, i_splice, direction="fw", chunks=None):
da.ones((1, i_splice, 1), chunks=(1, i_splice, 1), dtype=bool),
da.zeros(
(1, no - i_splice, 1),
chunks=((1, no - i_splice, 1)),
chunks=(1, no - i_splice, 1),
dtype=bool,
),
),
Expand Down Expand Up @@ -3832,7 +3837,7 @@ def create_da_ta2(no, i_splice, direction="fw", chunks=None):
arr = da.concatenate(
(
da.zeros(
(1, i_splice, 1), chunks=((1, i_splice, 1)), dtype=bool
(1, i_splice, 1), chunks=(1, i_splice, 1), dtype=bool
),
da.ones(
(1, no - i_splice, 1),
Expand All @@ -3848,7 +3853,7 @@ def create_da_ta2(no, i_splice, direction="fw", chunks=None):
da.ones((1, i_splice, 1), chunks=(1, i_splice, 1), dtype=bool),
da.zeros(
(1, no - i_splice, 1),
chunks=((1, no - i_splice, 1)),
chunks=(1, no - i_splice, 1),
dtype=bool,
),
),
Expand Down

0 comments on commit 10dfbb4

Please sign in to comment.