-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor face_attr and room_attr inputs #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @mostaphaRoudsari .
I'm generally in favor of the change but I'm mostly concerned about the impact it will have on the CLI command. Do you think you could implement this on the CLI in a way that did not remove any of the existing options on the command? This way, we don't need to involve Konrad (and I think also Mikkel and maybe Antonello) in the change here.
Basically, I'm imagining that these detailed specifications would be supplied to the command as a new JSON file option. And you keep all of the existing command options such that you format them into these RoomAttribute
and FaceAttribute
objects within the command, adding them to the detailed JSON specification if it's supplied.
It seems that would allow us to get the best of both worlds with the existing capability of just specifying the attributes we want within the command or we could just write out a whole JSON of RoomAttribute
and FaceAttribute
objects if we want more control.
This commit adds a new `face_attr_types` input to the `model_to_vis_set` function. This argument is in particular useful for only coloring Apertures or Floors to represent information that are limited to apertures or room-based information without coloring the whole room. I understand that Aperture and Shade are not the same as other FaceTypes but for a developer they can be considered as their own face type.
a63d73c
to
c082e79
Compare
🎉 This PR is included in version 0.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This PR introduces new objects for face and room attributes to allow mixing different combinations between different attributes.
This is a BREAKING CHANGE as it changes the input arguments for the function. I didn't try to fix the tests at this point because I wanted to make sure that @chriswmackey is fine with introducing these changes first.
Here is an example where I create two face attributes objects. The first face attribute colors the faces based on the
user_data.tag
and the other one writes the layer name usinguser_data.__layer__
.Here are the input and output files.
test_files.zip
The new attributes also allow filtering the objects by type. For this example, I'm only interested in the apertures.