Skip to content
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

Basic scaffolding #1

Merged
merged 5 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ classifiers = [
]
dynamic = ["version"]

dependencies = []
dependencies = [
grantmerz marked this conversation as resolved.
Show resolved Hide resolved
"deepdisc@git+https://github.com/lincc-frameworks/deepdisc.git",
]

# On a mac, install optional dependencies with `pip install '.[dev]'` (include the single quotes)
[project.optional-dependencies]
Expand Down
2 changes: 0 additions & 2 deletions src/rail/deepdisc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from ._version import __version__

from rail.estimation.algos.deepdisc import *
24 changes: 24 additions & 0 deletions src/rail/estimation/algos/deepdisc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from rail.estimation.estimator import CatEstimator, CatInformer

class DeepDiscInformer(CatInformer):
"""Placeholder for informer stage class"""

name = "DeepDiscInformer"
config_options = CatInformer.config_options.copy()

def __init__(self, args, comm=None):
CatInformer.__init__(self, args, comm=comm)

def run(self):
pass


class DeepDiscEstimator(CatEstimator):
name = "DeepDiscEstimator"
config_options = CatEstimator.config_options.copy()

def __init__(self, args, comm=None):
CatEstimator.__init__(self, args, comm=comm)

def _process_chunk(self, start, end, data, first):
pass
2 changes: 2 additions & 0 deletions tests/deepdisc/test_placeholder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_placeholder():
assert True
Loading