From d7df3c0e568b4203d4d26125dd70d2418ada64fc Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 2 Apr 2013 21:52:25 +0200 Subject: [PATCH] Adapt to new model interface. --- examples/python/models_howto.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/python/models_howto.py b/examples/python/models_howto.py index c2d21ad..e7b346f 100755 --- a/examples/python/models_howto.py +++ b/examples/python/models_howto.py @@ -38,11 +38,11 @@ def create_models(): # Create model container models = GModels() - # Create a powerlaw model for the Crab + # Create a power law model for the Crab crabdir = GSkyDir() crabdir.radec_deg(83.6331, 22.0145) spatial = GModelSpatialPointSource(crabdir) - spectral = GModelSpectralPlaw(5.7e-16, -2.48, 100.0) + spectral = GModelSpectralPlaw(5.7e-16, -2.48, GEnergy(100.0, "MeV")) model = GModelSky(spatial, spectral) models.append(model) @@ -66,5 +66,5 @@ if __name__ == '__main__': # Create XML document models = create_models() - print models + print(models) \ No newline at end of file -- libgit2 0.21.4