-
Notifications
You must be signed in to change notification settings - Fork 9
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
should extract
for RheoFreqData take a FreqDataType
#23
Comments
Hi Louis,
I agree that this is odd. We treated the frec data as we did with time
data, but they are fundamentally different.
We probably still need a function to extract the freq vector as a new
RheoFreqData. We may also need a new generator function to create Gp and
Gpp from omega. Not sure if this exists.
I am happy with renaming the function extractfrequency. Maybe we should
then rename the other ones extracttime, extractstrain (t & epsilon) and
extractstress (t & sigma).
…On Sun, 21 Jul 2019 at 17:04, Louis Kaplan ***@***.***> wrote:
At the moment, extract for RheoTimeData types needs a TimeDataType
argument which makes sense because you might want to extract time, or time
and stress, or time and strain.
However, extract for RheoFreqData types always just extracts the
frequency vector as it doesn't make any sense to ever have Gp without Gpp
and vice versa.
So the second argument of FreqDataType is completely redundant.
I can think of a few options:
-
We keep behavior as it is, though I think it is a bit strange
-
Remove second argument for RheoFreqData types, which might also be a
little strange
-
Rename the RheoFreqData method extractfrequency or something more
specialised so it is clear from the function name what it does, and remove
the redundant second argument.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=AA6B24XTZMCVSTBK2WLWH23QASCIVA5CNFSM4IFSY4X2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAPZQPQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA6B24Q3WQ4RUR44UR5TRR3QASCIVANCNFSM4IFSY4XQ>
.
|
I'm wondering if it would not be simpler to rename all extract functions for consistency:
I think it would make the code cleaner and simpler to read for the user, and for us. Most of the code of the extract function is spent working out which parameter to extract. Note: these functions are currently defined in processing.jl |
Sounds good to me! |
The functions |
Extract deprecated in favour of onlytime/strain/stress/freq #23
Need to include new functions in API |
At the moment,
extract
forRheoTimeData
types needs aTimeDataType
argument which makes sense because you might want to extract time, or time and stress, or time and strain.However,
extract
forRheoFreqData
types always just extracts the frequency vector as it doesn't make any sense to ever have Gp without Gpp and vice versa.So when using
extract
forRheoFreqData
, the second argument ofFreqDataType
is completely redundant.I can think of a few options:
We keep behavior as it is
Remove second argument for
RheoFreqData
typesRename the
RheoFreqData
methodextractfrequency
or something more specialised so it is clear from the function name what it does, and remove the redundant second argument.The text was updated successfully, but these errors were encountered: