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

FIX: output metadata overwrites image size for all following images #609

Merged
merged 6 commits into from
Jun 27, 2024

Conversation

aeisenbarth
Copy link
Contributor

Closes #608

A cell-level configuration parameter was retrieved and then modified. Since it is a dictionary, the global configuration was modified. By making a copy of the dictionary, the overrides to the dictionary are only local to this specific cell.

I considered to modify get_cell_level_config to always return a copy, to avoid future mistakes when using this API. But it actually returns not the whole cell config as dictionary, but the value for a key, which can be any type (bool etc., and only for render_image_options a dictionary).

@OriolAbril
Copy link
Contributor

@agoose77 see #599 (comment) about the failing tests

@agoose77 agoose77 enabled auto-merge (squash) June 27, 2024 11:45
@agoose77 agoose77 changed the title Fix output metadata overwrites image size for all following images FIX: output metadata overwrites image size for all following images Jun 27, 2024
@agoose77
Copy link
Collaborator

This passes all tests, but there are some deployment bugs related to NumPy 2 that we need to address. Merging.

@agoose77 agoose77 disabled auto-merge June 27, 2024 12:02
@agoose77 agoose77 merged commit ecb3b6e into executablebooks:master Jun 27, 2024
11 of 12 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.

Static output image size distorts executed output images
4 participants