Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/adaptive templates geometry classes #153

Merged
merged 25 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8ed1964
Initial commit
matthewAnsys Jun 20, 2023
1ff21fe
add api methods
jgsdavies Jun 20, 2023
d44c631
add api methods
jgsdavies Jun 20, 2023
39ed2d9
add example spec
jgsdavies Jun 20, 2023
8438032
change format of coordinates
jgsdavies Jun 20, 2023
59bd938
Added conversion to JSON format for geometry regions
matthewAnsys Jun 29, 2023
d20a871
Added save adaptive script functionality
matthewAnsys Jul 11, 2023
4d4be6c
Updated new functionality docstrings
matthewAnsys Aug 3, 2023
88494d5
Refactored json entity conversion procedure names
matthewAnsys Aug 3, 2023
b3bfd91
Merge remote-tracking branch 'remotes/origin/main' into feat/adaptive…
matthewAnsys Aug 3, 2023
41058e9
Added tests for new functionality
matthewAnsys Aug 4, 2023
dcce713
Merge remote-tracking branch 'origin/main' into feat/adaptive_templat…
jgsdavies Aug 4, 2023
8beb015
ignore version flag
jgsdavies Aug 4, 2023
7bcbb4d
Update tests and docs
jgsdavies Aug 7, 2023
fba2be1
formatting
jgsdavies Aug 7, 2023
fcf47f6
Added check_collisons API call
matthewAnsys Aug 8, 2023
3496bc5
Merge remote-tracking branch 'origin/feat/adaptive_templates_geometry…
matthewAnsys Aug 8, 2023
50c85f6
Updated check_collision API
matthewAnsys Aug 8, 2023
9be7c2f
Review changes
matthewAnsys Aug 15, 2023
61a34ea
Updated tests
matthewAnsys Aug 15, 2023
009bbd9
Minor fix to test
jgsdavies Aug 16, 2023
b178f6d
Added Coordinate class
matthewAnsys Aug 16, 2023
6293b7e
Merge remote-tracking branch 'origin/feat/adaptive_templates_geometry…
matthewAnsys Aug 16, 2023
c1c669b
tidy up doc strings
jgsdavies Aug 16, 2023
330e816
error message changed - make assert less strict
jgsdavies Aug 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
- id: pydocstyle
additional_dependencies: [toml]
exclude: tests/|examples/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
1 change: 1 addition & 0 deletions doc/source/methods/MotorCAD_object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ MotorCAD API
_autogen_FEA Geometry
_autogen_General
_autogen_Geometry
_autogen_Adaptive Geometry
_autogen_Graphs
_autogen_Internal Scripting
_autogen_Lab
Expand Down
2 changes: 2 additions & 0 deletions doc/source/methods/autofill_function_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def generate_method_docs():
"FEA Geometry",
"General",
"Geometry",
"Adaptive Geometry",
"Graphs",
"Internal Scripting",
"Lab",
Expand All @@ -29,6 +30,7 @@ def generate_method_docs():
"rpc_methods_fea_geometry.py",
"rpc_methods_general.py",
"rpc_methods_geometry.py",
"adaptive_geometry.py",
"rpc_methods_graphs.py",
"rpc_methods_internal_scripting.py",
"rpc_methods_lab.py",
Expand Down
22 changes: 22 additions & 0 deletions doc/source/methods/geometry_functions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. currentmodule:: ansys.motorcad.core.geometry
Adaptive Geometry
=================
Add some info here about adaptive geometry
jgsdavies marked this conversation as resolved.
Show resolved Hide resolved


Geometry Objects
----------------
.. autosummary::
:toctree: _autosummary_geometry_methods

Region
Line
Arc

Geometry Functions
------------------
.. autosummary::
:toctree: _autosummary_geometry_functions

xy_to_rt
rt_to_xy
5 changes: 3 additions & 2 deletions doc/source/methods/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ API reference
=============

Motor-CAD API
------------
-------------

The ``MotorCAD`` object is used by default for PyMotorCAD scripting.
For descriptions of this object's single class and its many methods,
see :ref:`ref_MotorCAD_object`.

Motor-CAD compatibility API
--------------------------
---------------------------

The ``MotorCADCompatibility`` object is used for running old ActiveX
scripts. For information on backwards compatibility, see
Expand All @@ -29,3 +29,4 @@ object, its single class, and its many methods, see

MotorCAD_object
MotorCADCompatibility_object
geometry_functions
Loading