Giter Club home page Giter Club logo

pylightcurve's People

Contributors

atsiaras avatar brackham avatar gmorello avatar ryanvarley 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pylightcurve's Issues

More precision for timing in results.txt file

The fit results file only outputs single-digit errors on the transit midtimes, which is leading to loss of precision when converting from days to seconds (0.0001 d is 8.6 sec), e.g.:

variable result uncertainty

T_mid_0 2451234.5678 -0.0005 +0.0007

Relatedly: is there a way to get access to the fit results in their full precision directly? (ie, without having to read back in the output file)

Downloading databases blocked on secure networks

This is probably a niche problem, but the database dropbox urls are blocked on (at least some) government networks. This prevents pylightcurve from being imported on these systems (at least while they are on those networks). Perhaps a different hosting solution can be found for these databases (GitHub itself?). This also could be something that EMAC could assist with if you are interested.

Problem running the example to get planet parameters

Hello!

I have been trying to run this nifty piece of code on my Mac. It installed without issues, but now I'm trying to run one of the examples and it breaks...

Here is the code I'm trying to run (copy&paste of one of the examples in your Readme):

import pylightcurve as plc
import matplotlib.pyplot as plt
import numpy as np

(planet, stellar_logg, stellar_temperature, stellar_metallicity, rp_over_rs, fp_over_fs,
period, sma_over_rs, eccentricity, inclination, periastron, mid_time) = plc.find_oec_parameters('hd209458b')

print (planet, stellar_logg, stellar_temperature, stellar_metallicity, rp_over_rs, fp_over_fs,
period, sma_over_rs, eccentricity, inclination, periastron, mid_time)

I checked that the package was installed correctly and I definitely have a good internet connection, however still this happens:

Downloading ephemeris database...
hjd_dict.pickle

Downloading ephemeris database failed. A download will be attempted next time.
Error: <class 'urllib.error.HTTPError'>
()
Traceback (most recent call last):
File "make_lightcurve.py", line 11, in
import pylightcurve as plc
File "/usr/local/lib/python3.7/site-packages/pylightcurve/init.py", line 11, in
from .catalogues_celestial_sphere import *
File "/usr/local/lib/python3.7/site-packages/pylightcurve/catalogues_celestial_sphere.py", line 81, in
hjd_dict = open_dict(glob.glob(os.path.join(databases.ephemeris, 'hjd_dict.pickle''*'))[0])
IndexError: list index out of range

Any insights?

Thanks a bunch,

Julia

Results file does not print midtimes if multiple transits of the same epoch

I have 5 light curves that I am simultaneously fitting for a transiting planet system, two of which have the same epoch. However, I only get four T_mid values back in the fit file. I'm guessing they're getting tagged by epoch and only one value is reported... but which one? Please fix :)

Thanks!
Elisabeth

AttributeError: module 'numpy' has no attribute 'float'

Installing the latest version of iraclis in a clean conda environment and attempting to run it throws an AttributeError that seems to originate with pylightcurve:

iraclis_float_error

It seems that np.float was an alias for float that was deprecated in NumPy 1.20.

Replacing dtype=np.float with dtype=float in pylightcurve/analysis/gaussian.py fixes this issue. I will open a pull request with this patch.

issue when dealing with encoding error in exotethys core function

python version: 3.7 and 3.10
pylightcurve branch: dev or master on 11 May 2023

Calling plc.exotethys raises a series of errors (UnpicklingError, UnicodeDecodeError, TypeError) where the last one is:

~/git-repos/pylightcurve/pylightcurve/processes/files.py in open_dict(path)
     44             return unpickler.load()
     45         except UnicodeDecodeError:
---> 46             return unpickler.load(encoding='latin-1')
     47 
     48 def save_dict(dictionary, path):

TypeError: load() got an unexpected keyword argument 'encoding'
```
Checking at the various versions (back to 3.7) of the _Unpickler object it does not seem that the load method accepts the encoding argument. 

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.