Git Product home page Git Product logo

Comments (5)

wpreimes avatar wpreimes commented on May 26, 2024

Hi @RY4GIT,
thanks for reporting, we are still updating the docs for this, there is no "collection" anymore in ISMN_Interface. It should be possible to access the networks directly via their name (e.g. ismn_data['SCAN'] to get the station data for SCAN). I will push another update soon. And simply calling ismn_data should print a representation of all networks that are loaded.

from ismn.

RY4GIT avatar RY4GIT commented on May 26, 2024

I see, thank you!
By slicing ismn_data.metadata (e.g. ismn_data.metadata[1][2] I was able to access metadata.

However, it wasn't possible to directly access the network data as you suggested.

ismn_data['SCAN']
Traceback (most recent call last):
File "C:\Program Files\JetBrains\Pycharm\PyCharm Community Edition 2020.2\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
TypeError: 'ISMN_Interface' object is not subscriptable

ismn_data.metadata['SCAN']
Traceback (most recent call last):
File "C:\Program Files\JetBrains\Pycharm\PyCharm Community Edition 2020.2\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
ValueError: no field of name SCAN

Also, do the functions iter_sensors and read_data work in a similar way with the current documentation?

from ismn.

wpreimes avatar wpreimes commented on May 26, 2024

Can you check what version of the package you have installed? I assume the problem is that you have installed the package with pip (i.e v0.4), the current master branch version is not yet released on pypi, therefore the documentation does not match to your code. Either install the new package (from github or wait until we pushed it on pypi) or look at the old docs https://ismn.readthedocs.io/en/v0.4/

from ismn.

wpreimes avatar wpreimes commented on May 26, 2024

We have released the new version on pypi. Feel free to open another issue if you run into errors with this. Feedback is really welcome!

from ismn.

RY4GIT avatar RY4GIT commented on May 26, 2024

I cannot thank you enough for your prompt response and update!!
I will install the updated version

from ismn.

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.