afeinstein20 / eleanor

A tool for light curve extraction from the TESS FFIs.
MIT License
92 stars 39 forks source link

AttributeError: module 'tensorflow' has no attribute 'logging' #121

Closed saeedm31 closed 5 years ago

saeedm31 commented 5 years ago

In [112]: print('Found TIC {0} (Gaia {1}), with TESS magnitude {2}, RA {3}, and Dec {4}' ...: .format(star.tic, star.gaia, star.tess_mag, star.coords[0], star.coords[1]))
Found TIC 147407292 (Gaia 6564091190988411520), with TESS magnitude 5.0176, RA 327.065629441269, and Dec -47.3036166887218

----> 1 data = eleanor.TargetData(star, height=15, width=15, bkg_size=31, do_psf=True, do_pca=True)

~/anaconda3/lib/python3.7/site-packages/eleanor-0.2.7-py3.7.egg/eleanor/targetdata.py in init(self, source, height, width, save_postcard, do_pca, do_psf, bkg_size, crowded_field, cal_cadences, try_load) 206 207 if do_psf == True: --> 208 self.psf_lightcurve() 209 else: 210 self.psf_flux = None

~/anaconda3/lib/python3.7/site-packages/eleanor-0.2.7-py3.7.egg/eleanor/targetdata.py in psf_lightcurve(self, data_arr, err_arr, bkg_arr, nstars, model, likelihood, xc, yc, verbose, err_method, ignore_pixels) 690 from tqdm import tqdm 691 --> 692 tf.logging.set_verbosity(tf.logging.ERROR) 693 694 if data_arr is None:

AttributeError: module 'tensorflow' has no attribute 'logging'

benmontet commented 5 years ago

Hey there, what version of tensorflow are you using?

saeedm31 commented 5 years ago

Thank you for your reply. I updated the tensorflow and done ! Thanks