danhey / echelle Goto Github PK
View Code? Open in Web Editor NEWDynamic echelle diagrams for asteroseismology
License: MIT License
Dynamic echelle diagrams for asteroseismology
License: MIT License
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.