BHoM / DIALux_Toolkit

GNU Lesser General Public License v3.0
4 stars 1 forks source link

DIALux objects cannot deserialise correctly #76

Closed adecler closed 3 years ago

adecler commented 3 years ago

Description:

I am actually struggling to understand what is going on here. Those BHoM objects have been moved from the oM to the Adapter namespace:

BH.oM.Adapters.DIALux.Furnishing
BH.oM.Adapters.DIALux.Luminaire
BH.oM.Adapters.DIALux.LuminaireType
BH.oM.Adapters.DIALux.Project
BH.oM.Adapters.DIALux.Room
BH.oM.Adapters.DIALux.StfFile
BH.oM.Adapters.DIALux.Structure
BH.oM.Adapters.DIALux.Version

Those were available in the UI menus before and are not anymore because of that change. They also cannot deserialise anymore for the same reason.

From what I can see in the code, those seems to be created for internal usage. So here's the suggestion for restoring compliace:

Steps to reproduce:

Test any of the objects above for versioning from the dataset of version 3.3 objects.

FraserGreenroyd commented 3 years ago

The change was made in this PR and was done because when the toolkit was originally built, it was thought people might build up the objects within scripts. Workshops with users determined this to be not helpful and was providing more confusion as, by that point, we were pushing people to have a single model of Environment objects that the toolkit would handle conversions of, and building up very specific DIALux objects became non-sensical (similar to the gbXML objects within XML_Toolkit).

As such, the objects have been permanently moved from the oM and should be added to the list of objects that cannot be versioning. I am happy to draft up a message for that to be included in the deleted.json file or wherever such things are going in the versioning framework.

I would say the objects probably don't need to be BHoM objects anymore now they've moved from the oM though, so am happy to remove their inheritance. @JohannaOlin1 is that something you can pick up? :smile:

adecler commented 3 years ago

OK, I have added them to the list of deleted items. I'll ask everyone to add their message when I raise the PR

FraserGreenroyd commented 3 years ago

This is now being handled by this PR, specifically this commit :smile: