-
Notifications
You must be signed in to change notification settings - Fork 1
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 #13 from simonsobs/better-rule-policy
more flexible policy and drift plant scan
- Loading branch information
Showing
16 changed files
with
722 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
"toolz", | ||
"pandas", | ||
"chex", | ||
"pyephem" | ||
"pyephem", | ||
"equinox", | ||
"so3g" | ||
], | ||
) |
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,14 @@ | ||
from . import utils | ||
import yaml | ||
|
||
def datetime_constructor(loader, node): | ||
"""load a datetime""" | ||
return utils.str2datetime(loader.construct_scalar(node)) | ||
|
||
def get_loader(): | ||
# add some useful tags to the loader | ||
loader = yaml.SafeLoader | ||
loader.add_constructor('!datetime', datetime_constructor) | ||
# ignore unknown tags | ||
loader.add_multi_constructor('!', lambda loader, tag_suffix, node: None) | ||
return loader |
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,2 @@ | ||
from .basic import BasePolicy, BasicPolicy | ||
from .flex import FlexPolicy |
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
Oops, something went wrong.