Skip to content

Commit

Permalink
Merge pull request #6 from ggmarshall/xtalk
Browse files Browse the repository at this point in the history
add docstrings
  • Loading branch information
tdixon97 authored May 7, 2024
2 parents c5b2e25 + 1142384 commit 75451ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pygama/hit/build_hit.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ def _one_pass(config):


def _get_dependencies(config, par, pars=None):
"""
Recursive func to iterate back through tree of input blocks for a given output block
"""
if pars is None:
pars = []
par_op = config[par]
Expand All @@ -277,6 +280,11 @@ def _get_dependencies(config, par, pars=None):


def _remove_uneeded_operations(config, outpars):
"""
Function that removes any operations not needed to generate outpars from the config dictionary
Returns the config without these blocks as well as a list of input keys from the dsp file
needed to generate outpars
"""
if not isinstance(outpars, list):
outpars = [outpars]
dependent_keys = [*outpars]
Expand Down

0 comments on commit 75451ce

Please sign in to comment.