Asgardpy

Latest version: v0.5.1

Safety actively analyzes 688961 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.3.1

============================


Maintenance
-----------

- Remove support of python 3.8. [`76 <https://github.com/chaimain/asgardpy/pull/76>`_]

0.3.0

============================


Bug Fixes
---------

- Update ``config`` module with a function to perform recursive merging, see
Issue [`71 <https://github.com/chaimain/asgardpy/issues/71>`_]. This is
used when the model config is provided as a separate file, which does not
contain a model name. Examples of such files are also created for a variety
of spectral models.

Using the multiple available options for spectral models, one can check for a
statistically preferred model for a given dataset, by using methods like
likelihood ratio test, Akaike Information Criterion, etc. A notebook is added
to demonstrate this procedure.

Also fixed a URL link of a badge in README.
[`72 <https://github.com/chaimain/asgardpy/pull/72>`_]

- Update README with more description and a Build status badge.

Update general documentation, change the description of ``asgardpy`` from a
``package`` to a ``pipeline`` and add a setup.cfg file with the general
description of asgardpy. [`73 <https://github.com/chaimain/asgardpy/pull/73>`_]

- Fix Safe Mask reduction code for 1D Dataset and add a custom Spectral Model of
Broken Power Law with ``index_diff`` as a parameter, to get the second power
law index, with respect to the index of the first one.
[`74 <https://github.com/chaimain/asgardpy/pull/74>`_]


API Changes
-----------

- Restructure the pipeline to have a distinct ``base`` module, to avoid circular
imports issue and shifting the modules and classes for defining the base
class for Analysis Steps, base geometry of datasets and dataset reduction
methods.

Sort the imports for better coding practice.

Remove redundant ``glob_dict_std`` variable in ``io`` module.

Update documentation and notebooks accordingly.
[`75 <https://github.com/chaimain/asgardpy/pull/75>`_]

0.2.0

============================


Bug Fixes
---------

- Update documentation with correct URL paths, providing proper descriptions of
various modules and the main working of the pipeline and some formatting
corrections.
[`54 <https://github.com/chaimain/asgardpy/pull/54>`_]

- Update notebooks. [`69 <https://github.com/chaimain/asgardpy/pull/69>`_]


New Features
------------

- Build some custom SpectralModel classes.
[`59 <https://github.com/chaimain/asgardpy/pull/59>`_]

- Add support for common data types for different instruments by have a standard
``dl3_type`` as ``gadf-dl3`` instead of instrument specific like ``lst-1`` and
improve the conditions for checking its different values. See Issue
[`34 <https://github.com/chaimain/asgardpy/issues/34>`_] for more details.
[`65 <https://github.com/chaimain/asgardpy/pull/65>`_]

- Add support for selecting various spectral model parameters in a given Field
of View, by generalizing the function ``apply_selection_mask_to_models`` in
the ``asgardpy.data.target`` module.
[`67 <https://github.com/chaimain/asgardpy/pull/67>`_]

API Changes
-----------

- Remove dependency of hard-coded Fermi-LAT files structure to move towards a
generalized 3D datasets input.

Expand the scope of creating exclusion mask for 1D dataset.
[`56 <https://github.com/chaimain/asgardpy/pull/56>`_]

- Adding the possibility to use a separate yaml file for providing Target source
model information and reading the file pathas ``models_file`` variable.

Fix some variable names to be the same as used in Gammapy and for moving
towards generalizing the pipeline.

Separate documentation of each sub-module of ``asgardpy.data`` module.
[`57 <https://github.com/chaimain/asgardpy/pull/57>`_]

- Adding support of reading EBL models from fits files.

Also adds to the index page of the documentation, an introduction to the
package and moving the Development links to the sidebar.
[`58 <https://github.com/chaimain/asgardpy/pull/58>`_]

- Incorporate input of Fermi-LAT files, generated with fermipy into
``Dataset3DGeneration`` function by generalizing the process of defining the
base geometry of a Counts Map, reading diffuse model names from the XML file
and some re-arrangement of the general procedure.

Add functions to read spectral and spatial model information from different
formats to the standard Gammapy format, and improve the ``asgardpy.data.target``
module in general.

Rename some variables in ``data`` and ``io`` modules accordingly.
[`61 <https://github.com/chaimain/asgardpy/pull/61>`_]

- Remove features from the package that are not essential and can be used with
Gammapy alone. These are the Analysis steps of ``light-curve-estimator``,
``excess-map``, ``DL4Files`` class for writing data products to separate files
and ``asgardpy.utils`` module, containing basic plot functions. These are
listed in the Issue [`60 <https://github.com/chaimain/asgardpy/issues/60>`_].
[`62 <https://github.com/chaimain/asgardpy/pull/62>`_]

- Generalize the usage of ``GeomConfig`` for both type of Datasets. Let user
define non-spatial axes to define the base geometry, currently being only of
Energy, differentiating from the energy parameters used for generating SEDs in
``flux-points`` Analysis Step, using ``spectral_energy_range`` component. See
connected Issue [`28 <https://github.com/chaimain/asgardpy/issues/28>`_].

