Skip to content

Commit

Permalink
STY: remove unused kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Oct 2, 2023
1 parent 96cc880 commit 2671b48
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pysatNASA/instruments/maven_ngims.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
---------
Expand All @@ -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()

Expand Down

0 comments on commit 2671b48

Please sign in to comment.