Skip to content

Commit

Permalink
Sync with naming in #20.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Oct 22, 2018
1 parent a83e723 commit d0d42f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ venv.bak/
# local ignores
.docker-tox/
tests/sample-data/cds*.grib
*.ix
*.idx
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local-wheel:
$(PIP) wheel -e .

testclean:
$(RM) -r */__pycache__ .coverage .cache tests/.ipynb_checkpoints *.ix tests/sample-data/*.ix
$(RM) -r */__pycache__ .coverage .cache tests/.ipynb_checkpoints *.idx tests/sample-data/*.idx

clean: testclean
$(RM) -r */*.pyc htmlcov dist build .eggs
Expand Down
4 changes: 2 additions & 2 deletions cfgrib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def first(self):
# type: () -> Message
return next(iter(self))

def index(self, index_keys, indexpath='{path}.ix'):
def index(self, index_keys, indexpath='{path}.idx'):
# (T.List[str], T.Optional[str]) -> FileIndex
return FileIndex.from_indexpath_or_filestream(self, index_keys, indexpath)

Expand Down Expand Up @@ -251,7 +251,7 @@ def from_indexpath(cls, indexpath):
return pickle.load(file)

@classmethod
def from_indexpath_or_filestream(cls, filestream, index_keys, indexpath='{path}.ix'):
def from_indexpath_or_filestream(cls, filestream, index_keys, indexpath='{path}.idx'):
# (FileStream, T.List[str], T.Optional[str]) -> FileIndex
self = None
if indexpath:
Expand Down

0 comments on commit d0d42f7

Please sign in to comment.