-
Notifications
You must be signed in to change notification settings - Fork 0
feat: added endpoint option to date_range
#220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
47b16d0
5ee6562
4735549
b45d448
1caa048
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,18 +11,7 @@ on: | |||||
| jobs: | ||||||
| build: | ||||||
|
|
||||||
| runs-on: ${{ matrix.os }} | ||||||
| strategy: | ||||||
| matrix: | ||||||
| os: [ubuntu-latest] | ||||||
| python-version: [3.11] | ||||||
| env: | ||||||
| OS: ${{ matrix.os }} | ||||||
| PYTHON: ${{ matrix.python-version }} | ||||||
| defaults: | ||||||
| run: | ||||||
| shell: bash -l {0} | ||||||
|
|
||||||
| runs-on: ubuntu-slim | ||||||
|
||||||
| runs-on: ubuntu-slim | |
| runs-on: ubuntu-22.04 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,15 +5,13 @@ name: Upload Python Package | |||||
|
|
||||||
| on: | ||||||
| release: | ||||||
| types: [created] | ||||||
| types: [released] | ||||||
|
|
||||||
| jobs: | ||||||
| deploy: | ||||||
|
|
||||||
| runs-on: ubuntu-latest | ||||||
|
|
||||||
| runs-on: ubuntu-slim | ||||||
|
||||||
| runs-on: ubuntu-slim | |
| runs-on: ubuntu-latest |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,6 @@ exclude = [ | |
| ".git", | ||
| ".pixi", | ||
| "build", | ||
| "doc", | ||
| "run", | ||
| "test", | ||
| ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -211,6 +211,16 @@ def test_earth_rotation_angle(): | |
| expected = 0.8730204642501604 | ||
| assert np.isclose(360.0*expected, ts.era).all() | ||
|
|
||
| def test_from_range(): | ||
| """Test that from_range functions produce expected outputs | ||
| """ | ||
| ts = timescale.from_range('2020-01-01','2020-02-01',1,'D') | ||
| exp = 58849 + np.arange(32) | ||
| assert np.all(ts.MJD == exp) | ||
| ts = timescale.from_range('2020-01-01','2020-02-01',1,'D',endpoint=False) | ||
| exp = 58849 + np.arange(31) | ||
| assert np.all(ts.MJD == exp) | ||
|
Comment on lines
+218
to
+222
|
||
|
|
||
| def test_gps_week(): | ||
| """Test that the GPS week matches expected outputs | ||
| """ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ubuntu-slimis not a valid GitHub-hosted runner label, so this scheduled job will not run. Use a supported runner label such asubuntu-latestorubuntu-22.04.