Skip to content

Incorrect raw duration displayed in HTML repr #11202

Closed

Description

@hoechenberger

Originally posted by @hoechenberger in #11196 (comment)

btw there's a bug in the HTML repr that is not present in the text repr:

Screen Shot 2022-09-25 at 02 29 36

import numpy as np
import mne

n_seconds = 1
sfreq = 100
ch_names = ['1']
data = np.ones((len(ch_names), sfreq*n_seconds))
info = mne.create_info(ch_names=ch_names, sfreq=sfreq)
raw = mne.io.RawArray(data, info)

Activity

  1. added this to the 1.2 milestone on Sep 25, 2022
  2. cbrnr commented on Sep 25, 2022

    @cbrnr
    Contributor

    I think that's another argument for having just one repr. I don't like treating stuff separately for notebooks. At the very least, the HTML repr should take the normal repr and extend it when it makes sense, but duplicating what's already in the text repr is prone to such bugs.

  3. hoechenberger commented on Sep 25, 2022

    @hoechenberger
    MemberAuthor

    Yes but I think we've agreed that your point is valid many times before, no? It's just someone has to go ahead and start implementing it already. 🤷‍♀️

  4. cbrnr commented on Sep 25, 2022

    @cbrnr
    Contributor

    I just wanted to make sure 😄.

  5. agramfort commented on Sep 25, 2022

    @agramfort
    SponsorMember
  6. added 3 commits that reference this issue on Sep 25, 2022
    3025d43
    005cac7
    ab608eb
  7. cbrnr commented on Sep 25, 2022

    @cbrnr
    Contributor

    Gotta find the time, but I will do it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions