-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from sot/improve-off-nom-roll-state-accuracy
Update code and tests for use with ska_sun accurate position
- Loading branch information
Showing
9 changed files
with
6,295 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import pytest | ||
import ska_sun | ||
|
||
|
||
@pytest.fixture() | ||
def fast_sun_position_method(monkeypatch: pytest.MonkeyPatch): | ||
monkeypatch.setattr(ska_sun.conf, "sun_position_method_default", "fast") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import time | ||
|
||
import kadi | ||
from kadi.commands import get_cmds | ||
from kadi.commands.states import get_states | ||
|
||
print(f"{kadi.__version__=}") | ||
|
||
start, stop = "2021:001", "2022:001" | ||
cmds = get_cmds(start, stop, scenario="flight") | ||
|
||
t0 = time.time() | ||
states = get_states(start, stop, scenario="flight") | ||
print(f"get_states took {time.time() - t0:.1f} sec") | ||
|
||
t0 = time.time() | ||
states = get_states(start, stop, scenario="flight") | ||
print(f"2nd get_states took {time.time() - t0:.1f} sec") |
Oops, something went wrong.