Skip to content

Commit

Permalink
Y-axis scale on relative DRCs with no fit
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Aug 13, 2018
1 parent ba81bf1 commit 750557e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thunor/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,10 @@ def plot_drc(fit_params, is_absolute=False, color_by=None, color_groups=None,
if fp.fit_obj is not None and \
not isinstance(fp.fit_obj, HillCurveNull):
divisor = fp.fit_obj.divisor
elif fp.fit_obj is None and ctrl_resp is not None:
divisor = np.mean(ctrl_resp)
else:
divisor = np.mean(y_trace)
divisor = 1
y_trace /= divisor
if ctrl_resp is not None:
ctrl_resp /= divisor
Expand Down

0 comments on commit 750557e

Please sign in to comment.