{ "cells": [ { "cell_type": "markdown", "id": "1f0ee132-a51a-4f2b-8f22-2eeea48b4e09", "metadata": {}, "source": [ "#### How we load" ] }, { "cell_type": "code", "execution_count": 1, "id": "b43839b2-f9b3-48f3-a4de-77464eb35af1", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "dict_keys(['meta', 'header', 'authors', 'amda', 'defaults', 'layers', 'inputs', 'targets', 'toots'])\n", "[{'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'parameters': {'atse': 'mercury_swrt_da',\n", " 'brad': 'mercury_swrt_bx',\n", " 'btan': 'mercury_swrt_b',\n", " 'dens': 'mercury_swrt_n',\n", " 'pdyn': 'mercury_swrt_pdyn',\n", " 'temp': 'mercury_swrt_t',\n", " 'xy_v': 'mercury_swrt_v'},\n", " 'slug': 'tao-mercury-swrt'}],\n", " 'dsc': [{'parameters': {'atse': 'mercury_dsc_da',\n", " 'brad': 'mercury_dsc_bx',\n", " 'btan': 'mercury_dsc_b',\n", " 'dens': 'mercury_dsc_n',\n", " 'pdyn': 'mercury_dsc_pdyn',\n", " 'temp': 'mercury_dsc_t',\n", " 'xy_v': 'mercury_dsc_v'},\n", " 'slug': 'tao-mercury-dsc'}],\n", " 'om': [{'parameters': {'atse': 'mercury_sw_da',\n", " 'brad': 'mercury_sw_bx',\n", " 'btan': 'mercury_sw_b',\n", " 'dens': 'mercury_sw_n',\n", " 'pdyn': 'mercury_sw_pdyn',\n", " 'temp': 'mercury_sw_t',\n", " 'xy_v': 'mercury_sw_v'},\n", " 'slug': 'tao-mercury-sw'}],\n", " 'sa': [{'parameters': {'atse': 'mercury_sta_da',\n", " 'brad': 'mercury_sta_bx',\n", " 'btan': 'mercury_sta_b',\n", " 'dens': 'mercury_sta_n',\n", " 'pdyn': 'mercury_sta_pdyn',\n", " 'temp': 'mercury_sta_t',\n", " 'xy_v': 'mercury_sta_v'},\n", " 'slug': 'tao-mercury-sta'}],\n", " 'sb': [{'parameters': {'atse': 'mercury_stb_da',\n", " 'brad': 'mercury_stb_bx',\n", " 'btan': 'mercury_stb_b',\n", " 'dens': 'mercury_stb_n',\n", " 'pdyn': 'mercury_stb_pdyn',\n", " 'temp': 'mercury_stb_t',\n", " 'xy_v': 'mercury_stb_v'},\n", " 'slug': 'tao-mercury-stb'}],\n", " 'solo': [{'slug': 'tao-mercury-solo'}]},\n", " 'name': 'Mercury',\n", " 'orbit': {'models': [{'parameters': {'xy_hee': 'xyz_mercury_hee'},\n", " 'slug': 'mercury-orb-all'}],\n", " 'semimajor': 0,\n", " 'semiminor': 0},\n", " 'slug': 'mercury',\n", " 'title': 'Mercury',\n", " 'type': 'planet'},\n", " {'default': True,\n", " 'locked': False,\n", " 'models': {'art': [{'parameters': {'atse': 'venus_swrt_da',\n", " 'brad': 'venus_swrt_bx',\n", " 'btan': 'venus_swrt_b',\n", " 'dens': 'venus_swrt_n',\n", " 'pdyn': 'venus_swrt_pdyn',\n", " 'temp': 'venus_swrt_t',\n", " 'xy_v': 'venus_swrt_v'},\n", " 'slug': 'tao-venus-swrt'}],\n", " 'dsc': [{'parameters': {'atse': 'venus_dsc_da',\n", " 'brad': 'venus_dsc_bx',\n", " 'btan': 'venus_dsc_b',\n", " 'dens': 'venus_dsc_n',\n", " 'pdyn': 'venus_dsc_pdyn',\n", " 'temp': 'venus_dsc_t',\n", " 'xy_v': 'venus_dsc_v'},\n", " 'slug': 'tao-venus-dsc'}],\n", " 'om': [{'parameters': {'atse': 'venus_sw_da',\n", " 'brad': 'venus_sw_bx',\n", " 'btan': 'venus_sw_b',\n", " 'dens': 'venus_sw_n',\n", " 'pdyn': 'venus_sw_pdyn',\n", " 'temp': 'venus_sw_t',\n", " 'xy_v': 'venus_sw_v'},\n", " 'slug': 'tao-venus-sw'}],\n", " 'sa': [{'parameters': {'atse': 'venus_sta_da',\n", " 'brad': 'venus_sta_bx',\n", " 'btan': 'venus_sta_b',\n", " 'dens': 'venus_sta_n',\n", " 'pdyn': 'venus_sta_pdyn',\n", " 'temp': 'venus_sta_t',\n", " 'xy_v': 'venus_sta_v'},\n", " 'slug': 'tao-venus-sta'}],\n", " 'sb': [{'parameters': {'atse': 'venus_stb_da',\n", " 'brad': 'venus_stb_bx',\n", " 'btan': 'venus_stb_b',\n", " 'dens': 'venus_stb_n',\n", " 'pdyn': 'venus_stb_pdyn',\n", " 'temp': 'venus_stb_t',\n", " 'xy_v': 'venus_stb_v'},\n", " 'slug': 'tao-venus-stb'}],\n", " 'solo': [{'slug': 'tao-venus-solo'}]},\n", " 'name': 'Venus',\n", " 'orbit': {'models': [{'parameters': {'xy_hee': 'xyz_venus_hee'},\n", " 'slug': 'venus-orb-all'}],\n", " 'semimajor': 0.72333199,\n", " 'semiminor': 0.7233154},\n", " 'slug': 'venus',\n", " 'title': 'Venus',\n", " 'type': 'planet'},\n", " {'default': True,\n", " 'locked': False,\n", " 'models': {'om': [{'parameters': {'pdyn': 'RamP'}, 'slug': 'omni_hour_all'},\n", " {'parameters': {'dens': 'Dens',\n", " 'temp': 'Temp',\n", " 'vtot': 'Vel'},\n", " 'slug': 'ace_swepam_real_1h'}],\n", " 'sa': [{'parameters': {'pdyn': 'RamP'}, 'slug': 'omni_hour_all'},\n", " {'parameters': {'dens': 'Dens',\n", " 'temp': 'Temp',\n", " 'vtot': 'Vel'},\n", " 'slug': 'ace_swepam_real_1h'}],\n", " 'sb': [{'parameters': {'pdyn': 'RamP'}, 'slug': 'omni_hour_all'},\n", " {'parameters': {'dens': 'Dens',\n", " 'temp': 'Temp',\n", " 'vtot': 'Vel'},\n", " 'slug': 'ace_swepam_real_1h'}]},\n", " 'name': 'Earth',\n", " 'orbit': {'models': []},\n", " 'slug': 'earth',\n", " 'title': 'Earth',\n", " 'type': 'planet'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'parameters': {'atse': 'mars_swrt_da',\n", " 'brad': 'mars_swrt_bx',\n", " 'btan': 'mars_swrt_b',\n", " 'dens': 'mars_swrt_n',\n", " 'pdyn': 'mars_swrt_pdyn',\n", " 'temp': 'mars_swrt_t',\n", " 'xy_v': 'mars_swrt_v'},\n", " 'slug': 'tao-mars-swrt'}],\n", " 'dsc': [{'parameters': {'atse': 'mars_dsc_da',\n", " 'brad': 'mars_dsc_bx',\n", " 'btan': 'mars_dsc_b',\n", " 'dens': 'mars_dsc_n',\n", " 'pdyn': 'mars_dsc_pdyn',\n", " 'temp': 'mars_dsc_t',\n", " 'xy_v': 'mars_dsc_v'},\n", " 'slug': 'tao-mars-dsc'}],\n", " 'om': [{'parameters': {'atse': 'mars_sw_da',\n", " 'brad': 'mars_sw_bx',\n", " 'btan': 'mars_sw_b',\n", " 'dens': 'mars_sw_n',\n", " 'pdyn': 'mars_sw_pdyn',\n", " 'temp': 'mars_sw_t',\n", " 'xy_v': 'mars_sw_v'},\n", " 'slug': 'tao-mars-sw'}],\n", " 'sa': [{'parameters': {'atse': 'mars_sta_da',\n", " 'brad': 'mars_sta_bx',\n", " 'btan': 'mars_sta_b',\n", " 'dens': 'mars_sta_n',\n", " 'pdyn': 'mars_sta_pdyn',\n", " 'temp': 'mars_sta_t',\n", " 'xy_v': 'mars_sta_v'},\n", " 'slug': 'tao-mars-sta'}],\n", " 'sb': [{'parameters': {'atse': 'mars_stb_da',\n", " 'brad': 'mars_stb_bx',\n", " 'btan': 'mars_stb_b',\n", " 'dens': 'mars_stb_n',\n", " 'pdyn': 'mars_stb_pdyn',\n", " 'temp': 'mars_stb_t',\n", " 'xy_v': 'mars_stb_v'},\n", " 'slug': 'tao-mars-stb'}],\n", " 'solo': [{'slug': 'tao-mars-solo'}]},\n", " 'name': 'Mars',\n", " 'orbit': {'models': [{'parameters': {'xy_hee': 'xyz_mars_hee'},\n", " 'slug': 'mars-orb-all'}],\n", " 'semimajor': 1.52366231,\n", " 'semiminor': 1.51700011},\n", " 'slug': 'mars',\n", " 'title': 'Mars',\n", " 'type': 'planet'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_jup_swrt'}],\n", " 'dsc': [{'slug': 'tao_jup_dsc'}],\n", " 'om': [{'slug': 'tao_jup_sw'}],\n", " 'sa': [{'slug': 'tao_jup_sta'}],\n", " 'sb': [{'slug': 'tao_jup_stb'}],\n", " 'solo': [{'slug': 'tao_jup_solo'}]},\n", " 'name': 'Jupiter',\n", " 'orbit': {'models': [{'slug': 'jupiter_orb_all'}],\n", " 'semimajor': 5.45516759,\n", " 'semiminor': 4.95155843},\n", " 'slug': 'jupiter',\n", " 'tap': {'target_name': 'Jupiter'},\n", " 'title': 'Jupiter',\n", " 'type': 'planet'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_sat_swrt'}],\n", " 'dsc': [{'slug': 'tao_sat_dsc'}],\n", " 'om': [{'slug': 'tao_sat_sw'}],\n", " 'sa': [{'slug': 'tao_sat_sta'}],\n", " 'sb': [{'slug': 'tao_sat_stb'}],\n", " 'solo': [{'slug': 'tao_sat_solo'}]},\n", " 'name': 'Saturn',\n", " 'orbit': {'models': [{'slug': 'saturn_orb_all'}],\n", " 'semimajor': 9.53707032,\n", " 'semiminor': 9.5230773},\n", " 'slug': 'saturn',\n", " 'tap': {'target_name': 'Saturn'},\n", " 'title': 'Saturn',\n", " 'type': 'planet'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_ura_swrt'}],\n", " 'dsc': [{'slug': 'tao_ura_dsc'}],\n", " 'om': [{'slug': 'tao_ura_sw'}],\n", " 'sa': [{'slug': 'tao_ura_sta'}],\n", " 'sb': [{'slug': 'tao_ura_stb'}],\n", " 'solo': [{'slug': 'tao_ura_solo'}]},\n", " 'name': 'Uranus',\n", " 'orbit': {'models': [{'slug': 'uranus_orb_all'}],\n", " 'semimajor': 19.19,\n", " 'semiminor': 19.17},\n", " 'slug': 'uranus',\n", " 'title': 'Uranus',\n", " 'type': 'planet'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_nep_swrt'}],\n", " 'dsc': [{'slug': 'tao_nep_dsc'}],\n", " 'om': [{'slug': 'tao_nep_sw'}],\n", " 'sa': [{'slug': 'tao_nep_sta'}],\n", " 'sb': [{'slug': 'tao_nep_stb'}],\n", " 'solo': [{'slug': 'tao_nep_solo'}]},\n", " 'name': 'Neptune',\n", " 'orbit': {'models': [{'slug': 'neptune_orb_all'}],\n", " 'semimajor': 30.06896348,\n", " 'semiminor': 30.06785516},\n", " 'slug': 'neptune',\n", " 'title': 'Neptune',\n", " 'type': 'planet'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_mercury_swrt'}],\n", " 'dsc': [{'slug': 'tao_mercury_dsc'}],\n", " 'om': [{'slug': 'tao_mercury_sw'}],\n", " 'sa': [{'slug': 'tao_mercury_sta'}],\n", " 'sb': [{'slug': 'tao_mercury_stb'}],\n", " 'solo': [{'slug': 'tao_mercury_solo'}]},\n", " 'name': 'SoloColombo Source',\n", " 'orbit': {'models': [{'slug': 'bepi_cruise_all'}, {'slug': 'earth_orb_all'}]},\n", " 'slug': 'bepi_src',\n", " 'title': 'SoloColombo Source',\n", " 'type': 'source'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_bepi_swrt'}],\n", " 'om': [{'slug': 'tao_bepi_sw'}],\n", " 'sa': [{'slug': 'tao_bepi_sta'}]},\n", " 'name': 'BepiColombo',\n", " 'orbit': {'models': [{'slug': 'bepi_cruise_all'}]},\n", " 'slug': 'bepi',\n", " 'title': 'BepiColombo',\n", " 'type': 'probe'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_mercury_swrt'}],\n", " 'dsc': [{'slug': 'tao_mercury_dsc'}],\n", " 'om': [{'slug': 'tao_mercury_sw'}],\n", " 'sa': [{'slug': 'tao_mercury_sta'}],\n", " 'sb': [{'slug': 'tao_mercury_stb'}],\n", " 'solo': [{'slug': 'tao_mercury_solo'}]},\n", " 'name': 'Solo Source',\n", " 'orbit': {'models': [{'slug': 'so_orb_all'}, {'slug': 'earth_orb_all'}]},\n", " 'slug': 'solo_src',\n", " 'title': 'Solo Source',\n", " 'type': 'source'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_so_swrt'}], 'om': [{'slug': 'tao_so_sw'}]},\n", " 'name': 'SolarOrbiter',\n", " 'orbit': {'models': [{'slug': 'so_orb_all'}]},\n", " 'slug': 'solo',\n", " 'title': 'SolarOrbiter',\n", " 'type': 'probe'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_mercury_swrt'}],\n", " 'dsc': [{'slug': 'tao_mercury_dsc'}],\n", " 'om': [{'slug': 'tao_mercury_sw'}],\n", " 'sa': [{'slug': 'tao_mercury_sta'}],\n", " 'sb': [{'slug': 'tao_mercury_stb'}],\n", " 'solo': [{'slug': 'tao_mercury_solo'}]},\n", " 'name': 'Parker Source',\n", " 'orbit': {'models': [{'slug': 'psp_orb_all'}, {'slug': 'earth_orb_all'}]},\n", " 'slug': 'psp_src',\n", " 'title': 'Parker Source',\n", " 'type': 'source'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'art': [{'slug': 'tao_psp_swrt'}],\n", " 'om': [{'slug': 'tao_psp_sw'}],\n", " 'sa': [{'slug': 'tao_psp_sta'}]},\n", " 'name': 'Parker Solar Probe',\n", " 'orbit': {'models': [{'slug': 'psp_orb_all'}]},\n", " 'slug': 'psp',\n", " 'title': 'Parker Solar Probe',\n", " 'type': 'probe'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'om': [{'slug': 'tao_ros_sw'}],\n", " 'sa': [{'slug': 'tao_ros_sw'}],\n", " 'sb': [{'slug': 'tao_ros_sw'}]},\n", " 'name': 'Rosetta',\n", " 'orbit': {'models': [{'slug': 'ros_orb_cruise',\n", " 'stopped_at': '2014-08-02T00:00:00'},\n", " {'slug': 'p67_orb_all',\n", " 'started_at': '2014-08-02T00:00:00'}]},\n", " 'slug': 'rosetta',\n", " 'title': 'Rosetta',\n", " 'type': 'probe'},\n", " {'default': False,\n", " 'locked': False,\n", " 'models': {'om': [{'slug': 'tao_juno_sw'}],\n", " 'sa': [{'slug': 'tao_juno_sw'}],\n", " 'sb': [{'slug': 'tao_juno_sw'}]},\n", " 'name': 'Juno',\n", " 'orbit': {'models': [{'slug': 'juno_cruise_all',\n", " 'stopped_at': '2016-07-05T03:53:00'},\n", " {'slug': 'jupiter_orb_all',\n", " 'started_at': '2016-07-05T03:53:00'}]},\n", " 'slug': 'juno',\n", " 'title': 'Juno',\n", " 'type': 'probe'},\n", " {'default': False,\n", " 'locked': True,\n", " 'models': {'om': [{'slug': 'tao_p67_sw'}],\n", " 'sa': [{'slug': 'tao_p67_sw'}],\n", " 'sb': [{'slug': 'tao_p67_sw'}]},\n", " 'name': 'Churyumov-Gerasimenko',\n", " 'orbit': {'models': [{'parameters': {'hee': 'XYZ_HEE'},\n", " 'slug': 'p67_orb_all'}]},\n", " 'slug': 'p67',\n", " 'title': 'Churyumov-Gerasimenko (coming soon)',\n", " 'type': 'comet'}]\n" ] } ], "source": [ "from yaml import load as yaml_load\n", "from yaml import Loader\n", "from pprint import pprint\n", "\n", "\n", "config_file = '../my_cfg.yaml'\n", "config_file = '../config.yml'\n", "\n", "with open(config_file, 'r', encoding='utf8') as config_file:\n", " config = yaml_load(config_file.read(), Loader=Loader)\n", "\n", "\n", "pprint(config.keys())\n", "pprint(config['targets'])" ] }, { "cell_type": "markdown", "id": "48c3efcb-3f20-4ccc-b2ec-21bed3a14b9f", "metadata": {}, "source": [ "#### How we read" ] }, { "cell_type": "code", "execution_count": 2, "id": "b02f3e74-0d95-4b3f-b696-a610a90f6e16", "metadata": {}, "outputs": [], "source": [ "import sys\n", "import os\n", "\n", "sys.path.insert(0, os.path.abspath('..'))\n", "from web.run import get_target_config" ] }, { "cell_type": "markdown", "id": "9aefa4ad-7600-4034-b90e-26be168f0850", "metadata": {}, "source": [ "##### The 'targets' section of the config structure, is a list of dictionnaries" ] }, { "cell_type": "code", "execution_count": 3, "id": "eb88fb52-705c-45e4-87ef-79fb37590991", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " planet Mercury\n", " planet Venus\n", " planet Earth\n", " planet Mars\n", " planet Jupiter\n", " planet Saturn\n", " planet Uranus\n", " planet Neptune\n", " source SoloColombo Source\n", " probe BepiColombo\n", " source Solo Source\n", " probe SolarOrbiter\n", " source Parker Source\n", " probe Parker Solar Probe\n", " probe Rosetta\n", " probe Juno\n", " comet Churyumov-Gerasimenko\n" ] } ], "source": [ "for _t in config['targets']:\n", " print(f\" {_t['type']:10} {_t['name']}\")" ] }, { "cell_type": "markdown", "id": "075f56b5-17f0-42b3-a982-a169c747345f", "metadata": {}, "source": [ "##### Each planet or probe section contains a dict " ] }, { "cell_type": "code", "execution_count": 4, "id": "49e2025d-cb8a-49a1-bb05-ecfef42b32ed", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "dict_keys(['type', 'slug', 'name', 'title', 'orbit', 'models', 'locked', 'default'])\n" ] } ], "source": [ "\n", "this_target_name = 'mars'\n", "this_target_cfg = get_target_config(this_target_name)\n", "pprint(this_target_cfg.keys())" ] }, { "cell_type": "markdown", "id": "58a14aa1-ba29-4b19-894b-99a1ef88654e", "metadata": {}, "source": [ "##### in which we are mainly interested by 'orbit' and 'models' keys" ] }, { "cell_type": "markdown", "id": "1c1a6438-4f2c-4cbe-846f-3a36dd4922b7", "metadata": {}, "source": [ "In the models section there is a dict indexed by the sources , each value being a list of dataset id with the amda ids of parameters." ] }, { "cell_type": "code", "execution_count": 5, "id": "7c80f0cd-0a64-4b62-803f-7d813dd4b0cd", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "models\n", "------\n", "{'art': [{'parameters': {'atse': 'mars_swrt_da',\n", " 'brad': 'mars_swrt_bx',\n", " 'btan': 'mars_swrt_b',\n", " 'dens': 'mars_swrt_n',\n", " 'pdyn': 'mars_swrt_pdyn',\n", " 'temp': 'mars_swrt_t',\n", " 'xy_v': 'mars_swrt_v'},\n", " 'slug': 'tao-mars-swrt'}],\n", " 'dsc': [{'parameters': {'atse': 'mars_dsc_da',\n", " 'brad': 'mars_dsc_bx',\n", " 'btan': 'mars_dsc_b',\n", " 'dens': 'mars_dsc_n',\n", " 'pdyn': 'mars_dsc_pdyn',\n", " 'temp': 'mars_dsc_t',\n", " 'xy_v': 'mars_dsc_v'},\n", " 'slug': 'tao-mars-dsc'}],\n", " 'om': [{'parameters': {'atse': 'mars_sw_da',\n", " 'brad': 'mars_sw_bx',\n", " 'btan': 'mars_sw_b',\n", " 'dens': 'mars_sw_n',\n", " 'pdyn': 'mars_sw_pdyn',\n", " 'temp': 'mars_sw_t',\n", " 'xy_v': 'mars_sw_v'},\n", " 'slug': 'tao-mars-sw'}],\n", " 'sa': [{'parameters': {'atse': 'mars_sta_da',\n", " 'brad': 'mars_sta_bx',\n", " 'btan': 'mars_sta_b',\n", " 'dens': 'mars_sta_n',\n", " 'pdyn': 'mars_sta_pdyn',\n", " 'temp': 'mars_sta_t',\n", " 'xy_v': 'mars_sta_v'},\n", " 'slug': 'tao-mars-sta'}],\n", " 'sb': [{'parameters': {'atse': 'mars_stb_da',\n", " 'brad': 'mars_stb_bx',\n", " 'btan': 'mars_stb_b',\n", " 'dens': 'mars_stb_n',\n", " 'pdyn': 'mars_stb_pdyn',\n", " 'temp': 'mars_stb_t',\n", " 'xy_v': 'mars_stb_v'},\n", " 'slug': 'tao-mars-stb'}],\n", " 'solo': [{'slug': 'tao-mars-solo'}]}\n" ] } ], "source": [ "print(\"models\\n------\")\n", "pprint(this_target_cfg['models'])" ] }, { "cell_type": "markdown", "id": "ce2ff32d-8dde-45cf-8b47-11f0773da0f0", "metadata": {}, "source": [ "The orbit section also contains a list of orbits id with their amda ids of parameters." ] }, { "cell_type": "code", "execution_count": 6, "id": "2c8ca3c6-ef82-482b-b159-486b2177e35a", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "orbit\n", "-----\n", "{'models': [{'parameters': {'xy_hee': 'xyz_mars_hee'}, 'slug': 'mars-orb-all'}],\n", " 'semimajor': 1.52366231,\n", " 'semiminor': 1.51700011}\n" ] } ], "source": [ "print(\"orbit\\n-----\")\n", "pprint(this_target_cfg['orbit'])" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" } }, "nbformat": 4, "nbformat_minor": 5 }