Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix tf loading for frequency selected files #122

Merged
merged 2 commits into from
Feb 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix variable name
jonschumacher authored Feb 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c234e11aaf5b63b0e04e53f5a9cf36d35bbdca25
2 changes: 1 addition & 1 deletion src/TransferFunction.jl
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ Create a `TransferFunction` from the tf data saved in a MPIFile (see `rxTransfer
function TransferFunction(file::MPIFile)
tf_file = rxTransferFunction(file)
inductionFactor = rxInductionFactor(file)
f = measIsFrequencySelection(smFile) ? rxFrequencies(file)[measFrequencySelection(smFile)] : rxFrequencies(file)
f = measIsFrequencySelection(file) ? rxFrequencies(file)[measFrequencySelection(file)] : rxFrequencies(file)

if isnothing(inductionFactor)
return TransferFunction(f, abs.(tf_file), angle.(tf_file))