Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
t-esman authored Sep 6, 2023
1 parent af0c6e8 commit 31399d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion pysatNASA/instruments/maven_insitu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pysatNASA/instruments/maven_mag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
10 changes: 3 additions & 7 deletions pysatNASA/instruments/maven_sep.py
Original file line number Diff line number Diff line change
@@ -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
----------
Expand All @@ -17,7 +17,6 @@
's1','s2'
inst_id
None supported
Examples
--------
Expand All @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 31399d7

Please sign in to comment.