Git Product home page Git Product logo

vtspy's Introduction

vtspy: VERITAS analysis package

vtspy allows to analyze the VERITAS DL3 data and analyze the joint VERITAS and Fermi-LAT analysis with gammapy and fermipy. For full documentation visit: https://vtspy.readthedocs.io/en/latest/index.html

Install

Users

pip install vtspy

Developers

git clone https://github.com/takdg123/vtspy.git
cd vtspy 
pip install .

Main contributors

Donggeun Tak (DESY), Pedro Ivo Silva Batista (DESY), Colin Adams (Columbia Univ.), Stephan O'Brien (McGill Univ.), Arkadipta Sarkar (DESY),

vtspy's People

Contributors

cbadams2 avatar pivosb avatar takdg123 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

steob92

vtspy's Issues

Binsperdec not being passed through to fermi sed generation

The following line:

o = self.gta.sed(self.target.name, outfile=outfile, bin_index=kwargs.pop("bin_index", 2.0), loge_bins=loge_bins, write_fits=True, write_npy=True, **kwargs)

sets the binning for the Fermi sed generation differently than is specified by the binsperdec provided in the config.yaml file.

This can most simply be resolved by replacing the loge_bins=loge_bins with loge_bins=self.gta.log_energies, which will pull the binning straight from the GTAnalysis object, which has been initialized with the Fermi portion of the config file. Beyond that, however, there is likely still some cleanup needed in the surrounding areas to remove extraneous code. Not sure if there needs to be edge cases accounted for in case of binsperdec missing from the config file.

Fermipy independence

If fermipy is not in environment, the try/catch block fails, but the error message points to logging rather than logger.

logging.warning("Fermitools is not installed. Any Fermi-LAT related analysis cannot be performed.")

Additionally, if this is the case, the following import lines

import fermipy.wcs_utils as wcs_utils
import fermipy.utils as fermi_utils

also fail, and should be moved inside the try/catch block.

"Anasum" hard coded throughout VERITAS

VEGAS doesn't use anasum, so this string in the dictionaries and filename should be removed to accommodate those files (filenames are not standardized).
filelist = glob.glob(f"{self._datadir}/*anasum.fit*")
can become
filelist = glob.glob(f"{self._datadir}/*.fit*")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.