Generalize mapping of Models from different format to Gammapy-compliant format,
by having two separate functions, ``params_renaming_to_gammapy`` and
``params_rescale_to_gammapy`` for Spectral Model. See Issue
[`52 <https://github.com/chaimain/asgardpy/issues/52>`_] for more detail.

Extend support to map ``PLSuperExpCutoff2`` spectral model of Fermi-XML type and
``GaussianSpatialModel``.

Add images in the documentation to show the workflow of the package and the
model parameters mapping from Fermi-XML type to Gammapy type.

Have the option to read 3D dataset information when no distinct ``key`` names
are provided.
[`64 <https://github.com/chaimain/asgardpy/pull/64>`_]

- Generalize reading energy axes by using a distinct function ``get_energy_axis``
in ``asgardpy.data.geom`` module. Let ``spectral_energy_range`` be of
``MapAxesConfig`` type for more uniform reading of this information. Also
allow for providing custom energy bin edges for this variable, to be used to
create SEDs. [`68 <https://github.com/chaimain/asgardpy/pull/68>`_]

- Remove GTI selections from 3D datasets, as at least for Fermi-LAT datasets,
the files are produced for a select set of GTI time intervals amongst other
selections and the various files produced, are exclusive for these selections.

GADF-DL3 type of 1D dataset can still have GTI selection option, but it should
correspond to the GTI interval for the Fermi-LAT data.
[`70 <https://github.com/chaimain/asgardpy/pull/70>`_]

0.1

============================


New Features
------------

- Start adding requirements and dependencies and use a minimum python version
of 3.8 instead of 3.7.
[`6 <https://github.com/chaimain/asgardpy/pull/6>`_]

- Start with some I/O classes and functions for DL3 and DL4 files in a ``io``
module. [`7 <https://github.com/chaimain/asgardpy/pull/7>`_]

- Start entering Fit and plot functions in ``analysis`` module.
[`11 <https://github.com/chaimain/asgardpy/pull/11>`_]

- Proposal for the initial template for the pipeline to perform the following
steps,

1. Read the various instrument DL3 files

2. Perform any and all data reductions

3. Generate Datasets for each instrument

4. Pass the list of all such Datasets to the Gammapy Fit function to get the
best-fit model

The other functionalities can be left to the user to perform without using
asgardpy. [`15 <https://github.com/chaimain/asgardpy/pull/15>`_]

- Build further the pipeline structure, by generalizing the dataset production
as 1D or 3D, let the ``DL3Files`` class be the base class for all DL3 Files
input.

Also include a release drafter template in .github folder.
[`16 <https://github.com/chaimain/asgardpy/pull/16>`_]

- Include the release-drafter in github CI workflow.
[`18 <https://github.com/chaimain/asgardpy/pull/18>`_]

- Begin preparations for adding workable scripts.
Restructure classes of Analysis Steps for creating 1/3 D datasets to only
have a single Analysis Step to be run for for each type of dataset and to
have the various components for data selection, reduction and creation of the
DL4 dataset, as a separate class which will be called when running the
particular ``AnalysisStep``.

Rename the module responsible for the ``AnalysisSteps`` of working with the
DL4 datasets, to Fit Models, Flux Points and Light Curve Estimation, to
``asgardpy.data.dl4``.

Add more configuration options for defining Background Reduction Makers, using
currently only "reflected" and "wobble" ``RegionsFinder`` methods.

Move the functions for Models assignment into ``asgardpy.data.target`` module.

Improve the method of DL3 files config input in the ``asgardpy.io`` module.

Add ``AsgardpyAnalysis`` class that handles running of all Analysis Steps,
based on the Gammapy HLI ``Analysis`` class.
[`19 <https://github.com/chaimain/asgardpy/pull/19>`_]

- Improve reading Models and assigning them to DL4 datasets, to be closer to the
functionality of Gammapy. Move all such functions to the ``target`` module.
See Issue [`29 <https://github.com/chaimain/asgardpy/issues/29>`_] for more
details.

Introduce a separate function to read Gammapy models from the ``AsgardpyConfig``
information and also to convert the Models information from XML model of
FermiTools to Gammapy standard.

Have a new object of ``AsgardpyAnalysis`` as ``final_model`` to make it
easier to read list of models before and after assignment to DL4 datasets.
[`31 <https://github.com/chaimain/asgardpy/pull/31>`_]

- Adding plotting functions into a separate module ``asgardpy.utils`` and
update the AnalaysisStep ``flux-points`` by using constant number of energy
bins per decade for each dataset, but keeping the range within each dataset's
energy axes. [`32 <https://github.com/chaimain/asgardpy/pull/32>`_]

- Start using GTI time intervals for creating DL4 datasets and ``light-curve``
analysis step. See Issue [`30 <https://github.com/chaimain/asgardpy/issues/30>`_]
for more details. [`35 <https://github.com/chaimain/asgardpy/pull/35>`_]

