Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeulen committed Feb 12, 2024
1 parent 543c5d3 commit 41c2515
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
14 changes: 6 additions & 8 deletions chisurf/fluorescence/fret/fret_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ def transfer_efficiency(self) -> float:
return 1.0 - self.fret_species_averaged_lifetime / self.donor_species_averaged_lifetime

@property
def polynom_coefficients(
self
):
def polynom_coefficients(self):
"""
A numpy array with polynomial coefficients approximating the tauX(tauF) conversion function
"""
Expand Down Expand Up @@ -222,7 +220,7 @@ def fdfa_string(self) -> str:
@property
def parameter_values(self):
"""
The values the parameter as defined by :py:attr:`~chisurf.fluorescence.fret_lines.FRETLineGenerator.parameter_name`
The values the parameter as defined by :py:attr:`~chisurf.fluorescence.sm_FRETlines.FRETLineGenerator.parameter_name`
"""
start, stop = self.parameter_range
n_points = self.n_points
Expand Down Expand Up @@ -297,8 +295,8 @@ class StaticFRETLine(
Examples
--------
>>> import chisurf.tools.fret_lines as fret_lines
>>> s = fret_lines.StaticFRETLine()
>>> import chisurf.tools.sm_FRETlines as sm_FRETlines
>>> s = sm_FRETlines.StaticFRETLine()
>>> s.calc()
Now lets look at the conversion function in comparison to a 1:1 relation
Expand Down Expand Up @@ -362,8 +360,8 @@ class DynamicFRETLine(FRETLineGenerator):
Examples
--------
>>> import chisurf.tools.fret_lines as fret_lines
>>> d = fret_lines.DynamicFRETLine()
>>> import chisurf.tools.sm_FRETlines as sm_FRETlines
>>> d = sm_FRETlines.DynamicFRETLine()
>>> print d.model
Model: Gaussian-Donor
Parameter Value Bounds Fixed Linke
Expand Down
2 changes: 0 additions & 2 deletions chisurf/gui/widgets/experiments/tcspc/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ def onParametersChanged(self):
matrix_columns = []
gfactor = float(self.doubleSpinBox_3.value())
pol = 'vm'
if self.radioButton_4.isChecked():
pol = 'vv/vh'
if self.radioButton_3.isChecked():
pol = 'vv'
elif self.radioButton_2.isChecked():
Expand Down

0 comments on commit 41c2515

Please sign in to comment.