Skip to content

fix(metadata_utils): correct default projection='equiretangular' -> 'equirectangular'#337

Open
MukundaKatta wants to merge 1 commit intogoogle:masterfrom
MukundaKatta:fix/generate-spherical-xml-default-typo
Open

fix(metadata_utils): correct default projection='equiretangular' -> 'equirectangular'#337
MukundaKatta wants to merge 1 commit intogoogle:masterfrom
MukundaKatta:fix/generate-spherical-xml-default-typo

Conversation

@MukundaKatta
Copy link
Copy Markdown

Fixes #336.

Real defect: generate_spherical_xml() defaulted projection to "equiretangular" (missing 'c') while line 609 does projection == "equirectangular" to branch. So any caller using the default actually falls off the match and produces unexpected XML.

- def generate_spherical_xml(projection="equiretangular", stereo=None, crop=None):
+ def generate_spherical_xml(projection="equirectangular", stereo=None, crop=None):

Kept the parameter name unchanged; only the string default value changes. Callers passing the correct "equirectangular" literal already worked and continue to work; callers relying on the broken default are now actually spherical.

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.

Typo in metadata_utils.generate_spherical_xml signature (equiretangular)

1 participant