Coder Social home page Coder Social logo

Comments (8)

keesh-elucid avatar keesh-elucid commented on August 12, 2024

We are wondering if there has been any progress on "Still a troublesome Linux issues raw_file.instrument_methods_count" ?
thx
[email protected]

from fisher_py.

dowerner avatar dowerner commented on August 12, 2024

Dear @keesh-elucid

Sorry for the very late reply. Github still does not forward notifications to me. It seems to me that the problems you are experiencing are related to the raw file you are trying to access. I was unable to reproduce those issues with the raw files I use for testing.
If you send me a similar raw file without critical data I may be able to debug the issue in detail. As an alternative I can implement a fallback that just ignores the instrument_methods_count that cannot be read from your files.

Let me know how you want to proceed,

Cheers Dominik

from fisher_py.

dpsmca avatar dpsmca commented on August 12, 2024

Hi @dowerner,

In the fisher_py fork I created for our project, I created a bug/instrument_methods_count branch and created a test_data directory inside the examples directory -- it should be accessible here. It contains two small raw files. Both of those files cause the InstrumentMethodsCount crash when I run raw_file_reader_example.py on them, using Mac or Linux.

from fisher_py.

dowerner avatar dowerner commented on August 12, 2024

Finally, I had the chance to test your files using a Linux system (WSL - Ubuntu 20.04 on Windows 10). It turns out that the problem occurs for all .raw files on Linux but not on Windows. Sadly, the issue is situated within the .NET binaries (provided to us by ThermoFisher) and not within the Python code. What I can offer is to implement a fallback that just returns "None" if the count cannot be extracted, obviously this won't do you much good if you need this parameter. Hopefully, we can replace the DLLs in the future so it works properly on all platforms.

from fisher_py.

dowerner avatar dowerner commented on August 12, 2024

The fix is now implemented in version 19, feel free to open a new issue if anythin else pops up (meanwhile I fixed the github notification issue on my side 👍 )

from fisher_py.

keesh0 avatar keesh0 commented on August 12, 2024

So does your fix address the following?
So, I created a C# only version of my small method.
It ran fine on Linux.
rawFile.InstrumentMethodsCount // OK
rawFile.GetInstrumentMethod(i) // OK
But, the Python wrapper crashed.

from fisher_py.

dowerner avatar dowerner commented on August 12, 2024

To be honest I did not run a C# example. I assumed pythonnet would invoke the offending properties and methods similar to the .NET runtime in C#. If you have an idea how to fix this I'll gladly have a look. As it stands I don't know how to fix it in fisher_py.

from fisher_py.

keesh0 avatar keesh0 commented on August 12, 2024

Sure, let me check with my colleague.
thx e.-

from fisher_py.

Related Issues (12)

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.