Coder Social home page Coder Social logo

Comments (4)

louis-richard avatar louis-richard commented on September 21, 2024

Dear Zhang Chi,
Indeed the way to setup the database path is different from that used in irfu-matlab. In the current version of pyrfu, you need to pass and extra argument to the mms.get_data() routine (see https://pyrfu.readthedocs.io/en/latest/_generated/pyrfu.mms.get_data.html).
Hope this will help.

from irfu-python.

zhang-chi-IGGCAS avatar zhang-chi-IGGCAS commented on September 21, 2024

Dear Richard,
there are stil some problems in here.
should we revise the data path in config.py?

CONFIG = {"local_data_dir": "F:/MMS/mms_db/data/",
'mirror_data_dir': None, # e.g., '/Volumes/data_network/data/mms'
'debug_mode': False,
'download_only': False,
'no_download': False}

or in the get_data.py?

def get_data(var_str, tint, mms_id, verbose: bool = True,
data_path='F:/MMS/mms_db/data/'):

I have tried both of them, but still no files can be found.

from irfu-python.

louis-richard avatar louis-richard commented on September 21, 2024

Dear Zhang Chi,
I uploaded the version 2.3.9 to the python index. This new version contains a routine, named mms.db_init, that setup the path in the configuration file (config.json). Hence, you don't need to give the data_path to the mms.get_data anymore.

Besides, if I'm correct you are using a Windows machine, so I think that the problem you are facing may be due to the different path convention on Windows. You should check the path using os.path.normpath('F:/MMS/mms_db/data/') == 'F:/MMS/mms_db/data/'. Note that the new mms.db_init uses os.path.normpath, so in principle you will not face such problem anymore.

Hope this will work fine.

from irfu-python.

zhang-chi-IGGCAS avatar zhang-chi-IGGCAS commented on September 21, 2024

Dear Richard,
it works well now, thanks a lot!
This code will significantly help us to analyze the data!

best regards

from irfu-python.

Related Issues (11)

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.