Skip to content

Commit

Permalink
REV: post-review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Dec 15, 2020
1 parent 8162db0 commit 890c10a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ install:
# Once pysat 3.0 is released, remove the custom pysat install and change
# this to:
# - while read requirement; do conda install --yes $requirement; done < requirements.txt1
- conda install --yes scipy pandas xarray netCDF4 portalocker
# Check for custom numpy version install
- if [ -z ${NUMPY_VER} ]; then
conda install numpy;
Expand All @@ -63,13 +62,14 @@ install:
# Prepare modified pysat install
- cd ..
- echo 'cloning pysat'
- git clone https://github.com/pysat/pysat.git >/dev/null
- git clone --single-branch --branch develop-3 https://github.com/pysat/pysat.git
- echo 'installing pysat'
- cd ./pysat
# set up data directory
- mkdir /home/travis/build/pysatData
# install pysat
- git checkout develop-3
# Install the pysat requirements
- while read requirement; do conda install --yes $requirement; done < requirements.txt
- python setup.py install >/dev/null
- export PYTHONPATH=$PYTHONPATH:$(pwd)

Expand Down
2 changes: 1 addition & 1 deletion pysatMissions/instruments/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ def _clean(self):
"""Cleaning function. Simple pass since data is generated locally.
"""

pass
return
4 changes: 4 additions & 0 deletions pysatMissions/instruments/pysat_ephem.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import pandas as pds
import pysat

from pysat import logger
from pysat.instruments.methods import testing as ps_meth
from pysatMissions.instruments import _core as mcore
from pysatMissions.methods import magcoord as mm_magcoord
Expand Down Expand Up @@ -50,6 +51,9 @@ def init(self):
self.custom.attach(mm_sc.add_ram_pointing_sc_attitude_vectors)
self.acknowledgements = ''
self.references = ''
logger.info(self.acknowledgements)

return


def load(fnames, tag=None, inst_id=None, obs_long=0., obs_lat=0., obs_alt=0.,
Expand Down
4 changes: 3 additions & 1 deletion pysatMissions/instruments/pysat_sgp4.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import pandas as pds

import pysat
from pysat import logger
from pysat.instruments.methods import testing as ps_meth
from pysatMissions.instruments import _core as mcore

Expand All @@ -32,8 +33,9 @@ def init(self):

self.acknowledgements = ''
self.references = ''
logger.info(self.acknowledgements)

pass
return


def load(fnames, tag=None, inst_id=None, obs_long=0., obs_lat=0., obs_alt=0.,
Expand Down
4 changes: 2 additions & 2 deletions pysatMissions/tests/test_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
for method in method_list:
if hasattr(getattr(InstTestClass, method), 'pytestmark'):
# Get list of names of pytestmarks
Nargs = len(getattr(InstTestClass, method).pytestmark)
n_args = len(getattr(InstTestClass, method).pytestmark)
names = [getattr(InstTestClass, method).pytestmark[j].name
for j in range(0, Nargs)]
for j in range(0, n_args)]
# Add instruments from your library
if 'all_inst' in names:
mark = pytest.mark.parametrize("inst_name", instruments['names'])
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ description = 'Mission Planning toolkit for pysat'
keywords =
pysat
ionosphere
cubesat
satellite
ephemeris
orbit
classifiers =
Development Status :: 3 - Alpha
Topic :: Scientific/Engineering :: Physics
Expand Down

0 comments on commit 890c10a

Please sign in to comment.