Giter Club home page Giter Club logo

frbpoppy's People

Contributors

2749113159 avatar astrocoding avatar davidgardenier avatar joerivanleeuwen avatar loostrum avatar macrocosme avatar wfarah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

frbpoppy's Issues

Code speedup options

Hi David,

I've been using your code to estimate how many FRBs we could detect with a new survey -- thank you very much for making this available, it is fantastic! (I will be in touch about the science via email once it's a bit better fleshed out).

I had some ideas for speeding up the code, which are in this notebook.

The first is to speed up gen_dm() in CosmicPopulation by using healpy to do the coordinate lookup, instead of sqlite (there is a fair bit of overhead with making multiple sql queries). I just uploaded a precomputed NE2001 and YMW16 healpix maps to PyGEDM, which is essentially equivalent to the sqlite table frbpoppy populates.

The second is to speed up gen_dist() by using interp1d from scipy, to generate interpolation functions that can be used instead of the DistanceTable lookup.

Combined, these should significantly speed up the time taken for CosmicPopulation.generate().

As you'll see in the notebook, the NE2001 models have some disagreement. I'm not sure if this is due to rounding or something else?

Calculate rates

At the moment the rate parameters are empty. Calculate them and add

Frbpoopy installation

Hi,
I am trying to install frbpoppy in ubuntu but I got the following error.
base) lenovo@lenovo-ThinkPad-E15:~/frbpoppy$ python3 setup.py develop
error in frbpoppy setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
requests >= 2.20.0.

Is there any solution to this. Please help me out with this.

Bin limits histograms

If the bin limits of the initial population don't cover that of subsequent plotted populations, the later populations won't show up on the plot. It's easily spotted plotting the parameter against another one, rather than as a histogram. Going to be difficult to solve due to the nature in which histogram bins are determined (recursively)

frbcat

Implement all properties given in frbcat in order to compare properties

airy, gaussian beam pattern pixel_scale (error ? )

Hi! frbpoppy has been at the core of my work, thanks a lot for making it !
I found an issue in the pixel_scale for airy and gaussian beam patterns, which is taken as follows in the code:
pixel scale

But, if I go find the fwhm ( in pixels ) in the beam_array given for gaussian and airy beam patterns, I find it to be 94X2 and 30X2 pixels wide respectively. Looks like the pixel scales should have been fwhm/188, and fwhm/60 respectively. Could you please look into it?

Turn off scattering as a default

On basis of geometry argument. Maximum scattering on basis of scattering screen directly in between source and observer. Gets less as screen moves away from that position.

sqlite3 error when running _starting_with_frbpoppy_.py

I followed these steps, and got the following error:

>> conda create -n frbpoppy python=3.8
>> conda activate frbpoppy
>> git clone https://github.com/davidgardenier/frbpoppy.git 
>> cd frbpoppy
>> python3 setup.py develop
>> python3 examples/_starting_with_frbpoppy_.py 
cosmic_pop.py | Generating complex population
Traceback (most recent call last):
  File "examples/_starting_with_frbpoppy_.py", line 14, in <module>
    cosmic_pop.generate()
  File "/hyrule/data/users/kshitij/frbpoppy/frbpoppy/cosmic_pop.py", line 499, in generate
    self.gen_dist()
  File "/hyrule/data/users/kshitijfrbpoppy/frbpoppy/cosmic_pop.py", line 126, in gen_dist
    n_model = self.dist_func()
  File "/hyrule/data/users/kshitij/frbpoppy/frbpoppy/cosmic_pop.py", line 122, in <lambda>
    self.dist_func = lambda: NumberDensity(model=model, **kwargs)
  File "/hyrule/data/users/kshitij/frbpoppy/frbpoppy/number_density.py", line 31, in __init__
    m = self.dt(z=np.array([z_max]))
  File "/hyrule/data/users/kshitij/frbpoppy/frbpoppy/precalc.py", line 352, in lookup
    d = c.execute(query, [str(r)]).fetchone()
sqlite3.OperationalError: disk I/O error

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.