California-Planet-Search / radvel

General Toolkit for Modeling Radial Velocity Data
http://radvel.readthedocs.io
MIT License
57 stars 52 forks source link

error obtained while running MAP fit #379

Closed Hiyabiswas closed 1 year ago

Hiyabiswas commented 1 year ago

whenever, I run this command: radvel fit -s /home/sbiswas/radvel-master/example_planets/HD164922.py, I found no error, it works fine. But whenever I run this command: radvel fit -s /home/sbiswas/radvel-master/example_planets/try_final.py, for my data file, this below mentioned error comes: (base) [sbiswas@fedora ~]$ radvel fit -s /home/sbiswas/radvel-master/example_planets/try_final.py /home/sbiswas/radvel-master/example_planets/try_final.py Performing maximum a posteriori fitting for try_final Traceback (most recent call last): File "/home/sbiswas/anaconda3/bin/radvel", line 33, in sys.exit(load_entry_point('radvel==1.4.9', 'console_scripts', 'radvel')()) File "/home/sbiswas/anaconda3/lib/python3.10/site-packages/radvel/cli.py", line 197, in main args.func(args) File "/home/sbiswas/anaconda3/lib/python3.10/site-packages/radvel/driver.py", line 146, in fit P, post = radvel.utils.initialize_posterior(config_file, decorr=args.decorr) File "/home/sbiswas/anaconda3/lib/python3.10/site-packages/radvel/utils.py", line 137, in initialize_posterior like = radvel.likelihood.CompositeLikelihood(list(likes.values())) File "/home/sbiswas/anaconda3/lib/python3.10/site-packages/radvel/likelihood.py", line 257, in init self.y = np.append(self.y, like.y - like.vector.vector[like.vector.indices[like.gamma_param]][0]) TypeError: unsupported operand type(s) for -: 'str' and 'float'

bjfultn commented 1 year ago

resolved over email. There were hyphens in place of minus signs in the data file.