Skip to content

Conversation

@cbrnr
Copy link
Contributor

@cbrnr cbrnr commented May 30, 2023

Since we typically require arguments to be "array-like", I think it is convenient to add such a type union to _validate_type(). I've used this new addition to now accept baseline to be array-like (instead of just tuple).

Let me know if this already exists and I just missed it.

@cbrnr
Copy link
Contributor Author

cbrnr commented May 30, 2023

If this gets accepted, let me know where it goes in our changelog (Enhancement or API?).

@cbrnr cbrnr linked an issue May 30, 2023 that may be closed by this pull request
@hoechenberger
Copy link
Member

(Enhancement or API?).

API

@hoechenberger hoechenberger enabled auto-merge (squash) May 30, 2023 09:56
@cbrnr
Copy link
Contributor Author

cbrnr commented May 30, 2023

Qt/PyVistaQt-related tests failing left and right, but I think my changes are unrelated.

@cbrnr
Copy link
Contributor Author

cbrnr commented May 30, 2023

Re-running failed jobs, maybe they come back green this time. I cannot restart the Cirrus M1 job though.

@hoechenberger
Copy link
Member

I believe the errors are unrelated, @agramfort or @larsoner could you merge this PR please? 🙏

@cbrnr cbrnr force-pushed the baseline-list-like branch from 06c277c to 6302365 Compare May 31, 2023 07:58
@hoechenberger hoechenberger merged commit 917b000 into mne-tools:main May 31, 2023
@cbrnr cbrnr deleted the baseline-list-like branch May 31, 2023 09:12
larsoner added a commit to larsoner/mne-python that referenced this pull request Jun 23, 2023
* upstream/main: (24 commits)
  Allow int-like as ID of make_fixed_length_events (mne-tools#11748)
  Easycap-M43 montage (mne-tools#11744)
  ENH: Create a Calibrations class for eyetracking data (mne-tools#11719)
  Fix alphabetical order in overview/people.rst, fix sphinx formatting in docstrings and set verbose to keyword-only (mne-tools#11745)
  Add Mathieu Scheltienne to MNE-Python Steering Council (mne-tools#11741)
  removed requirement for curv.*h files to create Brain object (mne-tools#11704)
  [BUG] Fix mne.viz.Brain.add_volume_labels matrix ordering bug (mne-tools#11730)
  Fix installer links (mne-tools#11729)
  MAINT: Update for PyVista deprecation (mne-tools#11727)
  MAINT: Update roadmap (mne-tools#11724)
  MAINT: Update download link [skip azp] [skip cirrus] [skip actions]
  fix case for chpi_info[1] == None (mne-tools#11714)
  Add cmap argument for mne.viz.utils.plot_sensors (mne-tools#11720)
  BUG: Fix one more PySide6 bug (mne-tools#11723)
  MAINT: Fix PySide6 and PyVista compat (mne-tools#11721)
  MRG: If _check_fname() cannot find a file, display the path in quotation marks to help spot accidental trailing spaces (mne-tools#11718)
  Add "array-like" to `_validate_type()` (mne-tools#11713)
  MAINT: Avoid problematic PySide6 (mne-tools#11715)
  Fix installer links (mne-tools#11709)
  Updating change log after PR mne-tools#11575 (mne-tools#11707)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Baseline must be a tuple?

3 participants