From 2671b48798f960b7434d275635d5b119c570430d Mon Sep 17 00:00:00 2001 From: Jeff Klenzing Date: Mon, 2 Oct 2023 11:13:22 -0400 Subject: [PATCH] STY: remove unused kwarg --- pysatNASA/instruments/maven_ngims.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pysatNASA/instruments/maven_ngims.py b/pysatNASA/instruments/maven_ngims.py index d734b882..cd1d4414 100644 --- a/pysatNASA/instruments/maven_ngims.py +++ b/pysatNASA/instruments/maven_ngims.py @@ -76,7 +76,7 @@ supported_tags=supported_tags) -def load(fnames, tag=None, inst_id=None, species=None): +def load(fnames, tag=None, inst_id=None): """Load data files. Parameters @@ -87,9 +87,6 @@ def load(fnames, tag=None, inst_id=None, species=None): tag or None (default=None) sat_id : str satellite id or None (default=None) - species : str or float - Indicates which species to select for. If None, loads all species. Input - as a string for csn, float for ion. Returns --------- @@ -105,9 +102,14 @@ def load(fnames, tag=None, inst_id=None, species=None): """ - # TODO(JK): expand for all files, but needs to fix non-unique timestamps - # first. - data = pds.read_csv(fnames[0], index_col=0, parse_dates=True) + ldata = [] + for fname in fnames: + ldata.append(pds.read_csv(fname, index_col=0, parse_dates=True)) + + if len(ldata) > 0: + data = pds.concat(ldata) + else: + data = pds.DataFrame() meta = pysat.Meta()