gearmaster 0.1.0__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.
Potentially problematic release.
This version of gearmaster might be problematic. Click here for more details.
- gearmaster-0.1.0/.github/agents/GM Agent.agent.md +54 -0
- gearmaster-0.1.0/.github/chatmodes/GEARMASTER_VISUAL.chatmode.md +71 -0
- gearmaster-0.1.0/.github/workflows/publish.yml +94 -0
- gearmaster-0.1.0/.vscode/launch.json +60 -0
- gearmaster-0.1.0/.vscode/settings.json +7 -0
- gearmaster-0.1.0/CHANGELOG.md +37 -0
- gearmaster-0.1.0/GM_Visual/INSTALLATION.md +158 -0
- gearmaster-0.1.0/GM_Visual/__init__.py +35 -0
- gearmaster-0.1.0/GM_Visual/core.py +32 -0
- gearmaster-0.1.0/GM_Visual/docs/README.md +57 -0
- gearmaster-0.1.0/GM_Visual/docs/canvas.md +210 -0
- gearmaster-0.1.0/GM_Visual/docs/core/config_manager.md +425 -0
- gearmaster-0.1.0/GM_Visual/docs/core/execution_engine.md +521 -0
- gearmaster-0.1.0/GM_Visual/docs/core/installation_manager.md +467 -0
- gearmaster-0.1.0/GM_Visual/docs/core/node_base.md +749 -0
- gearmaster-0.1.0/GM_Visual/docs/core/pin_system.md +566 -0
- gearmaster-0.1.0/GM_Visual/docs/core/project_manager.md +613 -0
- gearmaster-0.1.0/GM_Visual/docs/import_context_solution.md +272 -0
- gearmaster-0.1.0/GM_Visual/docs/logging_system.md +254 -0
- gearmaster-0.1.0/GM_Visual/docs/node_creation_guide_for_ai.md +1194 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/data/core/file_pointer.md +249 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/data/core/folder_pointer.md +321 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/demo/basic/fake_node.md +141 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/demo/math/constant_int.md +36 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/demo/math/int_display.md +38 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/demo/math/sum_demo.md +39 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/creation/time_series_generator.md +204 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/display/dftb_display.md +270 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/display/dftm_display.md +235 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/display/metadata_display.md +324 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/dsp/filter_butterworth.md +405 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/dsp/frequency_spectrum.md +322 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/signals/input/signal_load.md +387 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/utils/annotations/picture_node.md +198 -0
- gearmaster-0.1.0/GM_Visual/docs/nodes/utils/annotations/sticky_node.md +255 -0
- gearmaster-0.1.0/GM_Visual/docs/templates/node_documentation_template.md +28 -0
- gearmaster-0.1.0/GM_Visual/docs/workflow_execution_logic.md +1639 -0
- gearmaster-0.1.0/GM_Visual/examples/basics/example_basic_constant_and_list_creation_and_display.gmv +356 -0
- gearmaster-0.1.0/GM_Visual/examples/manual_test_execution_engine.py +258 -0
- gearmaster-0.1.0/GM_Visual/examples/signals/example_convert_timeseries_to_table_and_plot.gmv +115 -0
- gearmaster-0.1.0/GM_Visual/examples/signals/example_timeseries_creation_and_plot.gmv +219 -0
- gearmaster-0.1.0/GM_Visual/help/README.txt +34 -0
- gearmaster-0.1.0/GM_Visual/help/assets/css/style.css +308 -0
- gearmaster-0.1.0/GM_Visual/help/index.html +83 -0
- gearmaster-0.1.0/GM_Visual/help/topics/00-about-gearmaster-visual.html +95 -0
- gearmaster-0.1.0/GM_Visual/help/topics/01-getting-started.html +46 -0
- gearmaster-0.1.0/GM_Visual/help/topics/02-installation.html +86 -0
- gearmaster-0.1.0/GM_Visual/help/topics/03-canvas-basics.html +131 -0
- gearmaster-0.1.0/GM_Visual/help/topics/04-working-with-nodes.html +88 -0
- gearmaster-0.1.0/GM_Visual/help/topics/05-connecting-nodes.html +112 -0
- gearmaster-0.1.0/GM_Visual/help/topics/06-execution.html +109 -0
- gearmaster-0.1.0/GM_Visual/help/topics/07-node-states.html +154 -0
- gearmaster-0.1.0/GM_Visual/help/topics/08-pins-io.html +214 -0
- gearmaster-0.1.0/GM_Visual/help/topics/09-custom-nodes.html +195 -0
- gearmaster-0.1.0/GM_Visual/install.py +268 -0
- gearmaster-0.1.0/GM_Visual/main.py +1271 -0
- gearmaster-0.1.0/GM_Visual/requirements.txt +20 -0
- gearmaster-0.1.0/GM_Visual/src/__init__.py +24 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/__init__.py +50 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_connections.py +536 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_events.py +1844 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_execution.py +189 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_navigation.py +358 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_node.py +1547 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_terminal.py +596 -0
- gearmaster-0.1.0/GM_Visual/src/canvas/canvas_ui.py +1133 -0
- gearmaster-0.1.0/GM_Visual/src/core/__init__.py +51 -0
- gearmaster-0.1.0/GM_Visual/src/core/config_manager.py +511 -0
- gearmaster-0.1.0/GM_Visual/src/core/execution_engine.py +706 -0
- gearmaster-0.1.0/GM_Visual/src/core/help_server.py +197 -0
- gearmaster-0.1.0/GM_Visual/src/core/installation_manager.py +527 -0
- gearmaster-0.1.0/GM_Visual/src/core/node_base.py +570 -0
- gearmaster-0.1.0/GM_Visual/src/core/pin_system.py +302 -0
- gearmaster-0.1.0/GM_Visual/src/core/project_manager.py +815 -0
- gearmaster-0.1.0/GM_Visual/src/main_canvas.py +567 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/__init__.py +24 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/__init__.py +19 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/creation/__init__.py +19 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/creation/constant.py +302 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/creation/constant_gui.py +262 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/creation/list.py +278 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/creation/list_gui.py +359 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/display/__init__.py +11 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/display/value_display.py +244 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/basics/display/value_display_gui.py +54 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/data/__init__.py +12 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/data/core/__init__.py +10 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/data/core/file_pointer_node.py +370 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/data/core/folder_pointer_node.py +375 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/demo/__init__.py +18 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/demo/basic/__init__.py +23 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/demo/basic/fake_node.py +328 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/demo/basic/fake_node_gui.py +647 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/demo/math/__init__.py +14 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/fea/__init__.py +28 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/fea/welded_joints/__init__.py +11 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/fea/welded_joints/mesh_weldpath_finder_shell.py +302 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/fea/welded_joints/mesh_weldpath_finder_shell_gui.py +237 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/fea/welded_joints/welded_joint_analysis_shell.py +391 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/fea/welded_joints/welded_joint_analysis_shell_gui.py +268 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/gui/__init__.py +24 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/gui/base_node_gui.py +168 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/materials/library/__init__.py +22 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/materials/library/material_library.py +283 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/materials/library/material_library_gui.py +461 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/__init__.py +36 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/basic/__init__.py +22 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/basic/ansys_dpf_model.py +326 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/basic/ansys_dpf_plotter.py +267 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/basic/ansys_dpf_plotter_gui.py +456 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/math/scale.py +278 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/math/scale_gui.py +234 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/results/ansys_dpf_results_stress.py +291 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/results/ansys_dpf_results_stress_gui.py +216 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/scoping/__init__.py +19 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/scoping/ansys_dpf_on_named_selection.py +279 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/scoping/ansys_dpf_on_named_selection_gui.py +358 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/scoping/ansys_dpf_time_freq_scoping.py +238 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/scoping/ansys_dpf_time_freq_scoping_gui.py +205 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/serialization/__init__.py +27 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/serialization/ansys_dpf_csv_to_field.py +197 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/serialization/ansys_dpf_field_to_csv.py +346 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/pyansys_dpf/serialization/ansys_dpf_field_to_csv_gui.py +162 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/__init__.py +26 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/combination_node.py +183 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/creation/__init__.py +19 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/creation/time_series_generator.py +674 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/creation/time_series_generator_gui.py +707 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/display/__init__.py +22 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/display/dftb_display.py +215 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/display/dftm_display.py +174 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/display/metadata_display.py +192 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/__init__.py +25 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/dftm_statistics_advanced.py +419 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/dftm_statistics_advanced_gui.py +254 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/filter_butterworth.py +273 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/filter_butterworth_gui.py +335 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/frequency_spectrum.py +333 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/dsp/frequency_spectrum_gui.py +361 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/input/__init__.py +13 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/input/ncode_csv_ts_load_node.py +214 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/input/signal_load.py +481 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/input/signal_load_gui.py +247 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/output/__init__.py +18 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/output/signal_save.py +326 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/output/signal_save_gui.py +202 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/utils/__init__.py +18 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/utils/dataframe_combination.py +295 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/utils/dataframe_combination_gui.py +263 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/utils/dataframe_split.py +348 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/utils/dataframe_split_gui.py +238 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/signals/utils/timeseries_to_table.py +267 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/utils/__init__.py +29 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/utils/annotations/__init__.py +20 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/utils/annotations/picture_node.py +470 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/utils/annotations/sticky_node.py +222 -0
- gearmaster-0.1.0/GM_Visual/src/nodes/utils/annotations/sticky_node_gui.py +274 -0
- gearmaster-0.1.0/GM_Visual/src/nodes_assets/icons/_placeholder.png +0 -0
- gearmaster-0.1.0/GM_Visual/src/nodes_assets/icons/icon_time_series_generator.png +0 -0
- gearmaster-0.1.0/GM_Visual/src/pin_connection.py +52 -0
- gearmaster-0.1.0/GM_Visual/src/settings/__init__.py +26 -0
- gearmaster-0.1.0/GM_Visual/src/settings/custom_settings.py +172 -0
- gearmaster-0.1.0/GM_Visual/src/settings/custom_settings_gui.py +483 -0
- gearmaster-0.1.0/GM_Visual/src/ui/about_dialog.py +131 -0
- gearmaster-0.1.0/GM_Visual/src/ui/documentation_panel.py +254 -0
- gearmaster-0.1.0/GM_Visual/src/ui/html_documentation_viewer.py +383 -0
- gearmaster-0.1.0/GM_Visual/src/ui/node_info_dialog.py +301 -0
- gearmaster-0.1.0/GM_Visual/src/utils/__init__.py +26 -0
- gearmaster-0.1.0/GM_Visual/src/utils/gm_logger.py +213 -0
- gearmaster-0.1.0/GM_Visual/src/utils/import_context.py +86 -0
- gearmaster-0.1.0/GM_Visual/src/utils/path_validator.py +243 -0
- gearmaster-0.1.0/GM_Visual/src/version.py +38 -0
- gearmaster-0.1.0/GM_Visual/tests/__init__.py +22 -0
- gearmaster-0.1.0/GM_Visual/tests/debug_cascade_graph.py +125 -0
- gearmaster-0.1.0/GM_Visual/tests/debug_on_property_changed.py +82 -0
- gearmaster-0.1.0/GM_Visual/tests/test_cascade_dirty_propagation.py +319 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/conftest.py +23 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/diagnostic_execution.py +185 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_canvas_cascade.py +163 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_canvas_execution.py +93 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_cascade_execution.py +207 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_complete_system.py +172 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_core_basic.py +129 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_executed_state.py +377 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_execution_dependencies.py +182 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_execution_logic.py +123 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_node_addition.py +107 -0
- gearmaster-0.1.0/GM_Visual/tests/test_core/test_property_pin_dynamic.py +191 -0
- gearmaster-0.1.0/GM_Visual/tests/test_fake_node.py +112 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_ansys_dpf_plotter.py +103 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_ansys_dpf_results_stress.py +367 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_constant_node.py +375 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_demo_nodes.py +98 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_file_pointer_node.py +231 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_folder_pointer_node.py +207 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_list_node.py +225 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_scale_node.py +368 -0
- gearmaster-0.1.0/GM_Visual/tests/test_nodes/test_value_display_node.py +284 -0
- gearmaster-0.1.0/GM_modules/Cad/__init__.py +25 -0
- gearmaster-0.1.0/GM_modules/Data/GM_DataManager.py +1860 -0
- gearmaster-0.1.0/GM_modules/Data/__init__.py +23 -0
- gearmaster-0.1.0/GM_modules/Data/test/__init__.py +11 -0
- gearmaster-0.1.0/GM_modules/Data/test/__tester_GM_DataManager.py +17 -0
- gearmaster-0.1.0/GM_modules/Data/test/_test_MC_load_ncode_csv.py +50 -0
- gearmaster-0.1.0/GM_modules/Data/test/_test_gmdm_mc.py +17 -0
- gearmaster-0.1.0/GM_modules/Data/test/source_MC_load_ncode_csv.csv +217360 -0
- gearmaster-0.1.0/GM_modules/Data/test/source_ncode_TS_to_CSV_2022.csv +1046 -0
- gearmaster-0.1.0/GM_modules/Data/test/test_gmdm_db.py +192 -0
- gearmaster-0.1.0/GM_modules/Data/test/test_gmdm_ds.py +159 -0
- gearmaster-0.1.0/GM_modules/Data/test/test_gmdm_mc.py +30 -0
- gearmaster-0.1.0/GM_modules/Data/test/test_gmdm_md.py +39 -0
- gearmaster-0.1.0/GM_modules/Data/utils.py +166 -0
- gearmaster-0.1.0/GM_modules/Fea/__init__.py +28 -0
- gearmaster-0.1.0/GM_modules/Fea/core.py +310 -0
- gearmaster-0.1.0/GM_modules/Fea/docs/DOC_MeshEnergyComponents.md +631 -0
- gearmaster-0.1.0/GM_modules/Fea/mesh_energy_components.py +2048 -0
- gearmaster-0.1.0/GM_modules/Fea/mesh_welded_joint.py +1280 -0
- gearmaster-0.1.0/GM_modules/Fea/mesh_weldpath_finder.py +1797 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/README_test_usage.md +62 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/__init__.py +11 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/_test_vtk_visualization.py +83 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/_test_weldpath_finder_shell.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/_test_weldpath_finder_shell_15000.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/_test_weldpath_finder_shell_4000.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/_test_weldpath_finder_shell_complexity2.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/_test_weldpath_finder_shell_complexity3.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/demo_weldpath_shell_NS_001.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/demo_weldpath_shell_NS_001_ENFO.txt +14148 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/demo_weldpath_shell_NS_001_ENMO.txt +14148 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/pytest.ini +42 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/run_tests.py +208 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/source_circular_tube_NS.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_gm_ansy_dpf.py +62 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_group_subgroup.rst +0 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_mesh_energy_components.py +152 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_meshenergycomponents_basic00.py +182 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_meshenergycomponents_basic01.py +114 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_meshenergycomponents_basic02.py +120 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_meshenergycomponents_weldpath_00.py +120 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_welded_joint.py +76 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_weldpath_finder_shell.py +105 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_weldpath_from_NS.py +47 -0
- gearmaster-0.1.0/GM_modules/Fea/test_/test_weldpath_shell_NS.rst +0 -0
- gearmaster-0.1.0/GM_modules/GUIs/GM_GUIManager.py +114 -0
- gearmaster-0.1.0/GM_modules/GUIs/GM_GUI_core.py +99 -0
- gearmaster-0.1.0/GM_modules/GUIs/N_Hcyl_GUI.py +253 -0
- gearmaster-0.1.0/GM_modules/GUIs/__init__.py +23 -0
- gearmaster-0.1.0/GM_modules/Hydraulic/Hydraulic.py +18 -0
- gearmaster-0.1.0/GM_modules/Hydraulic/__init__.py +26 -0
- gearmaster-0.1.0/GM_modules/Materials/__init__.py +23 -0
- gearmaster-0.1.0/GM_modules/Materials/material_library.py +116 -0
- gearmaster-0.1.0/GM_modules/Materials/materials.py +243 -0
- gearmaster-0.1.0/GM_modules/Materials/test/test_material.py +324 -0
- gearmaster-0.1.0/GM_modules/Materials/test/test_material_library.py +371 -0
- gearmaster-0.1.0/GM_modules/Mechanical/Fasteners.py +197 -0
- gearmaster-0.1.0/GM_modules/Mechanical/__init__.py +26 -0
- gearmaster-0.1.0/GM_modules/Meshless/__init__.py +24 -0
- gearmaster-0.1.0/GM_modules/Signals/__init__.py +27 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/README.md +29 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/creation/time_series_generator.md +393 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/display/METADATA_DISPLAY_GUIDE.md +297 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/dsp/ButterworthFilter.md +219 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/dsp/frequency_spectrum.md +313 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/input/dftm_load_system.md +595 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/output/dftm_save_system.md +298 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/apps/utils/dataframe_combination.md +211 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/dataframe_table.md +620 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/dataframe_time.md +440 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/dataseries_time.md +364 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/dataset_table.md +552 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/format_table.md +229 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/format_timeseries.md +224 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/formats.md +119 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/core/gm_data_types_for_ai.md +195 -0
- gearmaster-0.1.0/GM_modules/Signals/docs/source_metadata_guide.md +347 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/dataframe_combination_example.py +199 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_dftm_advanced_statistics.py +214 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_filter_butterworth.py +286 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_frequency_spectrum.py +205 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_metadata_display.py +312 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_metadata_display_from_ts_generator.py +149 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_source_metadata.py +178 -0
- gearmaster-0.1.0/GM_modules/Signals/examples/demo_timeseries_to_table.py +218 -0
- gearmaster-0.1.0/GM_modules/Signals/requirements_signals.txt +14 -0
- gearmaster-0.1.0/GM_modules/Signals/src/__init__.py +12 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/__init__.py +14 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/creation/__init__.py +14 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/creation/time_series_generator.py +407 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/display/__init__.py +15 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/display/dftb_display.py +505 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/display/dftm_display.py +505 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/display/metadata_display.py +463 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/display/test_/test_dftm_display.py +569 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/__init__.py +14 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/dftm_statistics_advanced.py +172 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/filter_butterworth.py +279 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/frequency_spectrum.py +711 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/test_/__init__.py +11 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/test_/test_butterworth_filter.py +875 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/dsp/test_/test_frequency_spectrum.py +423 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/__init__.py +11 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/dftb_load.py +632 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/dftm_load.py +622 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/ncode_csv_ts_load.py +276 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/test_/source_ncode_csv_ts.csv +144008 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/test_/test_dftb_load.py +479 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/test_/test_dftm_load.py +461 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/input/test_/test_ncode_csv_ts_load.py +277 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/output/__init__.py +14 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/output/dftb_out.py +360 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/output/dftm_out.py +317 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/output/test_/test_dftb_out.py +388 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/output/test_/test_dftm_out.py +308 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/utils/__init__.py +14 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/utils/dataframe_combination.py +189 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/utils/dataframe_split.py +364 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/utils/test_/test_dataframe_split.py +234 -0
- gearmaster-0.1.0/GM_modules/Signals/src/apps/utils/timeseries_to_table.py +301 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/__init__.py +24 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/dataframe_table.py +285 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/dataframe_time.py +180 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/dataseries_time.py +150 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/dataset_table.py +244 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/metadata_dftb.py +53 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/metadata_dftm.py +38 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/metadata_dstb.py +92 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/metadata_dstm.py +94 -0
- gearmaster-0.1.0/GM_modules/Signals/src/core/metadata_source_info.py +156 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/conftest.py +22 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_converter_with_generator.py +266 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_dataframe_combination.py +303 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_debug_types.py +51 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_dftb_creation-save-load.py +201 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_dftm.py +308 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_dftm_creation-save-load.py +154 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_dftm_statistics_advanced.py +287 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_dstm.py +117 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_filter_butterworth.py +342 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_generator_debug.py +49 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_metadata_display_unified.py +629 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_simple_converter.py +171 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_time_series_generator.py +356 -0
- gearmaster-0.1.0/GM_modules/Signals/tests/test_timeseries_to_table.py +293 -0
- gearmaster-0.1.0/GM_modules/Structures/SWA_Core.py +558 -0
- gearmaster-0.1.0/GM_modules/Structures/SWA_Prep.py +348 -0
- gearmaster-0.1.0/GM_modules/Structures/SWA_pyAnsys.py +92 -0
- gearmaster-0.1.0/GM_modules/Structures/__init__.py +29 -0
- gearmaster-0.1.0/GM_modules/Structures/_cross_Sections_tester.py +18 -0
- gearmaster-0.1.0/GM_modules/Structures/_out/node_data_path.csv +46 -0
- gearmaster-0.1.0/GM_modules/Structures/_out/weldline_stresses.csv +7 -0
- gearmaster-0.1.0/GM_modules/Structures/core.py +77 -0
- gearmaster-0.1.0/GM_modules/Structures/cross_sections.py +193 -0
- gearmaster-0.1.0/GM_modules/Structures/json2asg.py +76 -0
- gearmaster-0.1.0/GM_modules/__init__.py +43 -0
- gearmaster-0.1.0/GM_modules/pyAnsys/DPF/GM_dpf_core.py +174 -0
- gearmaster-0.1.0/GM_modules/pyAnsys/DPF/gm_ansys_dpf.py +693 -0
- gearmaster-0.1.0/GM_modules/pyAnsys/DPF/test/ansys_dpf_core_vs_post_benchmark.py +148 -0
- gearmaster-0.1.0/GM_modules/pyAnsys/DPF/test/demo_simple_joint_shell.rst +0 -0
- gearmaster-0.1.0/GM_modules/pyAnsys/DPF/test/test_GmAnsysDPF_basics.py +59 -0
- gearmaster-0.1.0/GM_modules/pyAnsys/__init__.py +24 -0
- gearmaster-0.1.0/INSTALLATION.md +229 -0
- gearmaster-0.1.0/LICENSE +675 -0
- gearmaster-0.1.0/MANIFEST.in +13 -0
- gearmaster-0.1.0/PKG-INFO +460 -0
- gearmaster-0.1.0/README.md +392 -0
- gearmaster-0.1.0/build_docs.py +299 -0
- gearmaster-0.1.0/debug_output.log +0 -0
- gearmaster-0.1.0/docs/DOCUMENTATION_SETUP.md +307 -0
- gearmaster-0.1.0/docs/guides/architecture.md +96 -0
- gearmaster-0.1.0/docs/guides/development.md +119 -0
- gearmaster-0.1.0/docs/guides/faq.md +92 -0
- gearmaster-0.1.0/docs/guides/getting_started.md +76 -0
- gearmaster-0.1.0/docs/index.md +74 -0
- gearmaster-0.1.0/docs/requirements.txt +5 -0
- gearmaster-0.1.0/gearmaster.egg-info/PKG-INFO +460 -0
- gearmaster-0.1.0/gearmaster.egg-info/SOURCES.txt +393 -0
- gearmaster-0.1.0/gearmaster.egg-info/dependency_links.txt +1 -0
- gearmaster-0.1.0/gearmaster.egg-info/requires.txt +49 -0
- gearmaster-0.1.0/gearmaster.egg-info/top_level.txt +4 -0
- gearmaster-0.1.0/install.py +606 -0
- gearmaster-0.1.0/mkdocs.yml +67 -0
- gearmaster-0.1.0/pyproject.toml +149 -0
- gearmaster-0.1.0/requirements.txt +39 -0
- gearmaster-0.1.0/scripts/prepare_release.ps1 +145 -0
- gearmaster-0.1.0/setup.cfg +4 -0
- gearmaster-0.1.0/standard/API.md +21 -0
- gearmaster-0.1.0/standard/CODE_STRUCTURE.md +222 -0
- gearmaster-0.1.0/standard/DOCUMENTATION.md +335 -0
- gearmaster-0.1.0/standard/FORMATTING.md +365 -0
- gearmaster-0.1.0/standard/NAMING_CONVENTIONS.md +232 -0
- gearmaster-0.1.0/standard/README.md +36 -0
- gearmaster-0.1.0/standard/TESTING.md +396 -0
- gearmaster-0.1.0/standard/VERSIONING.md +189 -0
- gearmaster-0.1.0/tests/__init__.py +13 -0
- gearmaster-0.1.0/version.py +37 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GM Agent
|
|
3
|
+
description: Agent used for GearMaster repository
|
|
4
|
+
argument-hint: The inputs this agent expects, e.g., "a task to implement" or "a question to answer".
|
|
5
|
+
# tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo'] # specify the tools this agent can use. If not set, all enabled tools are allowed.
|
|
6
|
+
---
|
|
7
|
+
Rules:
|
|
8
|
+
You are GearMaster Agent, an AI specialized in managing and enhancing the GearMaster repository. Your primary role is to assist with tasks related to the development, maintenance, and improvement of the GearMaster project.
|
|
9
|
+
|
|
10
|
+
# User:
|
|
11
|
+
1. The user is a mechanical engineer but NOT a software developer. They rely on you for all interactions with the codebase, including understanding, modifying, and extending the repository. Suggest the best practices and guide them through complex tasks.
|
|
12
|
+
2. The user is Simone Lucertini. Refer to this name for author/owner fields.
|
|
13
|
+
|
|
14
|
+
# Language:
|
|
15
|
+
1. The code, documentation, and comments in the GearMaster repository shall be only in english.
|
|
16
|
+
2. The user can speak to you in either English or Italian, and you should respond in the same language used by the user.
|
|
17
|
+
|
|
18
|
+
# External Sources
|
|
19
|
+
1. When you need to access external sources of information, such as documentation, online resources, or the web, you should use the appropriate tools available to you. This may include using the search tool to find relevant information or accessing specific documentation related to the GearMaster project.
|
|
20
|
+
2. Always ensure that the information you gather from external sources is accurate and relevant to the task at hand. If you are unsure about the reliability of a source, consider cross-referencing the information with multiple sources or asking the user for guidance.
|
|
21
|
+
3. in case you are making assumptions or deriving solutions, mark your statement as [ASSUMPTION] to let the user know that you are making an assumption based on the information available.
|
|
22
|
+
|
|
23
|
+
# Task Handling:
|
|
24
|
+
When given a task, follow these steps:
|
|
25
|
+
1. Understand the Task: Carefully read and comprehend the task description provided by the user.
|
|
26
|
+
2. Analyze the Repository: Familiarize yourself with the current state of the GearMaster repository, including its structure, existing features, and any relevant documentation.
|
|
27
|
+
3. ask Clarifying Questions: If the task is ambiguous or lacks sufficient detail, ask the user for clarification before proceeding.
|
|
28
|
+
|
|
29
|
+
# Branching strategy:
|
|
30
|
+
When making commits to the repository, follow these guidelines:
|
|
31
|
+
1. Commit Messages: Write clear and concise commit messages that accurately describe the changes made. Use the present tense and be specific about the modifications. For example, "Add new feature for user authentication" or "Fix bug in data processing module."
|
|
32
|
+
2. always wait the user to ask for a commit before commiting, never commit without the user asking for it.
|
|
33
|
+
3. Code Quality: Ensure that all code changes adhere to the project's coding standards and best practices. This includes proper formatting, naming conventions, and documentation.
|
|
34
|
+
4. check the current branch before commiting, the branch should be the correct one for the task at hand. If you are unsure about which branch to commit to, ask the user for guidance.
|
|
35
|
+
5. Merging: When merging branches, ensure that the merge is done cleanly and that any conflicts are resolved appropriately. Always test the merged code to ensure that it functions correctly and does not introduce new issues.
|
|
36
|
+
5.1. When merging use non-fast-forward merges to preserve the history of the branches. This allows for better tracking of changes and easier debugging in the future, unless the user explicitly asks for a fast-forward merge.
|
|
37
|
+
|
|
38
|
+
# Coding
|
|
39
|
+
1. python code should be compatible with Python 3.10 or higher.
|
|
40
|
+
2. Follow the coding standards outlined in the GearMaster Code Standards documentation (folder: "standard"), including naming conventions, code structure, documentation, testing, and formatting guidelines.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Repo structure:
|
|
44
|
+
1. GM_modules should be the core of the repository, containing the main functionalities and features of the GearMaster project.
|
|
45
|
+
2. GM_Visual is tje GM_Modules wrapper for a Visual programming system, it should be designed to provide a user-friendly interface for users who prefer visual programming.
|
|
46
|
+
|
|
47
|
+
# Docs:
|
|
48
|
+
1. The documetation files must be placed in the corressponding "docs" folder, for example the documentation for GM_Modules should be placed in the "GM_Modules/docs" folder.
|
|
49
|
+
2. Documentation should be clear, concise, and well-organized. It should provide sufficient information for users to understand how to use the features of the GearMaster project, as well as any relevant technical details.
|
|
50
|
+
3. When updating or adding new features to the repository, ensure that the documentation is also updated accordingly to reflect the changes made. This includes updating existing documentation and adding new documentation for any new features or functionalities introduced.
|
|
51
|
+
|
|
52
|
+
# tests:
|
|
53
|
+
1. The tests should be placed in the corresponding "tests" folder, for example the tests for GM_Modules should be placed in the "GM_Modules/tests" folder.
|
|
54
|
+
2. We use pytest as testing framework, so all the test files should be named starting with "test_" and all the test functions should be named starting with "test_".
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'Description of the custom chat mode.'
|
|
3
|
+
tools: ['runCommands', 'runTasks', 'edit', 'runNotebooks', 'search', 'new', 'pylance mcp server/*', 'extensions', 'todos', 'runSubagent', 'runTests', 'usages', 'vscodeAPI', 'problems', 'changes', 'testFailure', 'openSimpleBrowser', 'fetch', 'githubRepo', 'github.vscode-pull-request-github/copilotCodingAgent', 'github.vscode-pull-request-github/activePullRequest', 'github.vscode-pull-request-github/openPullRequest', 'ms-python.python/getPythonEnvironmentInfo', 'ms-python.python/getPythonExecutableCommand', 'ms-python.python/installPythonPackage', 'ms-python.python/configurePythonEnvironment', 'ms-toolsai.jupyter/configureNotebook', 'ms-toolsai.jupyter/listNotebookPackages', 'ms-toolsai.jupyter/installNotebookPackages']
|
|
4
|
+
---
|
|
5
|
+
# user instructions:
|
|
6
|
+
Refer to the user as "Emperor" or "Imperatore" in Italian.
|
|
7
|
+
|
|
8
|
+
# System
|
|
9
|
+
Consider Windows OS environment.
|
|
10
|
+
|
|
11
|
+
# language:
|
|
12
|
+
python 3.10 compatible
|
|
13
|
+
|
|
14
|
+
# Style and Formatting
|
|
15
|
+
Docstrings in Google style.
|
|
16
|
+
Style per PEP8 and PEP257.
|
|
17
|
+
|
|
18
|
+
# tests:
|
|
19
|
+
tests using pytest framework. Standalone run shall be allowed.
|
|
20
|
+
test file name always starting by "test_"
|
|
21
|
+
place the test files in the "tests" folder (create one if non existent)
|
|
22
|
+
|
|
23
|
+
# demo files:
|
|
24
|
+
create demo files in the "tests" folder (create one if non existent)
|
|
25
|
+
demo file name always starting by "demo_"
|
|
26
|
+
demo files shall be standalone runnable scripts.
|
|
27
|
+
|
|
28
|
+
# main docstring:
|
|
29
|
+
Always add a main docstring at the beginning of each file explaining its purpose.
|
|
30
|
+
The main docstring shall include:
|
|
31
|
+
- brief description
|
|
32
|
+
- metadata as follows
|
|
33
|
+
|
|
34
|
+
the main docstring shall not include:
|
|
35
|
+
- detailed description of classes or functions (these go in their respective docstrings)
|
|
36
|
+
- change history (which goes in version control). It should describe only the actual purpose of the file.
|
|
37
|
+
|
|
38
|
+
# metadata
|
|
39
|
+
When writing code, always add the author and last update date:
|
|
40
|
+
"Author: Simone Lucertini"
|
|
41
|
+
"Last update: YYYY-MMM-DD" (example: "Last update: 2025-OCT-23")
|
|
42
|
+
Remember to update the date at each code modification.
|
|
43
|
+
|
|
44
|
+
# commits and merge:
|
|
45
|
+
Never commit without user specific request! Remember this.
|
|
46
|
+
You can suggest a commit when needed but always ask the user before committing.
|
|
47
|
+
Bump revision before committing. Ask user if unsure.
|
|
48
|
+
Propose optimized branching management, including when to branch and when to merge.
|
|
49
|
+
After every user prompt, ask user questions if multiple ways of resolving the problems are present or if something is missing, avoid to take decisions on your own.
|
|
50
|
+
Before any commit on repo, bump the version of the corresponding module.
|
|
51
|
+
Prefer non-fast-forward merges when merging branches, unless user specifies otherwise.
|
|
52
|
+
|
|
53
|
+
# other rules:
|
|
54
|
+
Never create a standalone versions of existing code, always wrap.
|
|
55
|
+
When creating GM_Visual nodes follow the guide GM_Visual\docs\node_creation_guide_for_ai.md
|
|
56
|
+
Avoid HardCoding as possible, prepare vars and methods to manage global parameters and functions.
|
|
57
|
+
Always cite the sources of the code you use, in case of a supposed knowledge, mark your answer with [SUPPOSITION].
|
|
58
|
+
Always use the most efficient and pythonic way to solve problems.
|
|
59
|
+
Style the code per PEP8 and PEP257.
|
|
60
|
+
Always use f-strings.
|
|
61
|
+
|
|
62
|
+
# GM_Visual nodes
|
|
63
|
+
follow the documentation in GM_Visual\docs\node_creation_guide_for_ai.md when creating nodes.
|
|
64
|
+
|
|
65
|
+
# GM_Visual workflow
|
|
66
|
+
When creating or modifying workflows, always follow the documentation in GM_Visual\docs\workflow_creation_guide_for_ai.md
|
|
67
|
+
|
|
68
|
+
# RUn GM_Visual
|
|
69
|
+
Always run commands for Windows PowerShell.
|
|
70
|
+
Use the following command to run GM_Visual:
|
|
71
|
+
cd "c:\Users\simone.lucertini\.conda\envs\pyflow_3_master\GearMaster\GM_Visual"; python main.py
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# GearMaster – Publish to PyPI on release tag
|
|
2
|
+
#
|
|
3
|
+
# Triggered automatically when a tag matching v*.*.* is pushed to the repo.
|
|
4
|
+
# Uses PyPI Trusted Publishing (OIDC) – no API tokens stored in GitHub secrets.
|
|
5
|
+
#
|
|
6
|
+
# Setup required (one-time, on PyPI):
|
|
7
|
+
# 1. Go to https://pypi.org/manage/account/publishing/
|
|
8
|
+
# 2. Add a new "pending publisher":
|
|
9
|
+
# PyPI project name : gearmaster
|
|
10
|
+
# GitHub owner : simoneluce
|
|
11
|
+
# GitHub repo : GearMaster
|
|
12
|
+
# Workflow filename : publish.yml
|
|
13
|
+
# Environment name : pypi
|
|
14
|
+
# 3. That's it – no secrets needed.
|
|
15
|
+
#
|
|
16
|
+
# Author: Simone Lucertini
|
|
17
|
+
|
|
18
|
+
name: Publish to PyPI
|
|
19
|
+
|
|
20
|
+
on:
|
|
21
|
+
push:
|
|
22
|
+
tags:
|
|
23
|
+
- "v[0-9]+.[0-9]+.[0-9]+" # e.g. v0.1.0, v1.2.3
|
|
24
|
+
|
|
25
|
+
jobs:
|
|
26
|
+
# ── 1. Build distribution ────────────────────────────────────────────────────
|
|
27
|
+
# Note: CI tests are skipped because some dependencies (ansys-dpf-core,
|
|
28
|
+
# ansys-dpf-post) require a licensed Ansys installation not available in CI.
|
|
29
|
+
build:
|
|
30
|
+
name: Build wheel and sdist
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- name: Checkout code
|
|
35
|
+
uses: actions/checkout@v4
|
|
36
|
+
with:
|
|
37
|
+
fetch-depth: 0 # required for setuptools-scm
|
|
38
|
+
|
|
39
|
+
- name: Set up Python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.12"
|
|
43
|
+
|
|
44
|
+
- name: Install build tools
|
|
45
|
+
run: python -m pip install --upgrade pip build
|
|
46
|
+
|
|
47
|
+
- name: Build package
|
|
48
|
+
run: python -m build
|
|
49
|
+
|
|
50
|
+
- name: Upload build artifacts
|
|
51
|
+
uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: dist
|
|
54
|
+
path: dist/
|
|
55
|
+
|
|
56
|
+
# ── 3. Publish to PyPI ───────────────────────────────────────────────────────
|
|
57
|
+
publish:
|
|
58
|
+
name: Publish to PyPI (Trusted Publishing)
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
needs: build
|
|
61
|
+
environment: pypi # matches the environment name configured on PyPI
|
|
62
|
+
permissions:
|
|
63
|
+
id-token: write # required for OIDC trusted publishing
|
|
64
|
+
|
|
65
|
+
steps:
|
|
66
|
+
- name: Download build artifacts
|
|
67
|
+
uses: actions/download-artifact@v4
|
|
68
|
+
with:
|
|
69
|
+
name: dist
|
|
70
|
+
path: dist/
|
|
71
|
+
|
|
72
|
+
- name: Publish to PyPI
|
|
73
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
74
|
+
|
|
75
|
+
# ── 4. Create GitHub Release ─────────────────────────────────────────────────
|
|
76
|
+
github-release:
|
|
77
|
+
name: Create GitHub Release
|
|
78
|
+
runs-on: ubuntu-latest
|
|
79
|
+
needs: publish
|
|
80
|
+
permissions:
|
|
81
|
+
contents: write
|
|
82
|
+
|
|
83
|
+
steps:
|
|
84
|
+
- name: Download build artifacts
|
|
85
|
+
uses: actions/download-artifact@v4
|
|
86
|
+
with:
|
|
87
|
+
name: dist
|
|
88
|
+
path: dist/
|
|
89
|
+
|
|
90
|
+
- name: Create GitHub Release
|
|
91
|
+
uses: softprops/action-gh-release@v2
|
|
92
|
+
with:
|
|
93
|
+
files: dist/*
|
|
94
|
+
generate_release_notes: true
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"python.analysis.typeCheckingMode": "off",
|
|
7
|
+
"configurations": [
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
{
|
|
16
|
+
"name": "Python: Current File",
|
|
17
|
+
"type": "debugpy",
|
|
18
|
+
"request": "launch",
|
|
19
|
+
"program": "${file}",
|
|
20
|
+
"console": "integratedTerminal"
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
{
|
|
24
|
+
"name": "Python Debugger: Current File",
|
|
25
|
+
"type": "debugpy",
|
|
26
|
+
"request": "launch",
|
|
27
|
+
"program": "${file}",
|
|
28
|
+
"console": "integratedTerminal",
|
|
29
|
+
"justMyCode": false,
|
|
30
|
+
"cwd": "${workspaceFolder}",
|
|
31
|
+
"env": {
|
|
32
|
+
"PYTHONPATH": "${workspaceFolder}"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "Python Debugger: GM_Visual Main",
|
|
37
|
+
"type": "debugpy",
|
|
38
|
+
"request": "launch",
|
|
39
|
+
"program": "${workspaceFolder}/GM_Visual/main.py",
|
|
40
|
+
"console": "integratedTerminal",
|
|
41
|
+
"justMyCode": false,
|
|
42
|
+
"cwd": "${workspaceFolder}",
|
|
43
|
+
"env": {
|
|
44
|
+
"PYTHONPATH": "${workspaceFolder}"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Python Debugger: External Script",
|
|
49
|
+
"type": "debugpy",
|
|
50
|
+
"request": "launch",
|
|
51
|
+
"program": "${file}",
|
|
52
|
+
"console": "integratedTerminal",
|
|
53
|
+
"justMyCode": false,
|
|
54
|
+
"cwd": "${fileDirname}",
|
|
55
|
+
"env": {
|
|
56
|
+
"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to GearMaster are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
Versioning follows [Semantic Versioning](https://semver.org/).
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## [Unreleased]
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## [0.1.0] – 2026-03-13
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- Initial release of the GearMaster engineering suite.
|
|
18
|
+
- `GM_modules` core library with 11 specialized engineering modules:
|
|
19
|
+
- **Mechanical** – fasteners, bearings, gears, shafts analysis.
|
|
20
|
+
- **Structural** – FEA, cross-section properties, HEXA8 elements.
|
|
21
|
+
- **Hydraulic** – cylinders, pumps, hoses, oil and tank modelling.
|
|
22
|
+
- **Signals** – time-series analysis, FFT, filtering, data export.
|
|
23
|
+
- **CAD** – geometric modelling utilities.
|
|
24
|
+
- **Data** – multi-format data handling (CSV, Excel, HDF5).
|
|
25
|
+
- **Materials** – material property database and fastener specs.
|
|
26
|
+
- **FEA** – finite element pre/post-processing helpers.
|
|
27
|
+
- **Meshless** – meshless analysis support.
|
|
28
|
+
- **pyAnsys** – Ansys DPF/PyDPF integration for result processing.
|
|
29
|
+
- **GUIs** – reusable GUI components.
|
|
30
|
+
- `GM_Visual` node-based visual programming interface.
|
|
31
|
+
- GPL-3.0 license.
|
|
32
|
+
- `pyproject.toml` packaging configuration with `setuptools-scm` versioning.
|
|
33
|
+
- GitHub Actions workflow for automated PyPI publish on tag push.
|
|
34
|
+
- Release preparation script (`scripts/prepare_release.ps1`).
|
|
35
|
+
|
|
36
|
+
[Unreleased]: https://github.com/simoneluce/GearMaster/compare/v0.1.0...HEAD
|
|
37
|
+
[0.1.0]: https://github.com/simoneluce/GearMaster/releases/tag/v0.1.0
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# GM_Visual Installation Guide
|
|
2
|
+
|
|
3
|
+
## Quick Start
|
|
4
|
+
|
|
5
|
+
After cloning the repository, run the installation script:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
cd GM_Visual
|
|
9
|
+
python install.py
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This will:
|
|
13
|
+
- ✅ Create configuration directory in `%APPDATA%\GM_Visual`
|
|
14
|
+
- ✅ Create default configuration files
|
|
15
|
+
- ✅ Create desktop shortcut (optional)
|
|
16
|
+
- ✅ Create Start Menu shortcut (optional)
|
|
17
|
+
|
|
18
|
+
## Installation Commands
|
|
19
|
+
|
|
20
|
+
### Install
|
|
21
|
+
```bash
|
|
22
|
+
python install.py install
|
|
23
|
+
```
|
|
24
|
+
Installs GM_Visual with interactive prompts for shortcut creation.
|
|
25
|
+
|
|
26
|
+
### Verify Installation
|
|
27
|
+
```bash
|
|
28
|
+
python install.py verify
|
|
29
|
+
```
|
|
30
|
+
Checks if installation is valid and reports any issues.
|
|
31
|
+
|
|
32
|
+
### Repair Installation
|
|
33
|
+
```bash
|
|
34
|
+
python install.py repair
|
|
35
|
+
```
|
|
36
|
+
Fixes corrupted or missing configuration files.
|
|
37
|
+
|
|
38
|
+
### Show Installation Info
|
|
39
|
+
```bash
|
|
40
|
+
python install.py info
|
|
41
|
+
```
|
|
42
|
+
Displays current installation status and details.
|
|
43
|
+
|
|
44
|
+
### Uninstall
|
|
45
|
+
```bash
|
|
46
|
+
python install.py uninstall
|
|
47
|
+
```
|
|
48
|
+
Removes all configuration files and shortcuts.
|
|
49
|
+
|
|
50
|
+
## What Gets Installed?
|
|
51
|
+
|
|
52
|
+
### Configuration Directory
|
|
53
|
+
Location: `C:\Users\{username}\AppData\Roaming\GM_Visual\`
|
|
54
|
+
|
|
55
|
+
Files created:
|
|
56
|
+
- **config.json** - Application settings (theme, grid, auto-save)
|
|
57
|
+
- **recent_files.json** - Recently opened workflows
|
|
58
|
+
- **workspace.json** - Window position, last directory
|
|
59
|
+
- **logs/** - Application logs directory
|
|
60
|
+
|
|
61
|
+
### Shortcuts (Optional)
|
|
62
|
+
- Desktop shortcut: `GM Visual.lnk`
|
|
63
|
+
- Start Menu: `Programs\GM Visual\GM Visual.lnk`
|
|
64
|
+
|
|
65
|
+
## Auto-Installation
|
|
66
|
+
|
|
67
|
+
When you run `python main.py` for the first time without installation, GM_Visual will:
|
|
68
|
+
1. Detect missing installation
|
|
69
|
+
2. Prompt you to install
|
|
70
|
+
3. Create configuration directory
|
|
71
|
+
4. Continue launching
|
|
72
|
+
|
|
73
|
+
You can skip this prompt and run `python install.py` manually later.
|
|
74
|
+
|
|
75
|
+
## Requirements
|
|
76
|
+
|
|
77
|
+
### Python Packages
|
|
78
|
+
All listed in `requirements.txt` - install with:
|
|
79
|
+
```bash
|
|
80
|
+
pip install -r requirements.txt
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### For Shortcuts (Windows only)
|
|
84
|
+
```bash
|
|
85
|
+
pip install pywin32
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
If `pywin32` is not installed, shortcuts will be skipped but the app will still work.
|
|
89
|
+
|
|
90
|
+
## Manual Configuration
|
|
91
|
+
|
|
92
|
+
If you prefer not to use the installer, you can manually create:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
%APPDATA%\GM_Visual\
|
|
96
|
+
├── config.json
|
|
97
|
+
├── recent_files.json
|
|
98
|
+
├── workspace.json
|
|
99
|
+
└── logs\
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Example `config.json`:
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"version": "1.0.0",
|
|
106
|
+
"theme": "dark",
|
|
107
|
+
"auto_save_interval": 300,
|
|
108
|
+
"grid_snap": true,
|
|
109
|
+
"grid_size": 20
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Troubleshooting
|
|
114
|
+
|
|
115
|
+
### "GM_Visual is not installed" Warning
|
|
116
|
+
Run: `python install.py install`
|
|
117
|
+
|
|
118
|
+
### Installation Corruption
|
|
119
|
+
Run: `python install.py repair`
|
|
120
|
+
|
|
121
|
+
### Shortcuts Not Created
|
|
122
|
+
Ensure `pywin32` is installed:
|
|
123
|
+
```bash
|
|
124
|
+
pip install pywin32
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Then repair:
|
|
128
|
+
```bash
|
|
129
|
+
python install.py repair
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Permission Errors
|
|
133
|
+
The installer only writes to `%APPDATA%`, which doesn't require admin privileges.
|
|
134
|
+
If you get permission errors, check your user account permissions.
|
|
135
|
+
|
|
136
|
+
## Uninstallation
|
|
137
|
+
|
|
138
|
+
To completely remove GM_Visual:
|
|
139
|
+
|
|
140
|
+
1. Uninstall via script (removes config + shortcuts):
|
|
141
|
+
```bash
|
|
142
|
+
python install.py uninstall
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
2. Delete the repository folder:
|
|
146
|
+
```bash
|
|
147
|
+
rmdir /s GM_Visual
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Distribution
|
|
151
|
+
|
|
152
|
+
When distributing GM_Visual to other users:
|
|
153
|
+
|
|
154
|
+
1. **Include install.py** in the repository
|
|
155
|
+
2. Instruct users to run `python install.py` after clone
|
|
156
|
+
3. Alternatively, they can just run `python main.py` and accept the auto-install prompt
|
|
157
|
+
|
|
158
|
+
The installation is user-specific and doesn't require administrator privileges.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
GM_Visual - Visual Programming System for GearMaster
|
|
3
|
+
|
|
4
|
+
A node-based visual programming interface for visual engineering workflows.
|
|
5
|
+
Provides drag-and-drop node canvas, project management, and integration with
|
|
6
|
+
GM_modules for signal processing, CAD operations, and simulation workflows.
|
|
7
|
+
|
|
8
|
+
Key Components:
|
|
9
|
+
- Canvas: Node-based visual programming interface
|
|
10
|
+
- Nodes: Computational nodes providing various functionalities
|
|
11
|
+
- Core: Engine and execution system
|
|
12
|
+
- Settings: User preferences and configuration management
|
|
13
|
+
- Utils: Shared utilities and helpers
|
|
14
|
+
|
|
15
|
+
Dependencies:
|
|
16
|
+
Internal:
|
|
17
|
+
- GearMaster.GM_modules (All modules integrated as nodes)
|
|
18
|
+
External:
|
|
19
|
+
- customtkinter (Modern GUI framework)
|
|
20
|
+
- tkinter (Standard Python GUI)
|
|
21
|
+
- Pillow (Image processing)
|
|
22
|
+
|
|
23
|
+
Author: Simone Lucertini
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
27
|
+
|
|
28
|
+
try:
|
|
29
|
+
__version__ = version("gearmaster")
|
|
30
|
+
except PackageNotFoundError:
|
|
31
|
+
__version__ = "0.0.0+unknown"
|
|
32
|
+
|
|
33
|
+
__author__ = "Simone Lucertini"
|
|
34
|
+
|
|
35
|
+
# Main API exports will be added here
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Core module for GM_Visual
|
|
3
|
+
Centralizes all core imports for the visual programming system.
|
|
4
|
+
|
|
5
|
+
Dependencies:
|
|
6
|
+
Internal: See module imports
|
|
7
|
+
External: See requirements and imports
|
|
8
|
+
|
|
9
|
+
Author: Simone Lucertini
|
|
10
|
+
Last Update: 2026-02-06
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
# Import the base node architecture
|
|
14
|
+
from src.core.node_base import NodeBase, NodeState
|
|
15
|
+
from src.core.pin_system import Pin, PinType, PinDirection
|
|
16
|
+
|
|
17
|
+
# Import the execution engine (versione completa)
|
|
18
|
+
from src.core.execution_engine import ExecutionEngine
|
|
19
|
+
|
|
20
|
+
# Import connection management
|
|
21
|
+
from src.pin_connection import PinConnection
|
|
22
|
+
|
|
23
|
+
# Re-export everything for convenience
|
|
24
|
+
__all__ = [
|
|
25
|
+
'NodeBase',
|
|
26
|
+
'Pin',
|
|
27
|
+
'PinType',
|
|
28
|
+
'PinDirection',
|
|
29
|
+
'NodeState',
|
|
30
|
+
'ExecutionEngine',
|
|
31
|
+
'PinConnection'
|
|
32
|
+
]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# GM_Visual - Visual Programming System
|
|
2
|
+
|
|
3
|
+
A node-based visual programming interface for the GearMaster ecosystem, enabling intuitive workflow creation for signal processing, analysis, and simulation tasks.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
GM_Visual provides a drag-and-drop interface for creating complex workflows using nodes that represent operations from the GearMaster library ecosystem. Built with CustomTkinter for a modern, responsive user interface.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Node-based Workflow**: Drag-and-drop interface for creating processing pipelines
|
|
12
|
+
- **Type Safety**: Automatic validation of node connections
|
|
13
|
+
- **Real-time Execution**: Interactive execution with dependency resolution
|
|
14
|
+
- **Modular Design**: Extensible architecture for adding new node types
|
|
15
|
+
- **Visual Feedback**: Clear indication of node states (dirty/clean/error/processing)
|
|
16
|
+
|
|
17
|
+
## Architecture
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
GM_Visual/
|
|
21
|
+
├── src/core/ # Core engine (nodes, pins, execution)
|
|
22
|
+
├── src/nodes/ # Node implementations by module
|
|
23
|
+
│ ├── signals/ # Signal processing nodes
|
|
24
|
+
│ └── utils/ # Utility nodes
|
|
25
|
+
├── docs/ # Documentation
|
|
26
|
+
├── tests/ # Unit tests
|
|
27
|
+
└── examples/ # Example workflows
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Quick Start
|
|
31
|
+
|
|
32
|
+
*(Documentation will be expanded as development progresses)*
|
|
33
|
+
|
|
34
|
+
## Node Categories
|
|
35
|
+
|
|
36
|
+
### Signals Module
|
|
37
|
+
- **Creation**: Time series generators, synthetic signals
|
|
38
|
+
- **DSP**: Filters, frequency analysis, transformations
|
|
39
|
+
- **Display**: Visualization, metadata display
|
|
40
|
+
- **Input**: Data loading and import
|
|
41
|
+
|
|
42
|
+
### Utilities
|
|
43
|
+
- **Combination**: Data merging and manipulation
|
|
44
|
+
- **Math**: Mathematical operations
|
|
45
|
+
- **I/O**: File operations
|
|
46
|
+
|
|
47
|
+
## Development Status
|
|
48
|
+
|
|
49
|
+
🚧 **In Development** - Initial implementation phase
|
|
50
|
+
|
|
51
|
+
## Requirements
|
|
52
|
+
|
|
53
|
+
See `requirements.txt` for full dependency list.
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
Part of the GearMaster project.
|