Correct usage of unknown values in dREL code#260
Conversation
jamesrhester
left a comment
There was a problem hiding this comment.
I suppose explicitly setting 'missing' (the default value anyway) is OK here to simplify transformation of the dREL - but the value will be 'missing' if dREL fails to set it to something else.
|
On second though, it might be better to change the Also, this is the first dREL snippet which I have seen that modifies the definition (units) for each entry in the loop, i.e. different values of the same data item in the same CIF file will get different units. I guess this is allowed? |
|
First time I've seen it as well. But that is the point of these |
1a5489b to
2335944
Compare
|
I changed the unknown values to "unspecified" since it better describes the situation.
I have encountered 1) dREL that calculates row dependent values and 2) dREL that modifies the definition of an item from a Set category based on the values of other items (most often measurement units are modified), but not the combination of 1) and 2) as in this case. I was simply surprised, that's all. |
The "unknown" keyword is not supported by dREL and the units are better described as unspecified than unknown.
2335944 to
3030c9e
Compare
See issue COMCIFS/dREL#20 for more details.