Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

True cont update #972

Merged
merged 7 commits into from
Feb 8, 2023
Merged

True cont update #972

merged 7 commits into from
Feb 8, 2023

Conversation

alxogm
Copy link
Contributor

@alxogm alxogm commented Jan 31, 2023

Added two options:

-- use splines To use mean continuum and var_lss from a spline fit saved in the raw statistics file.
--recompute var lss To use the var lss provided by the raw statistics file instead of the re-computed one. Set as True by default.

Both additions motivated by the work with Andrea on CIV forest, as we were having issues getting a good true continuum CF.

@alxogm alxogm requested a review from iprafols January 31, 2023 00:14
@@ -123,7 +126,8 @@ def __parse_config(self, config):
self.raw_statistics_filename = config.get("raw statistics file")

self.force_stack_delta_to_zero = config.getboolean("force stack delta to zero")

self.use_splines=config.getboolean("use splines")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should raise ExpectedFluxError when the different options are None if only to check that the default values are properly digested (it could not be the case if, for example, one is running from a notebook. I will add a commit to fix this

@iprafols
Copy link
Collaborator

iprafols commented Feb 7, 2023

It seems github actions have updated their version of pylint so I needed to fix a few minor things in some files for the pylint test to pass

@iprafols iprafols merged commit 8c571e7 into master Feb 8, 2023
@iprafols iprafols deleted the true_cont_update branch February 8, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants