Skip to content

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

Closed
MukundaKatta wants to merge 1 commit into
google:masterfrom
MukundaKatta:fix/generate-spherical-xml-default-typo
Closed

fix(metadata_utils): correct default projection='equiretangular' -> 'equirectangular'#337
MukundaKatta wants to merge 1 commit into
google: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.

@jamiesonpepper

Copy link
Copy Markdown
Collaborator

Sorry saw a new PR today and merged this on #339

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)

3 participants