Comments (5)
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.
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.
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.
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.
I cannot thank you enough for your prompt response and update!!
I will install the updated version
from ismn.
Related Issues (20)
- get_min_max_timestamp functions HOT 4
- how to read the cosmos, fr_aqui and sosmania data? HOT 4
- add read() function HOT 1
- Initializing ISMN_reader errors "INFO:root:no header:" on static_variables.csv files
- Filter depths by depth_from only HOT 3
- setuptools_scm conflicts with other environments HOT 1
- ismn_data.collection.get_nearest_station HOT 5
- multiple variables in Sensor.eval
- ids and ISMN_Interface.metadata.index does not match HOT 1
- Update citations.txt HOT 1
- 'ISMN_Interface' object has no attribute 'collection' HOT 2
- how to use "ISMN_interface" to load data from several download zip files? HOT 2
- no 'display' is found in 'docs/examples/interface.ipynb' HOT 2
- "orig_flag" in "ts" via "ismn_data.read" HOT 2
- No 'variable' in station '3.09' and min_depth/max_depth don't work HOT 14
- ISMN v1.2.0: error when reading dataset HOT 3
- station plot improvement
- handle invalid folder names HOT 1
- Store metadata as parquet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ismn.