mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 13:43:47 +08:00
Fix phenotype example
This was not being testing, and had the wrong output. I also changed this to print 2dp with a loop to help with the numpy2 scalar repr changes.
This commit is contained in:
@ -179,26 +179,43 @@ is therefore one hour.
|
||||
|
||||
>>> well[:10]
|
||||
[12.0, 37.0, 44.0, 44.0, 44.0, 44.0, 44.0, 44.0, 44.0, 44.0]
|
||||
>>> well[9.55]
|
||||
44.0
|
||||
|
||||
Different time intervals can be used, for instance five minutes:
|
||||
|
||||
.. cont-doctest
|
||||
|
||||
.. code:: pycon
|
||||
|
||||
>>> well[63:64:0.083]
|
||||
[12.0, 37.0, 44.0, 44.0, 44.0, 44.0, 44.0, 44.0, 44.0, 44.0]
|
||||
>>> well[9.55]
|
||||
44.0
|
||||
>>> well[63.33:73.33]
|
||||
[113.31999999999999,
|
||||
117.0,
|
||||
120.31999999999999,
|
||||
128.0,
|
||||
129.63999999999999,
|
||||
132.95999999999998,
|
||||
136.95999999999998,
|
||||
140.0,
|
||||
142.0,
|
||||
nan]
|
||||
>>> for value in well[63 : 64 : 5 / 60]:
|
||||
... print(f"{value:0.2f}")
|
||||
...
|
||||
110.00
|
||||
111.00
|
||||
112.00
|
||||
113.00
|
||||
113.33
|
||||
113.67
|
||||
114.00
|
||||
114.33
|
||||
114.67
|
||||
115.00
|
||||
115.00
|
||||
115.00
|
||||
>>> for value in well[63.33:73.33]:
|
||||
... print(f"{value:0.2f}")
|
||||
...
|
||||
113.32
|
||||
117.00
|
||||
120.32
|
||||
128.00
|
||||
129.64
|
||||
132.96
|
||||
136.96
|
||||
140.00
|
||||
142.00
|
||||
nan
|
||||
|
||||
Control well subtraction
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
Reference in New Issue
Block a user