-
Notifications
You must be signed in to change notification settings - Fork 35
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
develop SS_readctl_3.30 and SS_writectl_3.30 #138
Comments
As written |
Thanks for catching this @kellijohnson. Since SS_readctl_3.30 hasn't yet been written (@yukio-takeuchi has volunteered to work on it starting in September), I think the few users of these files (including @iagomosqueira) have probably just called SS_readctl_3.24 directly rather than the wrapper function SS_readctl which is out of date so the change should take place there, The consistency question is a big enough problem that I will post a separate issue (probably will be #140) about it. |
I agree that there is some inconsistency of arguments names in between SS_readctl_3.24 and SS_readctl.
I remember that those inconsistencies happened when I enhanced SS_readctl_3.24 to cover more options.
Until when SS_readctl_3.30 is available ( I hope, I can work on it late this year), I also suggest to call SS_readctl_3.24 directly.
… 2017/04/07 6:45、Ian Taylor ***@***.***>のメール:
Thanks for catching this @kellijohnson <https://github.com/kellijohnson>.
Since SS_readctl_3.30 hasn't yet been written ***@***.*** <https://github.com/yukio-takeuchi> has volunteered to work on it starting in September), I think the few users of these files (including @iagomosqueira <https://github.com/iagomosqueira>) have probably just called SS_readctl_3.24 directly rather than the wrapper function SS_readctl which is out of date so the change should take place there,
The consistency question is a big enough problem that I will post a separate issue (probably will be #140) about it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#138 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADOy1sX6zl4w8GbeRFb_QqLco_ZTtMr_ks5rtUDrgaJpZM4MwET8>.
|
I have SS_readctl_3.30 working for the few example files that I have available, based on Yukio's 3.24 code and called via SS_readctl. I'll talk to Ian Taylor about steps for getting it into R4SS. |
@nklaer, thanks for the good news. |
Functions from @nklaer have been added in commit adeba65 to the
The functions Please feel free to try these out and provide feedback.
|
@ChristineStawitz-NOAA brought up the point that some additional input checks for |
Just another thought that @kellijohnson-NOAA has mentioned and I also think may be a good idea. Currently, Anyone have thoughts on this subject? |
Having list element as NULL might be unnecessary. If you try to access a non-existent list element by name it already returns NULL. The only extra information I can see this giving are the names of possible elements, through |
@iagomosqueira, sorry I forgot to reply, but that is a good point. I agree that seeing the names of all possible elements may be helpful, but perhaps it doesn't add that much value. I had forgotten that trying to access a non-existent list element turns up NULL anyway. |
Just found in |
As usual, when working on an issue, other small fixes become apparent. While fixing the switched positions of the Prior SD and Prior Type columns assumed in Ideally, I think the name of the column should be changed to accurately reflect what it is, but I'm trying to figure out how to do this keeping backcompatibility in mind (see #306 ). I think there are several possibilities, depending on how much backcompatibility is desired (although both these solutions assume backcompatibility is only needed short term). Some ideas:
@iantaylor-NOAA or anyone else, thoughts? While a fairly trivial change, I think this is worth discussing because I imagine it will be applicable to other changes within r4ss in the future. |
I suspect that those who contributed earlier versions of I think relatively few people use of this function and since the status-quo method is clearly wrong, what I would do is simply fix it to have the correct label and trust that anyone impacted by the change (which might be truly nobody) will be able to quickly modify their code to adapt to the difference. My view of backward compatibility in the context of these functions is satisfied by maintaining compatibility with both 3.24 and 3.30 models, but I don't see a need to maintain consistency with earlier versions of r4ss that weren't correctly. |
Thanks, Ian - I will go ahead and change the column name and hope others (if any) will adapt. I suspect you are right that it will likely affect very few people, but I guess more care would be needed with functions that are likely used by others. |
I just wanted to comment that @nathanvaughan-NOAA and I are working on adding more options to SS_readctl_3.30 and SS_writectl_3.30. The goal is that these could successfully read and write any valid SS 3.30 model, (and we hope that it is not too ambitious!). If anyone else is also working on this, please let us know; perhaps we can find a way to collaborate. |
#138: add more capabilities to read and write SS control files
I am closing this issue because pull request #352 adds capabilities to read most 3.30 control files. Note there are likely some bugs because ctl file configuration varies greatly among models and there are many configurations that have not been tested. There may also be some features that do not yet work (search for |
Thanks @k-doering-NOAA and @nathanvaughan-NOAA for all these improvements. After today I'll be offline for the rest of the year, but can work on getting |
Developing read/write functions for control files seemed to be a very difficult task but @yukio-takeuchi managed to get it done. At this point, those functions only work for SS version 3.24. Developing functions for 3.30 isn't a top priority until users of 3.24 versions want to upgrade. This issue is to note that the 3.30 versions of these functions haven't yet been developed and to track progress if/when we choose to do so.
The text was updated successfully, but these errors were encountered: