GithubHelp home page GithubHelp logo

Comments (9)

ctroupin avatar ctroupin commented on July 18, 2024 1

Yes, v3.3.0. I think I can almost isolate the error with numba. I'm preparing a MWE.

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024 1

I thought a little bit about that, but i haven't quick/clean answer. I thought at this point the quickest solution is to load a regular grid(py-eddy-tracker meanings).
Another hack could be after loading grid

# When handler is create, no grid variable is loaded, you needs first to use 'grid' method to populate 'vars'
h.grid('XE')
# Manual transpose
h.vars['XE'] = h.vars['XE'].T

from py-eddy-tracker.

ctroupin avatar ctroupin commented on July 18, 2024 1

Hi Antoine, I though I had replied,
so thanks for the last bit of code, I'm trying to finish it now,
(had to stop working on this for the last two weeks).

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

Could you specify numba version?

from py-eddy-tracker.

ctroupin avatar ctroupin commented on July 18, 2024
Name: numba
Version: 0.51.1
Summary: compiling Python code using LLVM
Home-page: https://numba.github.com
Author: Anaconda, Inc.
Author-email: [email protected]
License: BSD
Location: /home/ctroupin/Software/PythonEnvs/EddyMitchell/lib/python3.8/site-packages/numba-0.51.1-py3.8-linux-x86_64.egg
Requires: llvmlite, numpy, setuptools
Required-by: pyEddyTracker

Edit: I've upgraded to 0.52, same result.

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

ok,
Did you use a py-eddy-tracker up to date ?

from py-eddy-tracker.

ctroupin avatar ctroupin commented on July 18, 2024

OK all fixed, I don't know exactly what failed by probably not numba.

Now I just need to understand why the coordinates are mixed up, but it's cool to get results at the end.
eddytrack

from py-eddy-tracker.

AntSimi avatar AntSimi commented on July 18, 2024

I think several issues come from hack of RegularGridDataset.
In this specific case, i think i know reasons.
To know if software need to transpose grid in case of RegularGridDataset, we look at dimensions order of grid. That's good when you have a grid which are function of 1D array coordinates, but in your case i think this analyse fail due to coordinates are function of 2 dimensions.

from py-eddy-tracker.

ctroupin avatar ctroupin commented on July 18, 2024

Yes, that totally makes sense.
Is there any property of the grid class that I could use to ensure the transpose if enabled or disabled?

from py-eddy-tracker.

Related Issues (20)

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.