nansencenter / DAPPER

Data Assimilation with Python: a Package for Experimental Research
https://nansencenter.github.io/DAPPER
MIT License
348 stars 122 forks source link

Resolve #40 and demo for VL20 #45

Closed yumengch closed 3 years ago

yumengch commented 3 years ago

Aim

Add bib and demo for VL20

Resolve issue #40

Potential issue

patnr commented 3 years ago

I feel like the combo unpack_uqs and align_col are too complicated. I will have a look at it after this, to see if I can simplify them.

Here are my changes to improve tabulation of results. https://github.com/nansencenter/DAPPER/compare/cd47cd0..e9c5535 Note that there are further improvements in the output of tests/test_data.py.

The main implementation changes are

yumengch commented 3 years ago

Great work, Patrick!

Some comments:

patnr commented 3 years ago

Many thanks for the comments.

If this problem is limited within unpack_uq, I think we can simply ignore this.

It is contained within, yes, thanks to deepcopy. However, I changed this to vars(uq).copy() the most recent commit, which is maybe more explicit/safe solution.

don't generate 0.8770±0.0010 and2.0000±1.0000 when I specify decimals=4

Fixed in the latest commit. This fix was simple now that we don't have to worry about tabulate truncating zeros.

Regarding your TODO 3: validate

This is now gone, I believe. Not sure if a similar issue could exist. But it seems good enough for now.

yumengch commented 3 years ago

It looks great now. Thanks.