question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

config post_init method not working for command line overrides

See original GitHub issue

The post_init only is being run with the default values in base_configs.py. However, when we add overrides from the command line, e.g., --viewer.no-enable, it won’t be re-run. @brentyi @evonneng thoughts on how to fix this and still have post_init logic somewhere? I’m curious if this would have to be built into the dcargs library itself.

https://github.com/nerfactory/nerfactory/blob/42501619229664f5949e7400f28ba0fa82589596/nerfactory/configs/base.py#L419-L453

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
evonnengcommented, Sep 20, 2022

ja makes sense. ill play around with this a bit today with the end goal of clearing out the post_init func. Thanks for the help Brent!

1reaction
ethanwebercommented, Sep 20, 2022

Oh this makes sense. You are suggesting calling methods on the config object!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override yml configuration in spring-boot with command line ...
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on...
Read more >
Command line argument does not override remote config #907
Hi, I use these versions : Spring 5.0.3.RELEASE Spring Boot 2.0.0.RC1 Spring Cloud Config 2.0.0.M5 (Finchley.
Read more >
Guide To Running Logic on Startup in Spring - Baeldung
Here we're trying to access an autowired field in the constructor. When the constructor is called, the Spring bean is not yet fully...
Read more >
C Command Line Overrides
To create a Command Line Setting Override, add a system-property attribute, specifying the string you would like to assign as the name for...
Read more >
Java Unit Testing with JUnit and TestNG
Regression Test: Tests to ensure the a change (such as enhancement, patches or configuration change) does not break the system or introduce new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found