Skip to content

Fix: Read surface properties from nested surface_properties dict#222

Open
shaunmorris wants to merge 1 commit intoredruin1:mainfrom
shaunmorris:fix-surface-properties
Open

Fix: Read surface properties from nested surface_properties dict#222
shaunmorris wants to merge 1 commit intoredruin1:mainfrom
shaunmorris:fix-surface-properties

Conversation

@shaunmorris
Copy link
Copy Markdown

The get_surface_properties function was incorrectly reading properties (solar-power, magnetic-field, pressure, gravity) directly from the surface object. Now correctly reads from surface.get('surface_properties', {}) to match the actual data structure.

Added a test in data/planets.py to verify that Fulgora's data is now different that Nauvis'.

The get_surface_properties function was incorrectly reading properties
(solar-power, magnetic-field, pressure, gravity) directly from the surface
object. Now correctly reads from surface.get('surface_properties', {}) to
match the actual data structure.

Added a test in data/planets.py to verify that Fulgora's data is now
different that Nauvis'.
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