Skip to content

Commit 7518f98

Browse files
authored
np.fix -> np.trunc (deprecation) (#13594)
1 parent ae887e5 commit 7518f98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mne/io/egi/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _read_mff_events(filename, sfreq):
6868
marker = {
6969
"name": event["code"],
7070
"start": start,
71-
"start_sample": int(np.fix(start * sfreq)),
71+
"start_sample": int(np.trunc(start * sfreq)),
7272
"end": start + float(event["duration"]) / 1e9,
7373
"chan": None,
7474
}

mne/preprocessing/infomax_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def infomax(
247247
oldsigns = signs
248248

249249
if signcount >= signcount_threshold:
250-
ext_blocks = np.fix(ext_blocks * signcount_step)
250+
ext_blocks = np.trunc(ext_blocks * signcount_step)
251251
signcount = 0
252252

253253
# here we continue after the for loop over the ICA training blocks

mne/viz/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,7 @@ def _setup_ax_spines(
19261926

19271927
def log_fix(tval):
19281928
exp = np.log10(np.abs(tval))
1929-
return np.sign(tval) * 10 ** (np.fix(exp) - (exp < 0))
1929+
return np.sign(tval) * 10 ** (np.trunc(exp) - (exp < 0))
19301930

19311931
xlims = np.array([xmin, xmax])
19321932
temp_ticks = log_fix(xlims)

0 commit comments

Comments
 (0)