Skip to content

Commit

Permalink
Merge pull request #15 from lsst/tickets/DM-31062
Browse files Browse the repository at this point in the history
DM-31062: Use the plugin name by default
  • Loading branch information
arunkannawadi committed Jul 10, 2021
2 parents 8227c59 + fde6208 commit 26e77d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/lsst/meas/extensions/gaap/_gaap.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _getGaapResultName(scalingFactor: float, sigma: Union[float, str], name: Opt
return suffix
return "_".join((name, suffix))

def getAllGaapResultNames(self, name: Optional[str] = None) -> Generator[str]:
def getAllGaapResultNames(self, name: Optional[str] = PLUGIN_NAME) -> Generator[str]:
"""Generate the base names for all of the GAaP fields.
For example, if the plugin is configured with `scalingFactors` = [1.15]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gaap.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def testMonteCarlo(self, noise, recordId=1, sigmas=[0.7, 1.0, 1.25],
catalog.append(record)

catalog = catalog.copy(deep=True)
for baseName in gaapConfig.getAllGaapResultNames(name="ext_gaap_GaapFlux"):
for baseName in gaapConfig.getAllGaapResultNames():
instFluxKey = schema.join(baseName, "instFlux")
instFluxErrKey = schema.join(baseName, "instFluxErr")
instFluxMean = catalog[instFluxKey].mean()
Expand Down

0 comments on commit 26e77d7

Please sign in to comment.