Skip to content

Commit

Permalink
Black format
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed Sep 2, 2019
1 parent 1a2dd45 commit b43268c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gammapy/scripts/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ def _read_model(self):
if self.settings["reduction"]["data_reducer"] == "1d":
model_pars = self.settings["model"]["components"][0]["spectral"]
else:
log.info("Model reading available only for single component spectral model.")
log.info(
"Model reading available only for single component spectral model."
)
return False
log.info("Reading model.")
self.model = SpectralModel.from_dict(model_pars)
Expand Down Expand Up @@ -257,7 +259,9 @@ def _spectrum_extraction(self):
self.background_estimator.run()
else:
# TODO
log.info("Background estimation available only for reflected regions method.")
log.info(
"Background estimation available only for reflected regions method."
)
return False
extraction_pars = {}
if "containment_correction" in self.settings["reduction"]:
Expand Down Expand Up @@ -301,7 +305,9 @@ def _validate_fitting_settings(self):
return False
else:
# TODO
log.info("Background estimation available only for reflected regions method.")
log.info(
"Background estimation available only for reflected regions method."
)
return False

def _validate_fp_settings(self):
Expand Down
1 change: 1 addition & 0 deletions gammapy/scripts/config/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ properties:
description: "Model serialized components and parameters."
type: object
additionalProperties: false
default: {}
properties:
components:
description: "List of component models."
Expand Down

0 comments on commit b43268c

Please sign in to comment.