Giter Site home page Giter Site logo

echelle's People

Contributors

danhey avatar warrickball avatar

Stargazers

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

Watchers

 avatar  avatar

echelle's Issues

Import notebookapp

Hi,

I am not able to import notebookapp and hence the echelle.interact() i snot working.

`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[483], line 1
----> 1 from notebook import notebookapp
2 servers = list(notebookapp.list_running_servers())
3 print(servers)

ImportError: cannot import name 'notebookapp' from 'notebook' (/home/khushboo/anaconda3/lib/python3.11/site-packages/notebook/init.py)

Any suggestions to resolve this issue?

Thanks,
Khushboo

plot_echelle() doesn't work for me

Hi Dan,

I've tried to run plot_echelle for a red giant star I know the dnu and numax for, with a frequency and power obtained through lightkurve. It doesn't seem to work for me,a nd I get the following error message. My notebook can be found here: https://github.com/ojhall94/echelle/blob/Testing/testing_with_lightkurve.ipynb

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-11-3751a2edbb00> in <module>
----> 1 plot_echelle(pg.frequency.value, pg.power.value, dnu, numax, 100., 250. )

~/PhD/Hacks_and_Mocks/echelle/echelle/echelle.py in plot_echelle(freq, power, dnu, fmin, fmax, offset, ax, levels, cmap)
     49                  ax=None, levels=500, cmap='gray_r'):
     50 
---> 51     echx, echy, echz = echelle(freq, power, dnu, fmin, fmax, offset=0.0,)
     52 
     53     if ax is None:

~/PhD/Hacks_and_Mocks/echelle/echelle/echelle.py in echelle(freq, power, dnu, fmin, fmax, offset)
     26 
     27     samplinginterval = np.median(trimx[1:-1] - trimx[0:-2]) * 0.1
---> 28     xp = np.arange(fmin,fmax+dnu,samplinginterval)
     29     yp = np.interp(xp, freq, power)
     30 

ValueError: arange: cannot compute length

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.