Skip to content

FIX: fix minor bug in handling of vmin and vmax - #681

Merged
mvdoc merged 1 commit into
mainfrom
fix_vmin_vmax_wNans
Aug 20, 2026
Merged

FIX: fix minor bug in handling of vmin and vmax #681
mvdoc merged 1 commit into
mainfrom
fix_vmin_vmax_wNans

Conversation

@marklescroart

Copy link
Copy Markdown
Contributor

replaces old cast code when vmin and vmax are not specified

@kroq-gar78
kroq-gar78 requested a balanced review from Copilot August 20, 2026 22:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mvdoc
mvdoc merged commit 5482c8b into main Aug 20, 2026
13 checks passed
@mvdoc
mvdoc deleted the fix_vmin_vmax_wNans branch August 20, 2026 23:49
mvdoc added a commit that referenced this pull request Aug 21, 2026
Brings in #681, which fixes vmin/vmax being left as numpy float32 when not
specified. That matters here: since show() now serializes the metadata at
page-generation time rather than once at startup, a dataview with computed
vmin/vmax made every subsequent GET /mixer.html fail with
"Object of type float32 is not JSON serializable" -- so addData could
silently leave a running viewer unable to reload.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PLJk77nSbbqh7QRFzhWbmB
mvdoc added a commit to mvdoc/pycortex that referenced this pull request Aug 21, 2026
* origin/main: (44 commits)
  WebGL viewer: make opacity slider and `o` toggle work for Vertex data (gallantlab#685)
  docs(mapper): add get_mapper docstring (gallantlab#686)
  ENH add types for dataset classes (BrainData, Dataview, ...) (gallantlab#669)
  Allow viewer data to be updated in real-time (gallantlab#675)
  FIX: fix minor bug in handling of vmin and vmax when not specified (replaces old cast code) (gallantlab#681)
  docs: correct the sulcus install instructions, which destroyed existing sulci (gallantlab#657)
  WebGL viewer: fix help-menu shortcut display (gallantlab#642)
  MNT ignore docs build outputs written into the source tree (gallantlab#680)
  DOC fix build warnings (gallantlab#673)
  webgl: bind an OS-assigned ephemeral port for the viewer server (gallantlab#676)
  ENH add types for Database and transforms (gallantlab#667)
  MNT remove obsolete Python 2 syntax, add some types (gallantlab#666)
  Bump JamesIves/github-pages-deploy-action from 4.8.0 to 4.9.0 (gallantlab#671)
  Bump actions/setup-python from 6 to 7 (gallantlab#661)
  docs: document in-browser sulcus drawing (pycortex-roidraw v0.4.0) (gallantlab#656)
  ENH Pure-python surf2surf matrix (direct nnfr construction) (gallantlab#651)
  Bump actions/cache from 5 to 6 (gallantlab#654)
  webgl: fix overlay/label async texture-bake races (complete) (gallantlab#653)
  docs: add in-browser ROI drawing (pycortex-roidraw) page (gallantlab#652)
  FIX: update BuWtRd and BuWtRd_alpha colormaps to have pure white at center, more sensible for biphasic data (gallantlab#649)
  ...

# Conflicts:
#	cortex/quickflat/composite.py
#	cortex/utils.py
#	cortex/webgl/resources/js/shaderlib.js
#	cortex/webgl/view.py
alexhuth pushed a commit that referenced this pull request Aug 21, 2026
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.

3 participants