Comments (4)
Yes, the Pydantic parser for the schema is really not useful in figuring out where the problem is. I need to make that more user-friendly for yadg-5.0
. There shouldn't be any problem using schema_version: "4.0.0"
with the newest version of yadg
for now, apart from getting one warning about out-of-date schema.
There are several breaking changes between the DataSchema-4.0 and DataSchema-4.2. Let me know if the docs are not helpful enough to make the switch between the two schemas.
from yadg.
Thank you for your quick reply, I will try to work with 4.0.0
FYI:
I got
Eranges.append(E_range_max - E_range_min)
TypeError: unsupported operand type(s) for -: 'str' and 'str'
in eclabmpt.py
l. 317 due to my (german) decimal seperator "," which was not parsed properly. I fixed it by addding
float(el.get("E_range_max", float("inf")).replace(',','.'))
to l. 315 and 316 - however, there might be a more elegant way. :) Propbably, this problem might araise with at other places as well.
My .mpt
file contains 154 for the value of I_range
which results in
ValueError: element '154' for parameter 'I_range' not understood.
in eclabtechniques.py
in l. 1039. I was not able to reconstruct why my Biologic exports this value and will further investigate.
from yadg.
I didn't know mpt
files were localised. That's a bug. Could you please upload the mpt
(and ideally the mpr
, if you have it) in a new issue? I'll have to think of a solution without having to replace every float()
call, and it would be good to have a test file. It should also be possible to figure out the appropriate I_range
.
I made a note for myself that the DataSchema validation could be improved for yadg-5.0
, and I wouldn't mind closing this one in favour of #94 if that's OK with you.
from yadg.
Yes, closing this issue ist fine. I will create .mpr
and .mpt
files with my equipment that I can share and open a new issue for potential localisation problems.
from yadg.
Related Issues (20)
- Implement `locale` support for text file types. HOT 1
- `qftrace`: Rename columns
- `datagram` format `DataGram`-schema for `yadg-5.0`
- `xr.concat`: Dealing with conflicting metadata in `attrs`
- nvm
- Harcoded String Handling HOT 4
- loss of <I> column in the converted json from the mpr file in GCPL technique using yadg 4 HOT 5
- Wrong Filename extension in extract subcommand? HOT 1
- Rework GitHub Actions HOT 1
- Implement parsing of `ezchrom.dat` files HOT 3
- Error in parsing `.mpr` files with `CA` technique: HOT 1
- Implement support for `CVA` technique
- Rework uncertainties for `yadg-5.0`
- `chromtrace`: Valve position is stored per-step as opposed per-timestep HOT 1
- Question: seeing the full parsed output HOT 1
- Bug?: parser errors out HOT 3
- More verbose DataSchema parsing HOT 1
- Potential localization problem with parsing *.mpt files HOT 10
- `electrochem`: Analyzing executables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yadg.