Skip to content

Conversation

@sscruz
Copy link

@sscruz sscruz commented Jan 20, 2026

  • Updating impact plots code to new interface
  • Adding the possibility to create standalone scripts to submit to slurm
  • Adding code to perform likelihood scans
  • Minor things: adjust verbosity in Likelihood

Copy link

@rbarrue rbarrue left a comment

Choose a reason for hiding this comment

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

Hi Sergio, the PR looks great!

I just have some comments asking for additional documentation.

return self

def set(self, value):
if self.isFrozen:
Copy link

Choose a reason for hiding this comment

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

Why the removal ?

Copy link

Choose a reason for hiding this comment

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

Hi Sergio, this new feature looks great. I would assume this is for binned multidimensional fits ?

There were some things that I did not fully understand at first glance (such as what I asked above), which brings me to this: could you add a docstring at the beginning so that one can get a quick overview of what the script does and what is each of its parameters?

Also could you add an example config so that one can understand how to define additional fit variables and binning ?

p = argparse.ArgumentParser(description="TFMC training (YAML-driven)")
p.add_argument("config", help="Path to global YAML config")
p.add_argument("--rotate", action="store", default=None, help="Point to a rotate JSON")
p.add_argument("--algo", default="grid", choices=["grid"])
Copy link

Choose a reason for hiding this comment

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

I think it would make sense to add some additional description to this argument, let me know if you disagree.

Also, what would be other possible options beyond grid ?

p.add_argument("config", help="Path to global YAML config")
p.add_argument("--rotate", action="store", default=None, help="Point to a rotate JSON")
p.add_argument("--algo", default="grid", choices=["grid"])
p.add_argument("--freezeParameters", default="", help="Parameters to freeze. Otherwise they float")
Copy link

@rbarrue rbarrue Jan 20, 2026

Choose a reason for hiding this comment

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

If can I just make a quick last request: for cases where the parser expects a single string with comma-separated values (like the one in this line), could you just put "(string with comma-separated values)" or smth like that ?

Copy link
Member

@schoef schoef left a comment

Choose a reason for hiding this comment

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

Can you put a usage example of slurm_utils? At some point we have to move stuff to subdirectories. Otherwise looks good.

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.

3 participants