Skip to content

Commit

Permalink
Merge pull request #1 from LSSTDESC/awo/create-basic-scaffolding
Browse files Browse the repository at this point in the history
Basic scaffolding
  • Loading branch information
drewoldag authored Nov 2, 2023
2 parents 2ba2cde + 8fce560 commit f257848
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
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 = [
"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

0 comments on commit f257848

Please sign in to comment.