diff --git a/pyproject.toml b/pyproject.toml index 90aaf79..82300c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,8 @@ readme = "README.md" dynamic = ["version"] dependencies = [ + 'oursin', + 'vbl-aquarium' ] [project.optional-dependencies] diff --git a/src/pinpoint_api/models/Default.json b/src/pinpoint_api/models/Default.json new file mode 100644 index 0000000..71d5fc1 --- /dev/null +++ b/src/pinpoint_api/models/Default.json @@ -0,0 +1 @@ +{"name":"Default","prefix":"","scaling":{"x":1.0,"y":1.0,"z":1.0},"rotation":{"x":0.0,"y":0.0,"z":0.0}} \ No newline at end of file diff --git a/src/pinpoint_api/models/Dorr2008.json b/src/pinpoint_api/models/Dorr2008.json new file mode 100644 index 0000000..a4e6665 --- /dev/null +++ b/src/pinpoint_api/models/Dorr2008.json @@ -0,0 +1 @@ +{"name":"Dorr2008","prefix":"d08","scaling":{"x":-1.087,"y":1.0,"z":-0.952},"rotation":{"x":0.0,"y":-7.5,"z":0.0}} \ No newline at end of file diff --git a/src/pinpoint_api/models/IBL-Dorr2008.json b/src/pinpoint_api/models/IBL-Dorr2008.json new file mode 100644 index 0000000..bb74e0c --- /dev/null +++ b/src/pinpoint_api/models/IBL-Dorr2008.json @@ -0,0 +1 @@ +{"name":"IBL-Dorr2008","prefix":"id08","scaling":{"x":-1.087,"y":1.0,"z":-0.952},"rotation":{"x":0.0,"y":0.0,"z":0.0}} \ No newline at end of file diff --git a/src/pinpoint_api/models/Qiu2018.json b/src/pinpoint_api/models/Qiu2018.json new file mode 100644 index 0000000..254fcb8 --- /dev/null +++ b/src/pinpoint_api/models/Qiu2018.json @@ -0,0 +1 @@ +{"name":"Qiu2018","prefix":"q18","scaling":{"x":-1.031,"y":0.952,"z":-0.885},"rotation":{"x":0.0,"y":-7.5,"z":0.0}} \ No newline at end of file diff --git a/src/pinpoint_api/models/transforms.py b/src/pinpoint_api/models/transforms.py new file mode 100644 index 0000000..525549c --- /dev/null +++ b/src/pinpoint_api/models/transforms.py @@ -0,0 +1,62 @@ +from vbl_aquarium.models.pinpoint import AffineTransformModel +from vbl_aquarium.models.unity import Vector3 + +qiu2018 = AffineTransformModel( + name = "Qiu2018", + prefix = "q18", + scaling = Vector3( + x = -1.031, + y = 0.952, + z = -0.885 + ), + rotation = Vector3( + x = 0, + y = -7.5, + z = 0 + ) +) + +dorr2018 = AffineTransformModel( + name = "Dorr2008", + prefix = "d08", + scaling = Vector3( + x = -1.087, + y = 1, + z = -0.952 + ), + rotation = Vector3( + x = 0, + y = -7.5, + z = 0 + ) +) + +dorr2018_ibl = AffineTransformModel( + name = "IBL-Dorr2008", + prefix = "id08", + scaling = Vector3( + x = -1.087, + y = 1, + z = -0.952 + ), + rotation = Vector3( + x = 0, + y = 0, + z = 0 + ) +) + +default = AffineTransformModel( + name = "Default", + prefix = "", + scaling = Vector3( + x = 1, + y = 1, + z = 1 + ), + rotation = Vector3( + x = 0, + y = 0, + z = 0 + ) +) \ No newline at end of file diff --git a/src/pinpoint_api/scripts/build_models.py b/src/pinpoint_api/scripts/build_models.py new file mode 100644 index 0000000..8ef4861 --- /dev/null +++ b/src/pinpoint_api/scripts/build_models.py @@ -0,0 +1,7 @@ +from pinpoint_api.models.transforms import qiu2018, dorr2018, dorr2018_ibl, default + +transforms = [qiu2018, dorr2018, dorr2018_ibl, default] + +for transform in transforms: + with open(f'../models/{transform.name}.json', 'w') as file: + file.write(transform.model_dump_json()) \ No newline at end of file