-
Notifications
You must be signed in to change notification settings - Fork 7
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
Data importer - parsing units should be case sensitive #2019
Comments
well that's ok. We cannot have it both ways. So when you import, it's your job as a user to verify that units and dimensions are recognized properly. |
Yes but then I would vote for having it case-sensitive. Otherwise there is no way to import anything other than |
use |
The most flexible way:
|
I think this is the way it's actually implemented. First case sensitive, then case insensitive |
But then |
It is not an issue of unit recognition but of automatically detecting the correct dimension. So (if I am not mistaken by what Pavel describes), in the calculation of the dimension from a unit given in an excel file: we are not trying case sensitive first, we just get the first dimension that has such a unit. In Pavel's case with |
Actually implementing this would be a fix that would keep the correct behaviour also for #1949 |
I think it would be better to get the dimension from unit via |
@Yuri05 yeap this is a better solution to avoid code duplication - and it would have exactly the same result. If no objections I would implement this. |
No objections. |
Yes. I thought this was the code used indeed. Let's update |
* initial implementation * incomplete unit test * correction * adding test * test corrected * creating new functions * test corrected
This is NOT fixed the unit is "µm", which should be recognized as the dimension "Length". however, this is being recognized as "Concentration (molar)", probably because it thinks it is "µM" |
Reopened because currently the fix only works for units in the headers, but the behaviour is still the old faulty one when the unit comes from the content of a column. |
* initial not building fix with helper * existing test are green * avoiding code duplication * correction * resharper code cleanup * adding integration test * removing redundant function
A while ago I created an issue that parsing of units during import should be case-insensitive #1949
Unfortunately, I have a case where this leads to wrong dimension - when trying to import
µm
of the dimensionLenght
, the importer regodnizes it asµM
of the dimensionConcentration (molar)
.The text was updated successfully, but these errors were encountered: