Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mne/io/egi/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _read_mff_events(filename, sfreq):
marker = {
"name": event["code"],
"start": start,
"start_sample": int(np.fix(start * sfreq)),
"start_sample": int(np.trunc(start * sfreq)),
"end": start + float(event["duration"]) / 1e9,
"chan": None,
}
Expand Down
2 changes: 1 addition & 1 deletion mne/preprocessing/infomax_.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def infomax(
oldsigns = signs

if signcount >= signcount_threshold:
ext_blocks = np.fix(ext_blocks * signcount_step)
ext_blocks = np.trunc(ext_blocks * signcount_step)
signcount = 0

# here we continue after the for loop over the ICA training blocks
Expand Down
2 changes: 1 addition & 1 deletion mne/viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ def _setup_ax_spines(

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

xlims = np.array([xmin, xmax])
temp_ticks = log_fix(xlims)
Expand Down