Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes grid-scan heatmap issue #1502

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

fhernandezvivanco
Copy link
Contributor

@fhernandezvivanco fhernandezvivanco commented Dec 2, 2024

The current version of the code is displaying heatmaps incorrectly (see the figure below). This is probably due to a recent refactor that is passing the wrong argument to the heatMapColorForValue function.

To fix this, I only changed the following line:

this.heatMapColorForValue( gd, result[index], result[index],)

to

this.heatMapColorForValue( gd, result[index], result[index][1],)

The value result[index][1] contains the correct RGBA input values for the heatMapColorForValue function (which is the value that was passed as of version 4.34.0)

heatmap_res

@marcus-oscarsson
Copy link
Member

Thanks, we are using the PNG option so we have not noticed this issue, but very welcome for those using the RGB option.

@marcus-oscarsson marcus-oscarsson merged commit 69283d5 into mxcube:develop Dec 2, 2024
10 checks passed
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.

2 participants