Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
QRemy committed Apr 13, 2023
1 parent 6bc5e4d commit c8c255d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/tutorials/data/hawc.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
######################################################################
# Chose which estimator we will use

which = 'NN'
energy_estimator = 'NN'


######################################################################
Expand All @@ -85,8 +85,8 @@
# Load the tables

data_path = "$GAMMAPY_DATA/hawc/crab_events_pass4/"
hdu_filename = 'hdu-index-table-' + which + "-Crab.fits.gz"
obs_filename = 'obs-index-table-' + which + "-Crab.fits.gz"
hdu_filename = f'hdu-index-table-{energy_estimator}-Crab.fits.gz'
obs_filename = f'obs-index-table-{energy_estimator}-Crab.fits.gz'

# there is only one observation table
obs_table = ObservationTable.read(data_path+obs_filename)
Expand Down
2 changes: 1 addition & 1 deletion gammapy/datasets/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def create_map_dataset_geoms(
geom_irf = geom_image.to_binsz(binsz=binsz_irf)

if reco_psf:
geom_psf = geom_irf.to_cube([rad_axis,geom.axes["energy"]])
geom_psf = geom_irf.to_cube([rad_axis, geom.axes["energy"]])
else:
geom_psf = geom_irf.to_cube([rad_axis, energy_axis_true])

Expand Down

0 comments on commit c8c255d

Please sign in to comment.