Time Shifting not working in Stat Analysis #2166
-
Hi: I am having a struggle trying to get time shifting to work in Stat Analysis. Previously, this was working from a version of METplus on the computer atmosphere. However, checking out the latest version of develop and main, it fails. The error I get is as follows: The offending line in the METplus configuration:MODEL1_STAT_ANALYSIS_LOOKIN_DIR = {OUTPUT_BASE}/CTREC/grid_stat/{init_end?fmt=%Y%m%d?shift=-86400},{OUTPUT_BASE}/CTREC/grid_stat/{init_beg?fmt=%Y%m%d} I tried pulling the version of METplus I have installed on atmosphere, and the error does not happen. Should time shifting work in the Stat Analysis wrapper? Configuration files: Christina |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
It looks like the time value is stored as a string instead of a datetime object. I am actually surprised that it used to work in a previous version, because from what I remembered the StatAnalysis wrapper was previously storing all of the additional time template values as strings. Which version of METplus is installed on atmosphere? This will require some code changes to properly store any date value as a datetime object instead of a string. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @CPKalb. I confirmed that there is a bug in the logic. I created issue #2168 to fix this. I made a fix off of the develop branch in bugfix_2168_develop_time_shift. Could you test that this fixes the issue for your use case? Also, do we need a bugfix for METplus 5.0 or is adding it for the upcoming 5.1.0 release sufficient? |
Beta Was this translation helpful? Give feedback.
Thanks, @CPKalb. I confirmed that there is a bug in the logic. I created issue #2168 to fix this. I made a fix off of the develop branch in bugfix_2168_develop_time_shift. Could you test that this fixes the issue for your use case? Also, do we need a bugfix for METplus 5.0 or is adding it for the upcoming 5.1.0 release sufficient?