mikecokina / elisa

GNU General Public License v2.0
15 stars 5 forks source link

Saving some files #19

Open JLE64315 opened 11 months ago

JLE64315 commented 11 months ago

Thank you very much for ELISA:

I am making the most of it. Very useful code.

I have some questions:

How can I save in a text file (CSV, for example):

  1. Data of the model fitted in light curve and radial velocities.
  2. Residuals for light curve and radial velocities. Thank you very much.
mikecokina commented 11 months ago

We do not support CSV files. ELISa relies on JSON files instead. You can save/load results via save_result/load_results method available on Analytics Task. For example, in demo notebook 12, there is analytics task created as

lst_sqr_task = LCBinaryAnalyticsTask(data={'Kepler': kepler_data}, method='least_squares', expected_morphology="detached")

To save results just use lst_sqr_task.save_result("path/to/file.json").

JLE64315 commented 11 months ago

Thank you for your quick response, I have got the result file but what I need the model fitted file.

best regards

El jue, 30 nov 2023 a las 18:44, Mike @.***>) escribió:

We do not support CSV files. ELISa relies on JSON files instead. You can save/load results via save_result/load_results method available on Analytics Task. For example, in demo notebook 12, there is analytics task created as

lst_sqr_task = LCBinaryAnalyticsTask(data={'Kepler': kepler_data}, method='least_squares', expected_morphology="detached")

To save results just use lst_sqr_task.save_result("path/to/file.json").

— Reply to this email directly, view it on GitHub https://github.com/mikecokina/elisa/issues/19#issuecomment-1834263172, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7YHSVTXLWCHWQ7QCRF4CDYHDAX5AVCNFSM6AAAAABABRTTS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGI3DGMJXGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Javier Lorenzo Espinosa PhD. Ciencias

JLE64315 commented 11 months ago

Hello, I think I have found a way to extract the parameters fitted and reproduce the model in a file. Anyway, thank you.

El jue, 30 nov 2023 a las 19:46, JAVIER LORENZO @.***>) escribió:

Thank you for your quick response, I have got the result file but what I need the model fitted file.

best regards

El jue, 30 nov 2023 a las 18:44, Mike @.***>) escribió:

We do not support CSV files. ELISa relies on JSON files instead. You can save/load results via save_result/load_results method available on Analytics Task. For example, in demo notebook 12, there is analytics task created as

lst_sqr_task = LCBinaryAnalyticsTask(data={'Kepler': kepler_data}, method='least_squares', expected_morphology="detached")

To save results just use lst_sqr_task.save_result("path/to/file.json").

— Reply to this email directly, view it on GitHub https://github.com/mikecokina/elisa/issues/19#issuecomment-1834263172, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7YHSVTXLWCHWQ7QCRF4CDYHDAX5AVCNFSM6AAAAABABRTTS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGI3DGMJXGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Javier Lorenzo Espinosa PhD. Ciencias

-- Javier Lorenzo Espinosa PhD. Ciencias

JLE64315 commented 11 months ago

Hello again, what I could not save in a file in the phase versus residuals. If you can help me, I would appreciate it.

Thank you.

El vie, 1 dic 2023 a las 12:42, JAVIER LORENZO @.***>) escribió:

Hello, I think I have found a way to extract the parameters fitted and reproduce the model in a file. Anyway, thank you.

El jue, 30 nov 2023 a las 19:46, JAVIER LORENZO @.***>) escribió:

Thank you for your quick response, I have got the result file but what I need the model fitted file.

best regards

El jue, 30 nov 2023 a las 18:44, Mike @.***>) escribió:

We do not support CSV files. ELISa relies on JSON files instead. You can save/load results via save_result/load_results method available on Analytics Task. For example, in demo notebook 12, there is analytics task created as

lst_sqr_task = LCBinaryAnalyticsTask(data={'Kepler': kepler_data}, method='least_squares', expected_morphology="detached")

To save results just use lst_sqr_task.save_result("path/to/file.json").

— Reply to this email directly, view it on GitHub https://github.com/mikecokina/elisa/issues/19#issuecomment-1834263172, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7YHSVTXLWCHWQ7QCRF4CDYHDAX5AVCNFSM6AAAAABABRTTS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGI3DGMJXGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Javier Lorenzo Espinosa PhD. Ciencias

-- Javier Lorenzo Espinosa PhD. Ciencias

-- Javier Lorenzo Espinosa PhD. Ciencias