Skip to content

Commit

Permalink
update to compas 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Jun 24, 2024
1 parent 394f44f commit cba20c9
Show file tree
Hide file tree
Showing 13 changed files with 314 additions and 447 deletions.
18 changes: 1 addition & 17 deletions src/compas_ags/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
"""
********************************************************************************
compas_ags
********************************************************************************
.. currentmodule:: compas_ags
.. toctree::
:maxdepth: 1
compas_ags.ags
compas_ags.diagrams
compas_ags.viewers
"""

import os

HERE = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -22,7 +6,7 @@
TEMP = os.path.join(HOME, "temp")


__author__ = "Tom Van Mele and others (see AUTHORS.md)"
__author__ = "Tom Van Mele and others"
__copyright__ = "Copyright 2014-2018 - Block Research Group, ETH Zurich"
__license__ = "MIT License"
__email__ = "[email protected]"
Expand Down
112 changes: 61 additions & 51 deletions src/compas_ags/ags/__init__.py
Original file line number Diff line number Diff line change
@@ -1,56 +1,66 @@
"""
********************************************************************************
compas_ags.ags
********************************************************************************
.. currentmodule:: compas_ags.ags
Core
====
.. autosummary::
:toctree: generated/
update_q_from_qind
update_primal_from_dual
Graph Statics
=============
.. autosummary::
:toctree: generated/
form_count_dof
form_identify_dof
form_update_q_from_qind
form_update_from_force
force_update_from_form
Load Path
=========
.. autosummary::
:toctree: generated/
compute_loadpath
compute_external_work
compute_internal_work
compute_internal_work_tension
compute_internal_work_compression
optimise_loadpath
"""
from __future__ import absolute_import

import compas

if not compas.IPY:
from .core import * # noqa: F401 F403
from .graphstatics import * # noqa: F401 F403
from .loadpath import * # noqa: F401 F403
from .constraints import * # noqa: F401 F403

__all__ = [name for name in dir() if not name.startswith("_")]
from .core import (
update_q_from_qind,
update_primal_from_dual,
get_jacobian_and_residual,
compute_jacobian,
parallelise_edges,
)
from .graphstatics import (
form_identify_dof,
form_count_dof,
form_update_q_from_qind,
form_update_from_force,
form_update_from_force_newton,
force_update_from_form,
force_update_from_constraints,
update_diagrams_from_constraints,
)
from .loadpath import (
compute_loadpath,
compute_external_work,
compute_internal_work,
compute_internal_work_tension,
compute_internal_work_compression,
optimise_loadpath,
)
from .constraints import (
ConstraintsCollection,
HorizontalFix,
VerticalFix,
AngleFix,
LengthFix,
SetLength,
)

__all__ = [
"update_q_from_qind",
"update_primal_from_dual",
"get_jacobian_and_residual",
"compute_jacobian",
"parallelise_edges",
"form_identify_dof",
"form_count_dof",
"form_update_q_from_qind",
"form_update_from_force",
"form_update_from_force_newton",
"force_update_from_form",
"force_update_from_constraints",
"update_diagrams_from_constraints",
"compute_loadpath",
"compute_external_work",
"compute_internal_work",
"compute_internal_work_tension",
"compute_internal_work_compression",
"optimise_loadpath",
"ConstraintsCollection",
"HorizontalFix",
"VerticalFix",
"AngleFix",
"LengthFix",
"SetLength",
]
Loading

0 comments on commit cba20c9

Please sign in to comment.