Giter VIP home page Giter VIP logo

eclabfiles's People

Contributors

vetschn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eclabfiles's Issues

"Error: 51" when reading .mpr file (technique=CVA)

As mentioned in the previous issue, I am writing a .mpr reader for ixdat making use of eclabfiles, but get errors on many of the files.
For CVA, I get the error "Error: 51". I get this same error whether using
data, meta = eclabfiles.process("05_O2dose_COox_02_CVA_C01.mpr")
or
df = eclabfiles.to_df("05_O2dose_COox_02_CVA_C01.mpr")

The file is here, along with plots of the data (made with ixdat.Measurement.read("05_O2dose_COox_02_CVA_C01.mpt").plot() as demo'd in "plot_data.py"):
https://www.dropbox.com/scl/fo/cl0cnovmik7pjgcls2l9h/h?rlkey=v93snkrt2rq3uf95au26qdi0o&dl=0

Happy for any help or suggestions!

"Error: field '(Q-Qo)' occurs more than once" when reading .mpr file (technique=CA)

Hi @vetschn ,

Great to see this package!

I am the main author of an open source project "ixdat" which also includes many python parsers for experimental data formats, including Biologic's .mpt. I'm trying to add a .mpr parser which makes use of eclabfiles for parsing the binary file.

eclabfiles works for some files but not others. For details, see this PR: ixdat/ixdat#134

Briefly, it seems to work for LSV measurements, but not CA or CVA. It's a different error message, so I'll put CA here and CVA in a separate issue.

The error I get is "Error: field '(Q-Qo)' occurs more than once". I get this same error whether using
data, meta = eclabfiles.process("05_O2dose_COox_04_CA_C01.mpr")
or
df = eclabfiles.to_df("05_O2dose_COox_04_CA_C01.mpr")

The file is here, along with plots of the data (made with ixdat.Measurement.read("05_O2dose_COox_04_CA_C01.mpt").plot() as demo'd in "plot_data.py"):
https://www.dropbox.com/scl/fo/cl0cnovmik7pjgcls2l9h/h?rlkey=v93snkrt2rq3uf95au26qdi0o&dl=0

Happy for any help or suggestions!

Error in def _process settings, eclabfiles does not support new ec lab data files

Hi,

after updating EC Lab, the data are not supported anymore in eclabfiles library. I tried to fix it on my own, but I could not manage it.

Whenever I try to process new EC Lab data, it shows me following error message:

File ~\AppData\Roaming\Python\Python311\site-packages\eclabfiles\mpr.py:504 in _process_settings
technique, params_dtype = technique_params_dtypes[data[0x0000]]

KeyError: 48

I checked data structure of old EC Lab data and there are some differences. Could you please help me with this problem and tell me how the library should be changed accordingly?

Thanks a lot in advance. By request I can provide a raw data.

All the best:)

mpr files

I have a question about processing mpr files.

  1. def process:
    module_header_dtype = np.dtype([("short_name", "|S10"), ("long_name", "|S25"), ("length", "<u4"), ("version" , "<u4"), ("date", "|S8")])
    in this function, could you explain the purpose of this line?

  2. def _process_data:
    n_datapoints = _read_value(data, 0x0000, "<u4")
    n_columns = _read_value(data, 0x0004, "|u1")
    column_ids = _read_values(data, 0x0005, "<u2", n_columns)
    when I run this code, only the first 21 columns are converted. How can I convert all of the flag_columns and data_columns?

thank you

Reading mpt or mpr files with comma as decimal

Hallo Nicolas,

I want to read mpt or mpr Files 'to_df' but due to the german system we are working on our decimal separators are comma. Is there a way to replace all comma with dots during import.

Example:
df = eclabfiles.to_df(filename)

My df type for a comma value is a tuple. For example I have got a value of 2,5V in my df the value is 2,5 but as [2, 5]. Do I need to combine all tuples and convert them to float?

No longer opening files with EC-Lab 11.50

I think there were changes with the recent update to eclab that affected other things as well as this library... This is the error I get.
Traceback (most recent call last): File "MY_FILE_PATH/FILE.py", line 44, in <module> data, meta = ecf.process(file_path) ^^^^^^^^^^^^^^^^^^^^^^ File "MY_FILE_PATH/FILE.py", line 75, in process return mpr.process(fn, encoding=encoding) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "MY_FILE_PATH/FILE.py", line 686, in process settings, params = _process_settings(module_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "MY_FILE_PATH/FILE.py", line 504, in _process_settings technique, params_dtype = technique_params_dtypes[data[0x0000]] ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ KeyError: 48

I can still process files made with previous versions of ec lab.
Sorry if there's not enough info -- I can provide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.