Skip to content

Fix typos in code comments and docstrings#209

Open
Chessing234 wants to merge 1 commit intogoogle-deepmind:mainfrom
Chessing234:fix/typos-in-comments-and-docstrings
Open

Fix typos in code comments and docstrings#209
Chessing234 wants to merge 1 commit intogoogle-deepmind:mainfrom
Chessing234:fix/typos-in-comments-and-docstrings

Conversation

@Chessing234
Copy link
Copy Markdown

Summary

  • Fix various spelling errors across graphcast.py, model_utils.py, data_utils.py, and autoregressive.py
  • Correct misleading text in the add_node_latitude docstring in model_utils.py where "longitude" was used instead of "latitude"

Changes

graphcast/graphcast.py:

  • "and operates only operates in" -> "and only operates in" (module docstring)
  • "embdded" -> "embedded" (2 occurrences in inline comments)
  • "dimensionaly" -> "dimensionality" (inline comment)
  • "Transfer data frome" -> "Transfer data from"
  • "Conver output" -> "Convert output"

graphcast/model_utils.py:

  • "minues" -> "minus" (2 occurrences in docstrings)
  • "arond" -> "around" (comment in get_rotation_matrices_to_local_coordinates)
  • Fix add_node_latitude docstring in get_graph_spatial_features: changed "longitude"/"longitudes" to "latitude"/"latitudes" since the parameter controls latitude inference

graphcast/data_utils.py:

  • "inverval" -> "interval" (docstring for get_day_progress)

graphcast/autoregressive.py:

  • "Roughtly" -> "Roughly" (docstring for gradient_checkpointing parameter)

Test plan

  • No functional changes; only comments and docstrings are modified
  • Verified all fixes are correct English spellings

🤖 Generated with Claude Code

Fix various spelling errors across multiple source files:
- graphcast.py: "operates only operates" -> "only operates", "embdded" ->
  "embedded" (2 occurrences), "dimensionaly" -> "dimensionality",
  "frome" -> "from", "Conver" -> "Convert"
- model_utils.py: "minues" -> "minus" (2 occurrences), "arond" -> "around",
  fix incorrect "longitude"/"longitudes" in add_node_latitude docstring
  to "latitude"/"latitudes"
- data_utils.py: "inverval" -> "interval"
- autoregressive.py: "Roughtly" -> "Roughly"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Taksh <takshkothari09@gmail.com>
@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 6, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

1 participant