Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook for quick simulation of LST1 observations #1313

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

moralejo
Copy link
Collaborator

The telescope performance is stored in the csv files The background is obtained from good-quality real data, the gamma IRF from MC

The telescope performance is stored in the csv files
The background is obtained from good-quality real data, the gamma IRF from MC
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

codecov bot commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.50%. Comparing base (cfd9a7f) to head (a734bd9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1313   +/-   ##
=======================================
  Coverage   73.50%   73.50%           
=======================================
  Files         134      134           
  Lines       14211    14211           
=======================================
  Hits        10446    10446           
  Misses       3765     3765           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Replaced gauss by skewnorm for migration matrix parametrization
Added example spectra
Pulsar mode
@moralejo moralejo marked this pull request as ready for review October 30, 2024 11:00
@jsitarek
Copy link
Collaborator

jsitarek commented Nov 12, 2024

in the "pulsar mode" field it would be safer to put the overwritting of alpha and printing of it into if pulsar_mode: clause, otherwise somebody can by mistake overwrite alpha despite having the pulsar_mode set to false
especially that later on there is a check on pulsar_mode, so the cell with pulsar_mode definition needs to be executed

@jsitarek
Copy link
Collaborator

in the integrate function, why not passing the dFdE function as a parameter and computing dfde1 and dfde2 inside the integrate function?

@jsitarek
Copy link
Collaborator

jsitarek commented Nov 12, 2024

there is a typo: "jus trplace"
and later on "bind" instead of "bins"

@jsitarek
Copy link
Collaborator

I am not sure if it is a good idea to randomize the position of the true energies when you calculate the energy migration. If I understand the code correctly this means that from one execution to another you will have a different number of times you sample a given true energy bin, and this will shift the events back and forth. Maybe best to have the fine binning in Etrue uniform and only randomize (or also use constant fine binning) in the migration factor

@jsitarek
Copy link
Collaborator

As the final plot of the notebook will likely end up in many of the proposals, I would recommend to made some changes to it to unify how they look like:
increase the marker size (the middle range points for a strong source are not visible)
add some basic information that were used during the calculation into the legend of the plot (observation time, zenith angle, maybe also if pulsar mode or extension were defined)
add somewhere in the corner of the figure the version number of the macro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants