The cosipy library: COSI's high-level analysis software
Creators: name: Martinez-Castellanos, Israel
name: Gallego, Savitri
name: Huang, Chien-You
name: Karwin, Chris
name: Kierans, Carolyn
name: Lommler, Jan Peter
name: Mittal, Saurabh
name: Negro, Michela
name: Neights, Eliza
name: Pike, Sean N.
name: Sheng, Yong
name: Siegert, Thomas
name: Yoneda, Hiroki
name: Zoglauer, Andreas
name: Tomsick, John A.
name: Boggs, Steven E.
name: Hartmann, Dieter
name: Ajello, Marco
name: Burns, Eric
name: Fryer, Chris
name: Lowell, Alexander
name: Malzac, Julien
name: Roberts, Jarred
name: Saint-Hilaire, Pascal
name: Shih, Albert
name: Sleator, Clio
name: Takahashi, Tadayuki
name: Tavecchio, Fabrizio
name: Wulf, Eric
name: Beechert, Jacqueline
name: Gulick, Hannah
name: Joens, Alyson
name: Lazar, Hadar
name: Oliveros, Juan Carlos Martinez
name: Matsumoto, Shigeki
name: Melia, Tom
name: Amman, Mark
name: Bal, Dhruv
name: von Ballmoos, Peter
name: Bates, Hugh
name: Böttcher, Markus
name: Bulgarelli, Andrea
name: Cavazzuti, Elisabetta
name: Chang, Hsiang-Kuang
name: Chen, Claire
name: Chu, Che-Yen
name: Ciabattoni, Alex
name: Costamante, Luigi
name: Dreyer, Lente
name: Fioretti, Valentina
name: Fenu, Francesco
name: Ghirlanda, Giancarlo
name: Grove, Eric
name: Jean, Pierre
name: Khatiya, Nikita
name: Knödlseder, Jürgen
name: Krause, Martin
name: Leising, Mark
name: Lewis, Tiffany R.
name: Marcotulli, Lea
name: Nussirat, Samer Al
name: Nakazawa, Kazuhiro
name: Oberlack, Uwe
name: Palmore, David
name: Panebianco, Gabriele
name: Parmiggiani, Nicolo
name: Parsotan, Tyler
name: Rogers, Field
name: Schutte, Hester
name: Smale, Alan P.
name: Smith, Jacob
name: Trigg, Aaron
name: Venters, Tonia
name: Watanabe, Yu
name: Zhang, Haocheng
Publisher: name: arXiv
Year: 2023
Subjects: subject: High Energy Astrophysical Phenomena (astro-ph.HE)
subject: Instrumentation and Methods for Astrophysics (astro-ph.IM)
subject: FOS: Physical sciences
subject: FOS: Physical sciences

description: The Compton Spectrometer and Imager (COSI) is a selected Small Explorer (SMEX) mission launching in 2027. It consists of a large field-of-view Compton telescope that will probe with increased sensitivity the under-explored MeV gamma-ray sky (0.2-5 MeV). We will present the current status of cosipy, a Python library that will perform spectral and polarization fits, image deconvolution, and all high-level analysis tasks required by COSI's broad science goals: uncovering the origin of the Galactic positrons, mapping the sites of Galactic nucleosynthesis, improving our models of the jet and emission mechanism of gamma-ray bursts (GRBs) and active galactic nuclei (AGNs), and detecting and localizing gravitational wave and neutrino sources. The cosipy library builds on the experience gained during the COSI balloon campaigns and will bring the analysis of data in the Compton regime to a modern open-source likelihood-based code, capable of performing coherent joint fits with other instruments using the Multi-Mission Maximum Likelihood framework (3ML). In this contribution, we will also discuss our plans to receive feedback from the community by having yearly software releases accompanied by publicly-available data challenges.