Skip to content

Commit 6efe276

Browse files
authored
Merge pull request #844 from compas-dev/schemas
Load jsonschema from file
2 parents 5c7a02e + c2ee80a commit 6efe276

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2819
-1251
lines changed

CHANGELOG.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
98
## Unreleased
109

1110
### Added
11+
1212
* Added pluggable function `trimesh_slice` in `compas_rhino`.
13+
* Added equality comparison for pointclouds.
14+
* Added `compas.data.is_sequence_of_uint`.
1315

1416
### Changed
17+
1518
* `compas.robots.Axis` is now normalized upon initialization.
1619
* Fixed a bug in `compas.numerical.dr_numpy` when using numpy array as inputs.
1720
* Allowed for varying repository file structures in `compas.robots.GithubPackageMeshLoader`.
21+
* Fixed data schema of `compas.geometry.Polyline`, `compas.geometry.Polygon`, `compas.geometry.Pointcloud`.
1822

1923
### Fixed
24+
2025
* Fixed `Configuration.from_data` to be backward-compatible with JSON data generated before `compas 1.3.0`.
2126

2227
### Removed
2328

24-
2529
## [1.7.1] 2021-06-14
2630

2731
### Added
@@ -68,12 +72,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6872
* Added pluggable function `trimesh_mean_curvature` in `compas_rhino`.
6973
* Added pluggable function `trimesh_principal_curvature` in `compas_rhino`.
7074
* Added `copy` and `deepcopy` functionality to `compas.robots.Configuration`.
75+
* Added `compas.data.is_sequence_of_int` and `compas.data.is_sequence_of_float`.
76+
* Added `compas.data.Data.JSONSCHEMANAME`.
77+
* Added `kwargs` to all child classes of `compas.data.Data`.
7178
* Added grasshopper component for drawing a frame.
7279
* Added `draw_origin` and `draw_axes`.
7380

7481
### Changed
7582

7683
* Allow str or int as joint type in `compas.robots.Joint` constructor.
84+
* Moved json schemas to `compas.data`.
85+
* Nested json schemas.
7786
* `compas_ghpython.artists.FrameArtist.draw` now draws a Rhino Plane.
7887
* Fixed bugs in `compas.geometry.bestfit_circle_numpy`.
7988
* Changed directory where ghuser components are installed.
@@ -84,15 +93,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8493

8594
### Removed
8695

87-
8896
## [1.6.3] 2021-05-26
8997

9098
### Added
9199

92100
* Added `compas.topology.astar_lightest_path`.
93-
* Added jsonschema definitions for primitives and transformations.
101+
* Added JSONSCHEMA definitions for primitives and transformations.
94102
* Added schema implementation to primitives and transformations.
95-
* Added jsonschema implementation to primitives and transformations.
103+
* Added JSONSCHEMA implementation to primitives and transformations.
96104
* Added `compas.data.is_int3`, `compas.data.is_float3`, `compas_data.is_float4x4`.
97105

98106
### Changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
graft src
2-
graft schemas
32

43
prune .github
54
prune data

data.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"dtype": "compas.geometry/Point", "value": [0.0, 0.0, 0.0]}, {"dtype": "compas.geometry/Vector", "value": [0.0, 0.0, 0.0]}]

0 commit comments

Comments
 (0)