Skip to content

Instantly share code, notes, and snippets.

@simecek
Last active July 15, 2024 13:30
Show Gist options
  • Save simecek/fbe0fa354d5771d6fc82c2a3dc80696a to your computer and use it in GitHub Desktop.
Save simecek/fbe0fa354d5771d6fc82c2a3dc80696a to your computer and use it in GitHub Desktop.
named-constructors.ipynb
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sjvrijn
Copy link

sjvrijn commented Jul 15, 2024

width, height = base_height / (2 ** (number // 2)), base_width / (2 ** ((number + 1) // 2))

should have the number vs number + 1 swapped around, i.e.,

width, height = base_height / (2 ** ((number + 1) // 2)), base_width / (2 ** (number // 2))

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