-
Notifications
You must be signed in to change notification settings - Fork 103
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
Some Changes Made in Length of Season Dialog #9157
Some Changes Made in Length of Season Dialog #9157
Conversation
@MeSophie and @lilyclements this is excellent and nearly there already. And with a lovely bonus that you sort of forced me into! Just 1 simple improvement and one that may be a bit harder. @MeSophie if you make the current controls a bit neater, then I think there will be space within the current size of the dialog. The checkbox says End Day (Optional): If checked it opens an up-down with default 366, and can be any integer between 1 and 366. When that's checked the length value gives the E Now my suggestion, mainly for @lilyclements. I suggest we keep the length column as you have it now. And we add a further length column called the same as the length, but with _more added, e.g. diff_more above. This extra variable is not given if MORE is totally absent, i.e. there is no year where MORE is given.. I suggest that the
This is exciting! By the way I have not yet checked it works with multiple stations. I assume so, and that can come later. |
@MeSophie if you could make the length status into a factor, then I would approve now, with the other points coming in a new pull request. |
@lilyclements Could you please help me with the best way to convert length_status to factor.
|
@MeSophie fortunately you've overcomplicated it for yourself! This time, we don't need to worry about calling "dodoma_by_year" in a fancy way because we use that data frame in the dialog code already So, instead of
we can just do
|
@MeSophie I understand. Instead of running
We should run
This gives the name of the data frame which is linked to the However, this shouldn't be a problem in this instance because in the "Length of Season" dialog we have the "dodoma_by_year" (or the Moorings one) read in the selector. |
@lilyclements Sorry I realised my mistake a bit late as you had already read my message. I really complicated the code because the DataName in the Length dialog can be taken directly from the selector. |
@MeSophie all good! Glad you sorted it, but it's a good question nonetheless, and very observant for when this might occur in the Start/End of rains dialogs :) |
@rdstern The conversion of the length_status into a factor is resolved. Please have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MeSophie that's great. Just a trivial change for now:
Could you just make the label Length, so the fields for the variables are exactly below one another.
And could you move the Occurrence control up slightly, so the vertical spacing is the same.
@rdstern It is okay with the design now? I prefer to move the Length_status control a bit to the right to avoid a potential translation issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes Partly #9117
@rdstern @lilyclements By waiting the code for End of Rains dialog, I made some changes in Length of season dialog. Please have a look.