Skip to content

Commit

Permalink
CHANGE refactoring model datastructure based on the first pull reques…
Browse files Browse the repository at this point in the history
…t comments
  • Loading branch information
petrasvestartas committed Dec 6, 2023
1 parent dd5c48e commit d010426
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 211 deletions.
31 changes: 19 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [0.1.0] 2023-12-06

### Added

### Changed
* Changed `all` general docstring formatting issues
* Changed `compas_model.model.element_node.ElementNode` property `my_object` is changed to `Element`
* Changed `compas_model.model.group_node.GroupNode` property `my_object` is changed to `geometry`
* Changed `compas_model.model.element_tree.ElementTree.` serialization method `from_data` check if node has not children and creates as a result different node type, instead of `my_object`
* Changed `test_model` function `create_model` by adding more nodes at leaves to really check if the serialization works.

### Removed

## [0.1.0] 2023-12-05

### Added

* TEST_PULL_REQUESTS(LICENSE) change to MIT license
* TEST_PULL_REQUESTS(requirements-dev.txt) added shapely library
* TEST_PULL_REQUESTS(readme.md) remove emtpy spaces

* DATA_STRUCTURE_MODEL(src\compas_model\model\group_node.py) create a group node that has an attribute of _my_object that is stored in the node Attributes, check the serialization, there must be a property _my_object that refers to the attribute. Try this class from the compas2 Tree implementation.
* DATA_STRUCTURE_MODEL(src\compas_model\model\element_node.py) same description as for the group_node, but this type the class works with elements only
* DATA_STRUCTURE_MODEL(src\compas_model\model\model.py) bring the code from the assembly
* DATA_STRUCTURE_MODEL(src\compas_model\model\element_tree.py) bring the code from the assembly
* DATA_STRUCTURE_MODEL(src\compas_model\model\tree_util.py) bring the composition functionality
* DATA_STRUCTURE_MODEL(all) remove all the additional methods
* DATA_STRUCTURE_MODEL(all) add the rest of the methods to work with data trees.
* PULL_REQUEST
* Added `requirements-dev` added shapely library
* Added `compas_model.model.group_node.GroupNode` create a group node that has an attribute of _my_object that is stored in the node Attributes, check the serialization, there must be a property _my_object that refers to the attribute. Try this class from the compas2 Tree implementation.
* Added `compas_model.model.group_node.ElementNode` same description as for the group_node, but this type the class works with elements only
* Added `compas_model.model.model.Model` bring the code from the assembly
* Added `compas_model.model.element_tree.ElementTree` bring the code from the assembly

### Changed
* Changed `README` remove empty spaces
* Changed `LICENSE` made MIT license

### Removed
2 changes: 0 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ Packages
:titlesonly:

api/compas_model
api/compas_model.elements
api/compas_model.model
Loading

0 comments on commit d010426

Please sign in to comment.