-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Usage of config vs camera_config and separating them. #283
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
Comments
If I recall correctly, In fact, there are three different config dictionaries:
TBH, a lot of the current stat of affairs was kept for backwards compatibility. In my ideal world, (i) I'm all for addressing these shortcomings and having more PRs on this end. However, we need to make sure whether or not we want to retain backwards compatibility. |
I thought that #98 already broke backwards compatibility? You mentioned here that it did, so I think we can go all in and clean up as many things as we can internally, doing our best to not change too many things that directly influence the end user. |
Yes it already does contain breaking changes, but we don't want to completely change literally everything and make it impossible for users to migrate. For now, I say we leave things as they are, but we add the aforementioned We will probably have to write a migration guide in the future as well. |
Closing this in favor of #337 |
I'd like a bit of clarification as to what
config
andcamera_config
will contain, and which one is more suitable for which scenario.As its name would imply, I think that
camera_config
is to be used exclusively by theCamera
mobject and all of its inheritors. As such, it should probably contain configurations pertaining to the frame rate, the background colour, the resolution, and similar things.config
meanwhile, is probably supposed to contain more general configurations, such as the file output directories, the caching related configurations, the logging configuration, and similar.Should
config
also contain entries that "should" belong incamera_config
?Currently,
camera_config
is just set to be equal toconfig
, meaning thatconfig
contains stuff like the frame_rate and more, andcamera_config
contains stuff like thetex_template
.Similarly, should non-
Camera
objects use the values incamera_config
? The vast majority of values taken fromconfig
are stuff likepixel_width
,frame_height
, and these are better suited to be incamera_config
, butScene
objects often make heavy use of these values.This ties in with #282 , since the main issue there seems to be that
camera_config
was itself supposed to be an entry inconfig
, yet that does not appear to be the case.An ad-hoc fix for #282 was to change
config["camera_config"]
toconfig
, after which everything fell into place since all other objects looked forpixel_width
andpixel_height
inconfig
, but shouldn't stuff likepixel_width
andpixel_height
go incamera_config
anyway?So, basically, what will
config
andcamera_config
contain? Will they contain duplicate values? Which objects can use which configs?Mentioning @leotrs for his thoughts, since he wrote the config system.
The text was updated successfully, but these errors were encountered: