Commit 19c1eb3
Benjamin Moody
convert_dtype: don't change p_signal when smooth_frames is false.
If physical is true, and smooth_frames is false, and e_p_signal is
None, this function should raise an exception. It should not silently
modify p_signal instead.
The previous code didn't make any sense: p_signal is a numpy array, so
you can't change its data type by assigning to a slice of it, and even
if that conversion were possible, the slicing was being done along the
wrong axis. This reverts a dubious change in commit
725e7a6, which seems unrelated to the
rest of that commit.1 parent 0d41603 commit 19c1eb3
1 file changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
716 | 711 | | |
717 | 712 | | |
718 | 713 | | |
| |||
0 commit comments