-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding file structure and basic adler.py.
- Loading branch information
1 parent
14bf334
commit ced2831
Showing
13 changed files
with
45 additions
and
41 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
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from .example_module import greetings, meaning | ||
|
||
__all__ = ["greetings", "meaning"] | ||
from . import dataclasses | ||
from . import science |
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,26 @@ | ||
import argparse | ||
|
||
from adler.dataclasses.AdlerPlanetoid import AdlerPlanetoid | ||
|
||
|
||
def runAdler(args): | ||
planetoid = AdlerPlanetoid(args.ssoid) | ||
|
||
planetoid.do_pretend_science() | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description="Runs Adler for a select planetoid and given user input.") | ||
|
||
parser.add_argument("-s", "--ssoid", help="SSObject ID of planetoid.", type="str", required=True) | ||
|
||
# can add arguments to specify a date range etc later | ||
# alternatively we may start using a config file | ||
|
||
args = parser.parse_args() | ||
|
||
runAdler(args) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Binary file not shown.
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
class DummyScience: | ||
def __init__(self): | ||
self.science_result = "look, science!" |
Binary file not shown.
Empty file.
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,5 @@ | ||
# placeholder test to ensure tests work | ||
|
||
|
||
def test_dummytest(): | ||
print("test complete") |
This file was deleted.
Oops, something went wrong.