-
Notifications
You must be signed in to change notification settings - Fork 55
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
Rename some modules #163
Comments
I agree with your points, but I am not sure if this is worth a major bump. Unless we actually rewrite a substantial part of the code or rearrange a lot of files, this would "just" be some class renaming. I think we could still handle that with a minor bump and some deprecation warnings until the following minor bump |
This is going to break a lot of people's optimization cases that use the old names though. To me, that's enough to justify a major version bump Link. Regarding DVConstraints rename, what about dvgeoConstraints? The constraints restrict geometric design variables. Or is it that the name would be too long? |
|
Regarding the major bump, it's just to stop people from complaining about it breaking people's code as I'm sure it will impact everyone downstream. People should never blindly pull/install stuff without reading changelog, but in reality that's what they do. EDIT: I think it's also possible to still keep the old names but throw warnings when they are used. This can be done by subclassing the renamed modules, and throwing the warning at
Well all constraints will restrict DVs, so I don't think that's a good argument. |
I like this suggestion, though without the underscores in the new |
My suggestions: The three above appear related enough to put in their own submodule. However,
(DVGeometryMulti currently only works with FFDs but could be extended in the future.) I have no strong opinions on the version number. We have broken the API before without bumping the major version. |
I should have mentioned in my post, but the motivation for having |
Okay I think we have agreed on As for the parameterizations, the two proposals currently are:
I prefer the former just to maintain some consistency with Finally, for the topology stuff, I prefer not naming a class containing the word
or something like that. We could also do the classic One final point of discussion: should we merge pySpline into this? The way I see it, pyNetwork, pyGeo, and pyBlock are just "advanced" wrappers on the corresponding pySpline objects, where with the topology stuff you can have multiple of them together. So it would make sense to merge them in some way. Do we have any examples of codes that use pySpline without needing pygeo? |
I'm fine with the |
It looks like both pyNetwork and pyBlock are basically collections of lines/volumes, so why not call them pyGeo could be called |
pyGeo is primarily (I think AFAIK only) used for generating wing surfaces. I kind of prefer |
Sorry for the delay on this. Here are my comments.
Yes, we should use CamelCase.
I see the appeal of merging, but I would be hesitant to do it. pySpline is a more fundamental package, its well-defined, self-contained, and I think there are many applications beyond just geometry where you would want to use splines without having to install the extra “baggage” of pyGeo. Internally, I think
I think even if we use I feel I feel that these names, while they are not perfect, are somewhat descriptive for what they are and how we use them. Its possible that I am just too used to them also. I think if we are renaming these three classes, then
Overall, I think In any case, we should probably discuss this a little further, and converge on names and features, but I think much of the pyGeo repo could be refactored as part of the process. I am willing to do the refactor and help as needed. |
Here is my 2 cents on this issue as well.
I think it is a bit more nuanced than that. The docker images are based on the latest versions so changes just appear there without a user directly pulling from API changes like this are a bit of a pain point for me. I agree that the new names are clearer, but the majority of the people who use |
We should be publishing tagged production releases of the docker images, rather than having users rely on a rolling release.
All fair points. We also discussed this in the maintenance meeting, and agreed to keep the naming as is for now due to a number of reasons:
I think we should keep this issue open though, and have some sort of long term plan to ensure pygeo is still maintainable in the future. |
Description of feature
The names in pygeo are terrible. There's a module called
pygeo
insidepygeo
which only does surface generation, andDVCon
isn't really for constraining DVs directly.Here is a list of things I would like to rename, together with suggestions.
DVGeometry
-> add FFD to the name to make it explicitDVGeometryMulti
-> somethingMultiFFD
DVGeometry
prefix for the other parameterizationsDVConstraints
->geoConstraints
pyGeo
the module must be renamedFew other things to consider:
Please comment below with your suggestions.
The text was updated successfully, but these errors were encountered: