Stefan Fröse

Results 14 issues of Stefan Fröse

**Gammapy version** System: python_executable : /scratch/sfroese/envs/phd/bin/python python_version : 3.9.13 machine : x86_64 system : Linux Gammapy package: version : 0.20.1 path : /scratch/sfroese/envs/phd/lib/python3.9/site-packages/gammapy INFO:numexpr.utils:Note: NumExpr detected 48 cores but "NUMEXPR_MAX_THREADS"...

bug

If an Observation is created by the DataStore.obs method, no location is given as an argument. Therefore the `observatory_earth_location` will be None. Simple fix of catching the case by reading...

It seems that the confidence calculation for iminuit takes `reoptimize` as an arg but the logger gives a warning that it's not used if it's False, but the arg is...

The recent issue from @micheledoro #5147 shows the need for a more flexible class for the `PrimaryFlux` class, which allows different spectra files for input. Currently there are three different...

It is common in dark matter analyses to have a prior on the J-Factor (see [here](https://arxiv.org/pdf/2111.15009.pdf)). In order to achieve this, the `jfactor` of the `DarkMatterAnnihilationSpectralModel` has to become a...

# Problem Currently the `FovBackgroundMaker` only support a spectral_model at init :confounded: https://github.com/gammapy/gammapy/blob/09b9ee3307c0c2f8c62010b4185c2ea398b39c62/gammapy/makers/background/fov.py#L50-L57 So in case I want to fit a SpectralModel to my background, this is totally fine. But...

feature-request
coding sprint

I came across this problem in #5082 # Example Create `PiecewiseNormSpatialModel` ```python from gammapy.maps import WcsGeom, MapCoord import astropy.units as u geom = WcsGeom.create(skydir=(0, 0), npix=(2, 2), binsz=0.3, frame="galactic") coords...

bug

Hi all 😄 So, I'm currently trying to create a dataset from an observation. I have full enclosure IRFs with a Background3DModel which is constructed from ON data using the...

bug

Trying to install the conda environment with `mamba env create -f environment.yml` yields to the error on M1 macOS: ``` Encountered problems while solving. Problem: nothing provides requested torchaudio ```...

We should add an explanation in the docs for this integral and why its is 2 * [rmin, rmax] + [rmax, 4*rmax] https://github.com/gammapy/gammapy/blob/2176b9588a7d047fcc814a6aa42d9fc9c78d8a51/gammapy/astro/darkmatter/utils.py#L57-L75 Explanation can be found here: https://gist.github.com/katrinstreil/eeee9f2969dbc037888f876d5f4e5b9d