compas-dev / compas-dev/compas

compas2 and compas1 serialization

Open
#1,211 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
386
Forks
122
Avg merge
11d 46m
Merged PRs (30d)
1

Description

**Describe the bug**
How **compas1 .json** files can be de-serialized in **compas2 alpha**?

For now I do like this:
* I install compas 1 stable version
* load geometry in Rhino through artists
* change the environment where v2 is installed
* then install compas2 alpha and serialize it again
* then load to compas vs code

A bit tedious process. I am wondering if it is possible to have a serialization process where you can specify the version number of compas.

**To Reproduce**
E.g. repository .json files:
https://github.com/BlockResearchGroup/compas_assembly/tree/main/src/compas_assembly/data/samples

```python
from compas.data import json_load

if __name__ == "__main__":
meshes = json_load('src/compas_assembly2/data_sets/crossvault.json')
```

**Expected behavior**
Working

**Screenshots**
image

**Desktop (please complete the following information):**
- OS: Win
- Python version 3.11.6
- Python package manager conda

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.