Davout 0.1.1.dev101__tar.gz → 0.1.1.dev103__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {davout-0.1.1.dev101/source/Davout.egg-info → davout-0.1.1.dev103}/PKG-INFO +1 -1
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/pyproject.toml +1 -1
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/collage_tools.py +6 -3
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/collage_classes.py +172 -13
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/curves_setter.py +135 -96
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/interactivity_tools.py +4 -2
- {davout-0.1.1.dev101 → davout-0.1.1.dev103/source/Davout.egg-info}/PKG-INFO +1 -1
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/LICENSE +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/README.md +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/setup.cfg +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/setup.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/non_transfinite/RVE_artery.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/non_transfinite/RVE_matrix_with_fiber.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/non_transfinite/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/non_transfinite/elastin_fiber_creator.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/transfinite/RVE_artery_transfinite.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/transfinite/RVE_matrix_with_fiber_transfinite.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/transfinite/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/transfinite/elastin_fiber_creator.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/artery/artery_macroscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/artery/artery_macroscale_ellipsoid.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/micropolar_meshes/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/micropolar_meshes/beam_micropolar_case_1.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/periodic_meshes/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/periodic_meshes/artery_parameters.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/periodic_meshes/fiber_matrix_parameters.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/periodic_meshes/periodic_structure.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/solids/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/solids/intervertebral_disc.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/solids/whole_ensemble_of_geometries.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/solids/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/solids/cuboid_cylinders.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/solids/cuboid_ellipsoids.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/solids/cuboid_generator.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/solids/cuboid_helicoids.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/solids/cuboid_prisms.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/tool_box/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/tool_box/geometric_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/tool_box/mesh_data_retriever.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/tool_box/meshing_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/tool_box/region_finder.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/tool_box/verification_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/PINNs/Physics/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/PINNs/Physics/elasticity_equation.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/PINNs/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/aa_tests/heat_equation.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/aa_tests/tests_tool_box/test_ANN_optimization.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/aa_tests/tests_tool_box/test_ANN_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/aa_tests/tests_tool_box/test_convex_and_partially_convex_input_NNs.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/aa_tests/tests_tool_box/test_math_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/aa_tests/tests_tool_box/test_tensor_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/custom_architectures/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/custom_architectures/convexity_concerned_NNs.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/custom_architectures/generic_feed_forward.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/ANN_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/activation_function_utilities.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/custom_activation_functions.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/differentiation_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/loss_assembler_classes.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/loss_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/math_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/numerical_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/parameters_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/tensor_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/DeepMech/tool_box/training_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/REPL_experiments.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/optimization/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/optimization/tests_optimization_methods.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/tests_batching.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/tests_finite_elements.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/tests_loss_function.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/tests_physics.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/unidimensional/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/unidimensional/bar_fea.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/unidimensional/hyperelastic_1D_energies.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/aa_tests/unidimensional/variational_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/assembly/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/assembly/body_forces_work.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/assembly/dirichlet_boundary_conditions_enforcer.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/assembly/hyperelastic_internal_work.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/assembly/surface_forces_work.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/constitutive_models/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/constitutive_models/hyperelastic_isotropic_models.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/elements_manager.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/finite_element_dispatcher.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/surface_elements/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/surface_elements/triangles.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/volume_elements/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/finite_elements/volume_elements/tetrahedrons.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/optimization/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/optimization/conditioning_matrices.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/optimization/loss_functions.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/optimization/neural_network_assembler.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/optimization/objective_function.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/physics/compressible_cauchy_hyperelasticy.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/constitutive_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/dirichlet_loading_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/math_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/mesh_info_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/mesh_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/neumann_loading_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/node_ordering.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/optimization_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/parametric_curves_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/sensitivity_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/FENN/tool_box/tensorflow_utilities.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/aa_tests/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/aa_tests/tests_collage_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/aa_tests/tests_paraview_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/aa_tests/tests_plotting_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/paraview_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/plotting_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/arrows_lines_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/box_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/image_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/paraview_scripts.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/perspective_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/text_excerpt_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/LaTeXUtilities/LaTeXUtilities.sty +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/LaTeXUtilities/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/heat_transfer/heat_box.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/beam_with_fibers.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/box_with_young_modulus_field.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/disc_HGO.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/disc_neo_hookean.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/disc_neo_hookean_incompressible.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/hyperelastic_box.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/incompressible_hyperelastic_box.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/intervertebral_disc/cylindrical_coordinates_material_property.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/intervertebral_disc/disc_HGO.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/intervertebral_disc/local_coordinate_system_generation.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/parallel_hyperelastic_box.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/parallel_incompressible_box.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/read_dofs_in_volume.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/hyperelasticity/young_modulus_field.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/bending_case/beam_with_fibers_macroscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/bending_case/beam_with_fibers_microscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/deformation_laboratory/microscale_deformation_lab.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/disc_micropolar_neo_hookean.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/Bauer_et_al/beam.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/Bauer_et_al/beam_neo_hookean.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/Bauer_et_al/beam_neo_hookean_pure_dolfin.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/Bauer_et_al/beam_neo_hookean_pure_dolfin_old.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/Suh_et_al/suh_implementation.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/micropolar_with_homogenization.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/micropolar_with_homogenization_original.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/tools_homogenization.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/old_tests/tools_io.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/stress_plots.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/tangent_operators/numerical_differentiation.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/tangent_operators/numerical_differentiation_second_elasticity_tensor.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/tangent_operators/tangent_operator_plotter.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/torsion_case/beam_with_fibers_macroscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/torsion_case/beam_with_fibers_microscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/traction_case/beam_with_fibers_macroscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/micropolar/traction_case/beam_with_fibers_microscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/curve_fitting.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/cylindrical_coordinates_field.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/cylindrical_coordinates_material_property.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/elasticity_tensor.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/incompressible.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/linear_expression_test.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/petsc_2D.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/test_periodic.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/test_periodic_class.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/test_shifted_field.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/teste_afim.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/minimal_working_examples_forum/working_example_dictionaries.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/multiscale/hyperelasticity/beam_with_fibers_microscale.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/physics_prototypes/compressible_hyperelasticity.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/physics_prototypes/incompressible_hyperelasticity.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/test_meshes/beam_gmsh.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/test_meshes_paths.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/aa_tests_and_examples/various_physics_tests.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/constitutive_models/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/constitutive_models/heat_transfer/isotropic_heat_conduction.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/constitutive_models/hyperelasticity/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/constitutive_models/hyperelasticity/anisotropic_hyperelasticity.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/constitutive_models/hyperelasticity/isotropic_hyperelasticity.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/constitutive_models/hyperelasticity/micropolar_hyperelasticity.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/multiscale/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/multiscale/multiscale_boundary_conditions/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/multiscale/multiscale_boundary_conditions/multiscale_classes.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/multiscale/multiscale_boundary_conditions/multiscale_expressions.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/multiscale/multiscale_hyperelasticity.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/multiscale/multiscale_micropolar.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/physics/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/physics/hyperelastic_cauchy_continuum.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/physics/hyperelastic_incompressible_cauchy_continuum.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/physics/hyperelastic_micropolar_continuum.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/physics/steady_state_heat_transfer.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/post_processes/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/post_processes/post_processes_classes.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/post_processes/post_processes_functions.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/body_forces_loading_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/boundary_conditions_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/constitutive_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/dirichlet_load_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/expressions_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/functional_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/homogenization_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/mesh_handling_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/multiscale_boundary_conditions_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/numerical_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/parallelization_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/post_processing_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/pseudotime_stepping_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/read_write_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/surface_loading_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/tensor_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/MultiMech/tool_box/variational_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/aa_tests/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/aa_tests/tests_template.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/coordinate_systems_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/dictionary_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/file_handling_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/fonts/CMU_Serif_Roman.ttf +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/function_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/interpolation_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/math_experiments.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/numpy_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/package_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/path_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/programming_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/recursion_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/stochastic_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/string_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/tensor_and_math_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/PythonicUtilities/testing_tools.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/__init__.py +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout.egg-info/SOURCES.txt +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout.egg-info/dependency_links.txt +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout.egg-info/requires.txt +0 -0
- {davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout.egg-info/top_level.txt +0 -0
|
@@ -561,7 +561,8 @@ compress_level=None):
|
|
|
561
561
|
general_axes, collage, 0.0, layout_width_milimeters, 0.0,
|
|
562
562
|
layout_height_milimeters, x_min, x_max, y_min, y_max,
|
|
563
563
|
input_path, depth_order, arrows_and_lines_file,
|
|
564
|
-
interactive_window_info,
|
|
564
|
+
interactive_window_info, line_style_class,
|
|
565
|
+
arrow_style_class, colors_class, verbose=verbose)
|
|
565
566
|
|
|
566
567
|
# Updates the counter of redrawing occurrences
|
|
567
568
|
|
|
@@ -679,7 +680,8 @@ compress_level=None):
|
|
|
679
680
|
general_axes, collage, 0.0, layout_width_milimeters,
|
|
680
681
|
0.0, layout_height_milimeters, x_min, x_max, y_min,
|
|
681
682
|
y_max, input_path, depth_order, arrows_and_lines_file,
|
|
682
|
-
interactive_window_info,
|
|
683
|
+
interactive_window_info, line_style_class,
|
|
684
|
+
arrow_style_class, colors_class, verbose=verbose)
|
|
683
685
|
|
|
684
686
|
# Updates the counter of redrawing occurrences
|
|
685
687
|
|
|
@@ -791,7 +793,8 @@ compress_level=None):
|
|
|
791
793
|
collage, 0.0, layout_width_milimeters, 0.0,
|
|
792
794
|
layout_height_milimeters, x_min, x_max, y_min, y_max,
|
|
793
795
|
input_path, depth_order, arrows_and_lines_file,
|
|
794
|
-
interactive_window_info,
|
|
796
|
+
interactive_window_info, line_style_class,
|
|
797
|
+
arrow_style_class, colors_class, verbose=verbose)
|
|
795
798
|
|
|
796
799
|
# Updates the counter of redrawing occurrences
|
|
797
800
|
|
{davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/collage_classes.py
RENAMED
|
@@ -57,7 +57,7 @@ class ColorMiscellany:
|
|
|
57
57
|
|
|
58
58
|
# Defines a function to get the color
|
|
59
59
|
|
|
60
|
-
def __call__(self, key):
|
|
60
|
+
def __call__(self, key, throw_error=True):
|
|
61
61
|
|
|
62
62
|
# Verifies if it is one of the keys
|
|
63
63
|
|
|
@@ -88,10 +88,67 @@ class ColorMiscellany:
|
|
|
88
88
|
|
|
89
89
|
available_colors += "\n'"+str(color)+"'"
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
error_message = ("'"+str(key)+"' is not a key of the dicti"+
|
|
92
92
|
"onary of colors nor is a list with RGB values (3 componen"+
|
|
93
93
|
"ts). Check the valid color names:"+available_colors)
|
|
94
94
|
|
|
95
|
+
# If an error is to be thrown
|
|
96
|
+
|
|
97
|
+
if throw_error:
|
|
98
|
+
|
|
99
|
+
raise ValueError(error_message)
|
|
100
|
+
|
|
101
|
+
# Otherwise, just returns False
|
|
102
|
+
|
|
103
|
+
return False
|
|
104
|
+
|
|
105
|
+
# Defines a function to verify if the color is there
|
|
106
|
+
|
|
107
|
+
def verify_color_name(self, key, throw_error=False):
|
|
108
|
+
|
|
109
|
+
# Verifies if it is one of the keys
|
|
110
|
+
|
|
111
|
+
if key in self.color_dictionary:
|
|
112
|
+
|
|
113
|
+
return key
|
|
114
|
+
|
|
115
|
+
# Otherwise, verifies if it is a list
|
|
116
|
+
|
|
117
|
+
elif isinstance(key, list):
|
|
118
|
+
|
|
119
|
+
# Verifies if it has 3 elements
|
|
120
|
+
|
|
121
|
+
if len(key)!=3:
|
|
122
|
+
|
|
123
|
+
raise IndexError("'"+str(key)+"' does not have 3 eleme"+
|
|
124
|
+
"nts. It must have 3 for they are the RGB values")
|
|
125
|
+
|
|
126
|
+
return key
|
|
127
|
+
|
|
128
|
+
# Otherwise, throws an error
|
|
129
|
+
|
|
130
|
+
else:
|
|
131
|
+
|
|
132
|
+
available_colors = ""
|
|
133
|
+
|
|
134
|
+
for color in self.color_dictionary:
|
|
135
|
+
|
|
136
|
+
available_colors += "\n'"+str(color)+"'"
|
|
137
|
+
|
|
138
|
+
error_message = ("'"+str(key)+"' is not a key of the dicti"+
|
|
139
|
+
"onary of colors nor is a list with RGB values (3 componen"+
|
|
140
|
+
"ts). Check the valid color names:"+available_colors)
|
|
141
|
+
|
|
142
|
+
# If an error is to be thrown
|
|
143
|
+
|
|
144
|
+
if throw_error:
|
|
145
|
+
|
|
146
|
+
raise ValueError(error_message)
|
|
147
|
+
|
|
148
|
+
# Otherwise, just returns False
|
|
149
|
+
|
|
150
|
+
return False
|
|
151
|
+
|
|
95
152
|
# Defines a class with ready-to-use layout sizes
|
|
96
153
|
|
|
97
154
|
class TemplateSizes:
|
|
@@ -107,7 +164,7 @@ class TemplateSizes:
|
|
|
107
164
|
|
|
108
165
|
# Defines a function to get the color
|
|
109
166
|
|
|
110
|
-
def __call__(self, key):
|
|
167
|
+
def __call__(self, key, throw_error=True):
|
|
111
168
|
|
|
112
169
|
# Verifies if it is one of the keys
|
|
113
170
|
|
|
@@ -139,10 +196,20 @@ class TemplateSizes:
|
|
|
139
196
|
|
|
140
197
|
available_sizes += "\n'"+str(size)+"'"
|
|
141
198
|
|
|
142
|
-
|
|
199
|
+
error_message = ("'"+str(key)+"' is not a key of the dicti"+
|
|
143
200
|
"onary of sizes nor is a list with layout sizes (2 compone"+
|
|
144
201
|
"nts---width and height). Check the valid size names:"+
|
|
145
202
|
available_sizes)
|
|
203
|
+
|
|
204
|
+
# If an error is to be thrown
|
|
205
|
+
|
|
206
|
+
if error_message:
|
|
207
|
+
|
|
208
|
+
raise NameError(error_message)
|
|
209
|
+
|
|
210
|
+
# Otherwise, just returns False
|
|
211
|
+
|
|
212
|
+
return False
|
|
146
213
|
|
|
147
214
|
# Defines a class to store alignment options
|
|
148
215
|
|
|
@@ -166,7 +233,7 @@ class AlignmentOptions:
|
|
|
166
233
|
"p")}
|
|
167
234
|
|
|
168
235
|
def __call__(self, alignment, position, width, height,
|
|
169
|
-
text_alignment=False):
|
|
236
|
+
text_alignment=False, throw_error=True):
|
|
170
237
|
|
|
171
238
|
# If text alignment is to be given
|
|
172
239
|
|
|
@@ -201,9 +268,19 @@ class AlignmentOptions:
|
|
|
201
268
|
|
|
202
269
|
alignments_options += "\n'"+str(name)+"'"
|
|
203
270
|
|
|
204
|
-
|
|
205
|
-
"
|
|
271
|
+
error_message = ("There is no '"+str(alignment)+"' option "+
|
|
272
|
+
"for alignment. Check the available options:"+
|
|
206
273
|
alignments_options)
|
|
274
|
+
|
|
275
|
+
# If error is to be thrown
|
|
276
|
+
|
|
277
|
+
if throw_error:
|
|
278
|
+
|
|
279
|
+
raise NameError(error_message)
|
|
280
|
+
|
|
281
|
+
# Otherwise, returns False
|
|
282
|
+
|
|
283
|
+
return False
|
|
207
284
|
|
|
208
285
|
# Gets the coefficients
|
|
209
286
|
|
|
@@ -232,7 +309,8 @@ class LineStyles:
|
|
|
232
309
|
|
|
233
310
|
return max(int(round(number)), 1)
|
|
234
311
|
|
|
235
|
-
def __call__(self, line_style, base_thickness, style_key_name
|
|
312
|
+
def __call__(self, line_style, base_thickness, style_key_name,
|
|
313
|
+
throw_error=True):
|
|
236
314
|
|
|
237
315
|
# Verifies if the asked line style is available
|
|
238
316
|
|
|
@@ -268,9 +346,51 @@ class LineStyles:
|
|
|
268
346
|
|
|
269
347
|
available_contour_styles += "\n'"+str(contour)+"'"
|
|
270
348
|
|
|
271
|
-
|
|
272
|
-
"
|
|
273
|
-
"are:"+available_contour_styles)
|
|
349
|
+
error_message = ("'"+str(line_style)+"' is not a valid '"+
|
|
350
|
+
str(style_key_name)+"'. The only '"+str(style_key_name)+"'"+
|
|
351
|
+
" available are:"+available_contour_styles)
|
|
352
|
+
|
|
353
|
+
# If error is to be thrown
|
|
354
|
+
|
|
355
|
+
if throw_error:
|
|
356
|
+
|
|
357
|
+
raise NameError(error_message)
|
|
358
|
+
|
|
359
|
+
# Otherwise, returns false
|
|
360
|
+
|
|
361
|
+
return False
|
|
362
|
+
|
|
363
|
+
def verify_line_name(self, line_style, throw_error=False):
|
|
364
|
+
|
|
365
|
+
# Verifies if the asked line style is available
|
|
366
|
+
|
|
367
|
+
if line_style in self.available_line_styles:
|
|
368
|
+
|
|
369
|
+
# Returns the plain key
|
|
370
|
+
|
|
371
|
+
return line_style
|
|
372
|
+
|
|
373
|
+
else:
|
|
374
|
+
|
|
375
|
+
available_contour_styles = ""
|
|
376
|
+
|
|
377
|
+
for contour in self.available_line_styles:
|
|
378
|
+
|
|
379
|
+
available_contour_styles += "\n'"+str(contour)+"'"
|
|
380
|
+
|
|
381
|
+
error_message = ("'"+str(line_style)+"' is not a valid 'li"+
|
|
382
|
+
"ne style'. The only 'line style' availables are:"+
|
|
383
|
+
available_contour_styles)
|
|
384
|
+
|
|
385
|
+
# If error is to be thrown
|
|
386
|
+
|
|
387
|
+
if throw_error:
|
|
388
|
+
|
|
389
|
+
raise NameError(error_message)
|
|
390
|
+
|
|
391
|
+
# Otherwise, returns false
|
|
392
|
+
|
|
393
|
+
return False
|
|
274
394
|
|
|
275
395
|
# Defines a class to store arrow head styles
|
|
276
396
|
|
|
@@ -286,7 +406,7 @@ class ArrowHeadStyles:
|
|
|
286
406
|
"gular arrow": ArrowHeadStyles.InkscapeAngularArrow, "inkscape"+
|
|
287
407
|
" round back arrow": ArrowHeadStyles.InkscapeCurvedBackArrow}
|
|
288
408
|
|
|
289
|
-
def __call__(self, arrow_head_style):
|
|
409
|
+
def __call__(self, arrow_head_style, throw_error=True):
|
|
290
410
|
|
|
291
411
|
# Verifies if the asked arrow_head style is available
|
|
292
412
|
|
|
@@ -316,8 +436,47 @@ class ArrowHeadStyles:
|
|
|
316
436
|
|
|
317
437
|
available_arrow_styles += "\n'"+str(arrow)+"'"
|
|
318
438
|
|
|
319
|
-
|
|
439
|
+
error_message = ("The only 'arrow style' available are:"+
|
|
320
440
|
available_arrow_styles)
|
|
441
|
+
|
|
442
|
+
# If error is to be thrown
|
|
443
|
+
|
|
444
|
+
if throw_error:
|
|
445
|
+
|
|
446
|
+
raise NameError(error_message)
|
|
447
|
+
|
|
448
|
+
# Otherwise, returns False
|
|
449
|
+
|
|
450
|
+
return False
|
|
451
|
+
|
|
452
|
+
def verify_arrow_name(self, arrow_head_style, throw_error=False):
|
|
453
|
+
|
|
454
|
+
# Verifies if the asked arrow_head style is available
|
|
455
|
+
|
|
456
|
+
if arrow_head_style in self.arrow_head_styles:
|
|
457
|
+
|
|
458
|
+
return arrow_head_style
|
|
459
|
+
|
|
460
|
+
else:
|
|
461
|
+
|
|
462
|
+
available_arrow_styles = ""
|
|
463
|
+
|
|
464
|
+
for arrow in self.arrow_head_styles:
|
|
465
|
+
|
|
466
|
+
available_arrow_styles += "\n'"+str(arrow)+"'"
|
|
467
|
+
|
|
468
|
+
error_message = ("The only 'arrow style' available are:"+
|
|
469
|
+
available_arrow_styles)
|
|
470
|
+
|
|
471
|
+
# If error is to be thrown
|
|
472
|
+
|
|
473
|
+
if throw_error:
|
|
474
|
+
|
|
475
|
+
raise NameError(error_message)
|
|
476
|
+
|
|
477
|
+
# Otherwise, returns False
|
|
478
|
+
|
|
479
|
+
return False
|
|
321
480
|
|
|
322
481
|
####################################################################
|
|
323
482
|
# Custom arrows #
|
{davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/GraphUtilities/tool_box/curves_setter.py
RENAMED
|
@@ -11,7 +11,8 @@ from ..tool_box import collage_classes
|
|
|
11
11
|
|
|
12
12
|
def set_curve(key, arrows_and_lines_list, arrows_and_lines_file,
|
|
13
13
|
input_path, depth_order, collage, points_list, general_axes, tolerance,
|
|
14
|
-
vanishing_points
|
|
14
|
+
vanishing_points, line_styles_class, arrow_head_styles_class,
|
|
15
|
+
colors_class):
|
|
15
16
|
|
|
16
17
|
# Initializes the dictionary with the curve information
|
|
17
18
|
|
|
@@ -94,22 +95,20 @@ vanishing_points):
|
|
|
94
95
|
|
|
95
96
|
if key=="q":
|
|
96
97
|
|
|
97
|
-
#
|
|
98
|
+
# Gets the necessary information
|
|
98
99
|
|
|
99
|
-
thickness =
|
|
100
|
+
thickness = input_repeater("\nType the thickness and press ent"+
|
|
101
|
+
"er: ", reviewer_function=None, default_value=0.2,
|
|
102
|
+
necessary_type=float)
|
|
100
103
|
|
|
101
|
-
line_style =
|
|
104
|
+
line_style = input_repeater("\nType the line style and press e"+
|
|
105
|
+
"nter: ", reviewer_function=line_styles_class.verify_line_name,
|
|
106
|
+
default_value="solid", necessary_type=str)
|
|
102
107
|
|
|
103
|
-
color =
|
|
104
|
-
"enter: "
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
thickness = convert_string(thickness, 0.2)
|
|
109
|
-
|
|
110
|
-
line_style = convert_string(line_style, "solid")
|
|
111
|
-
|
|
112
|
-
color = convert_string(color, "black")
|
|
108
|
+
color = input_repeater("\nType the color of the contour line a"+
|
|
109
|
+
"nd press enter: ", reviewer_function=
|
|
110
|
+
colors_class.verify_color_name, default_value="black",
|
|
111
|
+
necessary_type=str)
|
|
113
112
|
|
|
114
113
|
# Creates the dictionary to create this spline
|
|
115
114
|
|
|
@@ -123,27 +122,24 @@ vanishing_points):
|
|
|
123
122
|
|
|
124
123
|
elif key=="w":
|
|
125
124
|
|
|
126
|
-
#
|
|
127
|
-
|
|
128
|
-
thickness = input("\nType the thickness and press enter: ")
|
|
129
|
-
|
|
130
|
-
line_style = input("\nType the line style and press enter: ")
|
|
131
|
-
|
|
132
|
-
color = input("\nType the color of the contour line and press "+
|
|
133
|
-
"enter: ")
|
|
125
|
+
# Gets the necessary information
|
|
134
126
|
|
|
135
|
-
|
|
136
|
-
"
|
|
127
|
+
thickness = input_repeater("\nType the thickness and press ent"+
|
|
128
|
+
"er: ", reviewer_function=None, default_value=0.2,
|
|
129
|
+
necessary_type=float)
|
|
137
130
|
|
|
138
|
-
|
|
131
|
+
line_style = input_repeater("\nType the line style and press e"+
|
|
132
|
+
"nter: ", reviewer_function=line_styles_class.verify_line_name,
|
|
133
|
+
default_value="solid", necessary_type=str)
|
|
139
134
|
|
|
140
|
-
|
|
135
|
+
color = input_repeater("\nType the color of the contour line a"+
|
|
136
|
+
"nd press enter: ", reviewer_function=
|
|
137
|
+
colors_class.verify_color_name, default_value="black",
|
|
138
|
+
necessary_type=str)
|
|
141
139
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
fill_color = convert_string(fill_color, "transparent")
|
|
140
|
+
fill_color = input_repeater("\nType the color of filling and p"+
|
|
141
|
+
"ress enter: ", reviewer_function=colors_class.verify_color_name,
|
|
142
|
+
default_value="transparent", necessary_type=str)
|
|
147
143
|
|
|
148
144
|
# Creates the dictionary to create this spline
|
|
149
145
|
|
|
@@ -158,27 +154,25 @@ vanishing_points):
|
|
|
158
154
|
|
|
159
155
|
elif key=="e":
|
|
160
156
|
|
|
161
|
-
#
|
|
162
|
-
|
|
163
|
-
thickness = input("\nType the thickness and press enter: ")
|
|
164
|
-
|
|
165
|
-
line_style = input("\nType the line style and press enter: ")
|
|
166
|
-
|
|
167
|
-
color = input("\nType the color of the contour line and press "+
|
|
168
|
-
"enter: ")
|
|
169
|
-
|
|
170
|
-
arrow_style = input("\nType the style of the arrow head: ")
|
|
157
|
+
# Gets the necessary information
|
|
171
158
|
|
|
172
|
-
|
|
159
|
+
thickness = input_repeater("\nType the thickness and press ent"+
|
|
160
|
+
"er: ", reviewer_function=None, default_value=0.2,
|
|
161
|
+
necessary_type=float)
|
|
173
162
|
|
|
174
|
-
|
|
163
|
+
line_style = input_repeater("\nType the line style and press e"+
|
|
164
|
+
"nter: ", reviewer_function=line_styles_class.verify_line_name,
|
|
165
|
+
default_value="solid", necessary_type=str)
|
|
175
166
|
|
|
176
|
-
|
|
167
|
+
color = input_repeater("\nType the color of the contour line a"+
|
|
168
|
+
"nd press enter: ", reviewer_function=
|
|
169
|
+
colors_class.verify_color_name, default_value="black",
|
|
170
|
+
necessary_type=str)
|
|
177
171
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"arrow")
|
|
172
|
+
arrow_style = input_repeater("\nType the style of the arrow he"+
|
|
173
|
+
"ad: ", reviewer_function=
|
|
174
|
+
arrow_head_styles_class.verify_arrow_name, default_value="inks"+
|
|
175
|
+
"cape round back arrow", necessary_type=str)
|
|
182
176
|
|
|
183
177
|
# Creates the dictionary to create this spline
|
|
184
178
|
|
|
@@ -192,22 +186,20 @@ vanishing_points):
|
|
|
192
186
|
|
|
193
187
|
if key=="a":
|
|
194
188
|
|
|
195
|
-
#
|
|
196
|
-
|
|
197
|
-
thickness = input("\nType the thickness and press enter: ")
|
|
198
|
-
|
|
199
|
-
line_style = input("\nType the line style and press enter: ")
|
|
189
|
+
# Gets the necessary information
|
|
200
190
|
|
|
201
|
-
|
|
202
|
-
"
|
|
191
|
+
thickness = input_repeater("\nType the thickness and press ent"+
|
|
192
|
+
"er: ", reviewer_function=None, default_value=0.2,
|
|
193
|
+
necessary_type=float)
|
|
203
194
|
|
|
204
|
-
|
|
195
|
+
line_style = input_repeater("\nType the line style and press e"+
|
|
196
|
+
"nter: ", reviewer_function=line_styles_class.verify_line_name,
|
|
197
|
+
default_value="solid", necessary_type=str)
|
|
205
198
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
color = convert_string(color, "black")
|
|
199
|
+
color = input_repeater("\nType the color of the contour line a"+
|
|
200
|
+
"nd press enter: ", reviewer_function=
|
|
201
|
+
colors_class.verify_color_name, default_value="black",
|
|
202
|
+
necessary_type=str)
|
|
211
203
|
|
|
212
204
|
# Creates the dictionary to create this polygonal curve
|
|
213
205
|
|
|
@@ -221,27 +213,24 @@ vanishing_points):
|
|
|
221
213
|
|
|
222
214
|
elif key=="s":
|
|
223
215
|
|
|
224
|
-
#
|
|
225
|
-
|
|
226
|
-
thickness = input("\nType the thickness and press enter: ")
|
|
216
|
+
# Gets the necessary information
|
|
227
217
|
|
|
228
|
-
|
|
218
|
+
thickness = input_repeater("\nType the thickness and press ent"+
|
|
219
|
+
"er: ", reviewer_function=None, default_value=0.2,
|
|
220
|
+
necessary_type=float)
|
|
229
221
|
|
|
230
|
-
|
|
231
|
-
"
|
|
222
|
+
line_style = input_repeater("\nType the line style and press e"+
|
|
223
|
+
"nter: ", reviewer_function=line_styles_class.verify_line_name,
|
|
224
|
+
default_value="solid", necessary_type=str)
|
|
232
225
|
|
|
233
|
-
|
|
234
|
-
"
|
|
226
|
+
color = input_repeater("\nType the color of the contour line a"+
|
|
227
|
+
"nd press enter: ", reviewer_function=
|
|
228
|
+
colors_class.verify_color_name, default_value="black",
|
|
229
|
+
necessary_type=str)
|
|
235
230
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
line_style = convert_string(line_style, "solid")
|
|
241
|
-
|
|
242
|
-
color = convert_string(color, "black")
|
|
243
|
-
|
|
244
|
-
fill_color = convert_string(fill_color, "transparent")
|
|
231
|
+
fill_color = input_repeater("\nType the color of filling and p"+
|
|
232
|
+
"ress enter: ", reviewer_function=colors_class.verify_color_name,
|
|
233
|
+
default_value="transparent", necessary_type=str)
|
|
245
234
|
|
|
246
235
|
# Creates the dictionary to create this polygonal curve
|
|
247
236
|
|
|
@@ -256,27 +245,25 @@ vanishing_points):
|
|
|
256
245
|
|
|
257
246
|
elif key=="d":
|
|
258
247
|
|
|
259
|
-
#
|
|
260
|
-
|
|
261
|
-
thickness = input("\nType the thickness and press enter: ")
|
|
262
|
-
|
|
263
|
-
line_style = input("\nType the line style and press enter: ")
|
|
248
|
+
# Gets the necessary information
|
|
264
249
|
|
|
265
|
-
|
|
266
|
-
"
|
|
250
|
+
thickness = input_repeater("\nType the thickness and press ent"+
|
|
251
|
+
"er: ", reviewer_function=None, default_value=0.2,
|
|
252
|
+
necessary_type=float)
|
|
267
253
|
|
|
268
|
-
|
|
254
|
+
line_style = input_repeater("\nType the line style and press e"+
|
|
255
|
+
"nter: ", reviewer_function=line_styles_class.verify_line_name,
|
|
256
|
+
default_value="solid", necessary_type=str)
|
|
269
257
|
|
|
270
|
-
|
|
258
|
+
color = input_repeater("\nType the color of the contour line a"+
|
|
259
|
+
"nd press enter: ", reviewer_function=
|
|
260
|
+
colors_class.verify_color_name, default_value="black",
|
|
261
|
+
necessary_type=str)
|
|
271
262
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
color = convert_string(color, "black")
|
|
277
|
-
|
|
278
|
-
arrow_style = convert_string(arrow_style, "inkscape round back "+
|
|
279
|
-
"arrow")
|
|
263
|
+
arrow_style = input_repeater("\nType the style of the arrow he"+
|
|
264
|
+
"ad: ", reviewer_function=
|
|
265
|
+
arrow_head_styles_class.verify_arrow_name, default_value="inks"+
|
|
266
|
+
"cape round back arrow", necessary_type=str)
|
|
280
267
|
|
|
281
268
|
# Creates the dictionary to create this spline
|
|
282
269
|
|
|
@@ -306,6 +293,50 @@ vanishing_points):
|
|
|
306
293
|
# Utilities #
|
|
307
294
|
########################################################################
|
|
308
295
|
|
|
296
|
+
# Defines a function to repeat a call until the right answer is given
|
|
297
|
+
|
|
298
|
+
def input_repeater(input_text, reviewer_function=None, default_value=
|
|
299
|
+
None, necessary_type=None):
|
|
300
|
+
|
|
301
|
+
# Initializes a flag to keep repeating the question
|
|
302
|
+
|
|
303
|
+
flag_repeat = True
|
|
304
|
+
|
|
305
|
+
# Repeats the question until a right answer is given
|
|
306
|
+
|
|
307
|
+
while flag_repeat:
|
|
308
|
+
|
|
309
|
+
# Asks the user for the input
|
|
310
|
+
|
|
311
|
+
input_string = input(input_text)
|
|
312
|
+
|
|
313
|
+
# Converts the input string to another format if possible
|
|
314
|
+
|
|
315
|
+
input_string = convert_string(input_string, default_value,
|
|
316
|
+
necessary_type=necessary_type)
|
|
317
|
+
|
|
318
|
+
# Verifies if a right answer has been given
|
|
319
|
+
|
|
320
|
+
if reviewer_function is not None:
|
|
321
|
+
|
|
322
|
+
processed_answer = reviewer_function(input_string)
|
|
323
|
+
|
|
324
|
+
# If it is not false, returns it
|
|
325
|
+
|
|
326
|
+
if processed_answer:
|
|
327
|
+
|
|
328
|
+
flag_repeat = False
|
|
329
|
+
|
|
330
|
+
return processed_answer
|
|
331
|
+
|
|
332
|
+
# If the reviewer function is None, returns the answer anyways
|
|
333
|
+
|
|
334
|
+
else:
|
|
335
|
+
|
|
336
|
+
flag_repeat = False
|
|
337
|
+
|
|
338
|
+
return input_string
|
|
339
|
+
|
|
309
340
|
# Defines a function to substitute the X markers by square markers when
|
|
310
341
|
# points defined by the user are saved
|
|
311
342
|
|
|
@@ -337,7 +368,7 @@ def substitute_markers(points_list, general_axes, depth_order, collage):
|
|
|
337
368
|
|
|
338
369
|
# Defines a function to convert strings to useful formats
|
|
339
370
|
|
|
340
|
-
def convert_string(string, default_value):
|
|
371
|
+
def convert_string(string, default_value, necessary_type=None):
|
|
341
372
|
|
|
342
373
|
# If the string has no length, returns the default value
|
|
343
374
|
|
|
@@ -367,6 +398,14 @@ def convert_string(string, default_value):
|
|
|
367
398
|
|
|
368
399
|
string = string_toList(string)
|
|
369
400
|
|
|
401
|
+
# Verifies the type of the string if needed
|
|
402
|
+
|
|
403
|
+
if (necessary_type is not None) and (not isinstance(string,
|
|
404
|
+
necessary_type)):
|
|
405
|
+
|
|
406
|
+
raise TypeError("'"+str(string)+"' has type '"+str(type(string)
|
|
407
|
+
)+"', but the necessary type is "+str(necessary_type))
|
|
408
|
+
|
|
370
409
|
# If the string is still a string and the default value is not None,
|
|
371
410
|
# returns the default value
|
|
372
411
|
|
|
@@ -57,7 +57,8 @@ class InteractiveWindowInfo:
|
|
|
57
57
|
def create_interactive_window(general_axes, collage, old_x_min,
|
|
58
58
|
old_x_max, old_y_min, old_y_max, new_x_min, new_x_max, new_y_min,
|
|
59
59
|
new_y_max, input_path, depth_order, arrows_and_lines_file,
|
|
60
|
-
interactive_window_info,
|
|
60
|
+
interactive_window_info, line_styles_class, arrow_head_styles_class,
|
|
61
|
+
colors_class, verbose=False):
|
|
61
62
|
|
|
62
63
|
# Zoom axes to the bounding box
|
|
63
64
|
|
|
@@ -583,7 +584,8 @@ interactive_window_info, verbose=False):
|
|
|
583
584
|
event.key, arrows_and_lines_list, arrows_and_lines_file,
|
|
584
585
|
input_path, depth_order, collage, points_list, general_axes,
|
|
585
586
|
interactive_window_info.tolerance,
|
|
586
|
-
interactive_window_info.vanishing_points_list
|
|
587
|
+
interactive_window_info.vanishing_points_list,
|
|
588
|
+
line_styles_class, arrow_head_styles_class, colors_class)
|
|
587
589
|
|
|
588
590
|
# Disables the flag input again
|
|
589
591
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{davout-0.1.1.dev101 → davout-0.1.1.dev103}/source/Davout/CuboidGmsh/aa_tests/RVEs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|