From 31399d753c99f1c63e6a1900d7e6ef6a31fb11eb Mon Sep 17 00:00:00 2001 From: Tracy Esman <21086818+t-esman@users.noreply.github.com> Date: Wed, 6 Sep 2023 11:47:12 -0400 Subject: [PATCH] Apply suggestions from code review --- pysatNASA/instruments/maven_insitu.py | 1 - pysatNASA/instruments/maven_mag.py | 4 +++- pysatNASA/instruments/maven_sep.py | 10 +++------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/pysatNASA/instruments/maven_insitu.py b/pysatNASA/instruments/maven_insitu.py index 67caed7f..13b92506 100644 --- a/pysatNASA/instruments/maven_insitu.py +++ b/pysatNASA/instruments/maven_insitu.py @@ -34,7 +34,6 @@ import datetime as dt import functools -import pysat from pysat.instruments.methods import general as mm_gen from pysatNASA.instruments.methods import cdaweb as cdw from pysatNASA.instruments.methods import general as mm_nasa diff --git a/pysatNASA/instruments/maven_mag.py b/pysatNASA/instruments/maven_mag.py index d59f8c7e..a18b034c 100644 --- a/pysatNASA/instruments/maven_mag.py +++ b/pysatNASA/instruments/maven_mag.py @@ -23,6 +23,9 @@ Examples -------- :: + import pysat + + mag = pysat.Instrument(platform='maven', name='mag') mag.download(dt.datetime(2020, 1, 1), dt.datetime(2020, 1, 31)) mag.load(2020, 1, use_header = True) @@ -32,7 +35,6 @@ import datetime as dt import functools -import pysat from pysat.instruments.methods import general as mm_gen from pysatNASA.instruments.methods import cdaweb as cdw from pysatNASA.instruments.methods import general as mm_nasa diff --git a/pysatNASA/instruments/maven_sep.py b/pysatNASA/instruments/maven_sep.py index 49b45f40..3bd60b27 100644 --- a/pysatNASA/instruments/maven_sep.py +++ b/pysatNASA/instruments/maven_sep.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- -"""Module for the MAVEN insitu instrument. +"""Module for the MAVEN sep instrument. Supports the Solar Energetic Particle (SEP) data from onboard the Mars Atmosphere and Volatile Evolution (MAVEN) satellite. Accesses local data in CDF format. -Downlaods from CDAWeb. +Downloads from CDAWeb. Properties ---------- @@ -17,7 +17,6 @@ 's1','s2' inst_id None supported - Examples -------- @@ -28,12 +27,12 @@ insitu = pysat.Instrument(platform='MAVEN', name='insitu') insitu.download(dt.datetime(2020, 1, 1), dt.datetime(2020, 1, 31)) insitu.load(2020, 1, use_header = True) + """ import datetime as dt import functools -import pysat from pysat.instruments.methods import general as mm_gen from pysatNASA.instruments.methods import cdaweb as cdw from pysatNASA.instruments.methods import general as mm_nasa @@ -104,9 +103,6 @@ list_remote_files = functools.partial(cdw.list_remote_files, supported_tags=download_tags) - - - # Set the load routine load = functools.partial(cdw.load, epoch_name='epoch', pandas_format=pandas_format, use_cdflib=True)