- Start adding example notebooks and starting with a single notebook for the
full analysis. [`37 <https://github.com/chaimain/asgardpy/pull/37>`_]

- Addition of instrument-specific spectral parameters like
``spectral_energy_range`` which can take custom energy edges as well.
[`41 <https://github.com/chaimain/asgardpy/pull/41>`_]

- Add notebooks showing each analysis step separately.
[`43 <https://github.com/chaimain/asgardpy/pull/43>`_]


API Changes
-----------

- Restructure pipeline to make it user-friendly and to follow the initiative in
the Gammapy PR [`3852 <https://github.com/gammapy/gammapy/pull/3852>`_].
See Issue [`24 <https://github.com/chaimain/asgardpy/issues/24>`_] for more
details.

Have Asgardpy follow the workflow of the HLI in Gammapy more closely, by
having a ``Config`` class and an ``Analysis`` class, named as ``AsgardpyConfig``
and ``AsgardpyAnalysis`` respectively, using ``pydantic``.

Create a Gammapy ``Registry`` for all the ``AnalysisSteps``.

Define Base classes for all Config classes and Analysis Steps, and separate
modules for defining base geometries for DL4 datasets and various dataset
reduction makers, as ``geom`` and ``reduction`` respectively.

Rename the Config ``Target_model`` to ``target`` which will contain the target
source information, required for the high-level analysis.

Extend support for various I/O options in the ``io`` module

Distinguish the 1/3 Dataset Config information with the associated Dataset
type as used in Gammapy. [`26 <https://github.com/chaimain/asgardpy/pull/26>`_]

- Start compressing the code in various processes to reduce total analysis time.
[`36 <https://github.com/chaimain/asgardpy/pull/36>`_]

- Improve the scope to add multiple exclusion regions as a list of
``RegionsConfig``, thus removing some hard-coded features.
[`45 <https://github.com/chaimain/asgardpy/pull/45>`_]

- Optimize Models assignment with additional inputs of list of dataset names and
the name of the target source, to read from either the config or the XML file.

Add a separate notebook, showing the asgardpy processes related with Models.
[`46 <https://github.com/chaimain/asgardpy/pull/46>`_]

- Update reading of Model parameters from XML file, by including the
``spectrum_type`` information as defined in the original format. This helps
for Spectral Models like Exponential Cutoff Power Law, Broken Power Law and
Super-Exponential Cutoff Power Law as used in the 4FGL catalog, where Gammapy
uses different formulae and parameter names. Resolves a part of the Issue
[`52 <https://github.com/chaimain/asgardpy/issues/52>`_].
[`53 <https://github.com/chaimain/asgardpy/pull/53>`_]


Bug Fixes
---------

- Fixes ``python_requires`` version in setup.py.
[`8 <https://github.com/chaimain/asgardpy/pull/8>`_]

- Try to fix some coding styles to avoid test errors by using isort and
suggestions from pylint. [`10 <https://github.com/chaimain/asgardpy/pull/10>`_]

- Update Changelog and fix an earlier commit change.
[`17 <https://github.com/chaimain/asgardpy/pull/17>`_]

- Fix adding exclusion regions in 3D dataset and assuming a
``CircleAnnulusSkyRegion`` to be the first exclusion region type.
[`40 <https://github.com/chaimain/asgardpy/pull/40>`_]

- Fixing assignment of Dataset models to be done in the ``analysis`` module and
not in each DL4 dataset creation module.

Check for diffuse background models before enlisting them, and perform any
additional tasks as required.

Have the model information of the target source, read from XML file, be the
first entry in the list of Models.

Correct the parameter values as defined in Fermi-XML models, by updating the
units, scaling factors, range of values, and generating a list of Gammapy
``Parameter`` objects, to then generate the respective Models object.
Add links to the Fermi-XML definitions for reference in docstrings.

Fix the condition on when to use the model information for the target source,
given in the ``AsgardpyConfig`` file or continue with the information in the
XML file. [`42 <https://github.com/chaimain/asgardpy/pull/42>`_]

- Fixing Flux Points Analysis step, to get instrument-specific flux points by
using ``instrument_spectral_info`` dict object, containing the relevant
instrument-specific information.

This information is used to sort the datasets provided for the ``flux-points``
step, with the respective energy binning and dataset names.
[`44 <https://github.com/chaimain/asgardpy/pull/44>`_]

- Cleaning of logging information and updating doc-strings.
[`47 <https://github.com/chaimain/asgardpy/pull/47>`_]

- Fix mypy check errors in default values of different variables.
[`48 <https://github.com/chaimain/asgardpy/pull/48>`_]

- Fix variable assignment issue from previous PR by using a new Config variable
``PathType`` which uses strings of paths and reads them as ``pathlib.Path``
objects. [`50 <https://github.com/chaimain/asgardpy/pull/50>`_]

- Clean the pipeline from all outputs, irrelevant comments and reference to any
private data in config files or notebooks.
[`51 <https://github.com/chaimain/asgardpy/pull/51>`_]

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.