diff --git a/AUTHORS.md b/AUTHORS.md index 814201bb0a62..49e6c06021a0 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -44,3 +44,4 @@ - Oliver Bucklin <> [@obucklin](https://github.com/obucklin) - Dominik Reisach <> [@dominikreisach](https://github.com/dominikreisach) - Eric Gozzi <> [@ericgozzi](https://github.com/ericgozzi) +- Daniel Nunes Locatelli <> [@daniel-locatelli](https://github.com/daniel-locatelli) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48f846510721..46f5a93bc5c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +* Changed `Data.__dtype__` to delegate to `Data.__clstype__` (removes duplicated dtype format logic). * Changed `Tolerance` class to no longer use singleton pattern. `Tolerance()` now creates independent instances instead of returning the global `TOL`. * Renamed `Tolerance.units` to `Tolerance.unit` to better reflect the documented properties. Left `units` with deprecation warning. * Fixed `NotImplementedErorr` when calling `BrepLoop.vertices`. diff --git a/src/compas/data/data.py b/src/compas/data/data.py index aaaf562f0bd1..44ad909235ae 100644 --- a/src/compas/data/data.py +++ b/src/compas/data/data.py @@ -73,7 +73,7 @@ def __init__(self, name=None): @property def __dtype__(self): - return "{}/{}".format(".".join(self.__class__.__module__.split(".")[:2]), self.__class__.__name__) + return self.__clstype__() @classmethod def __clstype__(cls):