Repository navigation
Add load definition (signals, channels, load cases) - #69
Open
zairisabri123 wants to merge 4 commits into
Open
zairisabri123 wants to merge 4 commits into
zairisabri123 wants to merge 4 commits into
Conversation
- utils/signal.py: waveforms, constant- and variable-amplitude signals, common period of periodic signals. - data_parsing/loads.py: Channel, LoadCase and LoadHistory, with export to Voigt stress. - Tests for both modules and a usage example with 7 load cases.
… add CSV handling tests - Updated module docstring to reflect new functionalities. - Removed tests related to `period_lcm` and `common_time_axis` as they are now handled elsewhere. - Added tests for peak instants in signals, ensuring correct behavior for various waveforms. - Introduced tests for reading signals from CSV files, including error handling for missing columns and invalid data. - Added a new CSV file example for demonstration purposes.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a way to describe loads: time signals, load channels and load cases. The results can be exported as Voigt-notation histories.
fatpy.utils.signalWaveformenum andwaveform_shape, which generate standard waveform shapes.ConstantAmplitudeSignalandVariableAmplitudeSignal, both following a sharedSignalprotocol.period_lcmandcommon_time_axis, which find the common period and a shared time axis for several periodic signals.fatpy.data_parsing.loadsChannel,ChannelHistory,LoadHistoryandLoadCase.Quantityenum and avoigt_indexhelper that maps stress components to Voigt notation.LoadDefinitionErrorraised for invalid definitions.Examples and tests
src/fatpy/examples/load_usage.pyshows 7 example load cases.tests/utils/test_signal.pyandtests/data_parsing/test_loads.py.Test plan
pytest tests/utils/test_signal.py tests/data_parsing/test_loads.py: 129 passed