Renamed ss_proxy to solar_system

This commit is contained in:
Thomas Robitaille 2018-12-19 00:34:59 +00:00
Родитель d5ca26a535
Коммит e75caa3136
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -17,7 +17,7 @@ API Documentation
:no-inheritance-diagram:
:no-inherited-members:
.. automodapi:: pywwt.ss_proxy
.. automodapi:: pywwt.solar_system
:no-inheritance-diagram:
:no-inherited-members:

Просмотреть файл

@ -41,7 +41,7 @@ All attributes and methods of solar system mode are housed within the widget's
``solar_system`` object so they're easier to find. Like the sky view, it's
possible to edit this view to your liking. For example, orbit paths are shown
by default, but if you would like to turn them off, use the
:attr:`~pywwt.ss_proxy.SolarSystem.orbits` attribute::
:attr:`~pywwt.solar_system.SolarSystem.orbits` attribute::
>> wwt.solar_system.orbits = False
@ -51,7 +51,7 @@ objects on a scale from 1 (actual size) to 100. We plan to reveal more options
soon to match those currently present in the Web Client.
This mode also comes with its own method,
:meth:`~pywwt.ss_proxy.SolarSystem.track_object`, that centers the viewer on a major
:meth:`~pywwt.solar_system.SolarSystem.track_object`, that centers the viewer on a major
solar system object of your choice as it both rotates and follows its orbital
path::

Просмотреть файл

@ -10,7 +10,7 @@ from .traits import (Color, ColorWithOpacity, Bool,
from .annotation import Circle, Polygon, Line, FieldOfView, CircleCollection
from .imagery import get_imagery_layers, ImageryLayers
from .ss_proxy import SolarSystem
from .solar_system import SolarSystem
from .layers import LayerManager
from .instruments import Instruments
@ -287,7 +287,7 @@ class BaseWWTWidget(HasTraits):
mode = mode.lower()
ss_mode = '3D Solar System View'
solar_system_mode = '3D Solar System View'
if mode in VIEW_MODES_2D:
self._send_msg(event='set_viewer_mode', mode=mode)
@ -296,7 +296,7 @@ class BaseWWTWidget(HasTraits):
else:
self.current_mode = 'planet'
elif mode in VIEW_MODES_3D:
self._send_msg(event='set_viewer_mode', mode=ss_mode)
self._send_msg(event='set_viewer_mode', mode=solar_system_mode)
self.current_mode = mode
else:
raise ValueError('mode should be one of {0}'.format('/'.join(VIEW_MODES_2D + VIEW_MODES_3D)))
@ -314,10 +314,10 @@ class BaseWWTWidget(HasTraits):
if self.current_mode == 'planet':
self.center_on_coordinates(SkyCoord(35.55, 11.43, unit=u.deg),
fov=40*u.deg, instant=False)
if self.current_mode == 'solar_system':
if self.current_mode == 'solar system':
self.center_on_coordinates(SkyCoord(0., 0., unit=u.deg),
fov=50*u.deg, instant=False)
if self.current_mode == 'milky_way':
if self.current_mode == 'milky way':
self.center_on_coordinates(SkyCoord(114.85, -29.52, unit=u.deg),
fov=6e9*u.deg, instant=False)
if self.current_mode == 'universe':

Просмотреть файл