Coder Social home page Coder Social logo

Comments (4)

craig-warren avatar craig-warren commented on June 8, 2024

Thanks for spotting this.

I've corrected the plot_Bscan module and the docs should be updated shortly.

from gprmax.

rajathkmp avatar rajathkmp commented on June 8, 2024

@craig-warren

There is still an error

Rajaths-MacBook-Pro:gprMax rajathkumarmp$ python3 -m tools.plot_Bscan cylinder_Bscan_2D_all.out Ex
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/rajathkumarmp/Desktop/gprMax/tools/plot_Bscan.py", line 37, in <module>
    availablecomponents = list(f[path].keys())
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2579)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2538)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/h5py/_hl/group.py", line 164, in __getitem__
    oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2579)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2538)
  File "h5py/h5o.pyx", line 190, in h5py.h5o.open (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/h5o.c:3551)
KeyError: 'Unable to open object (Component not found)'

The error is in f[path] it is an incorrect command.

from gprmax.

craig-warren avatar craig-warren commented on June 8, 2024

I can't reproduce this error. Can you confirm that you have the 5022dd23 version of the plot_Bscan module and the sequence of steps you took:

python -m gprMax user_models/cylinder_Bscan_2D.in -n 60
python -m tools.outputfiles_merge user_models/cylinder_Bscan_2D 60
python -m tools.plot_Bscan user_models/cylinder_Bscan_2D_all.out Ex

from gprmax.

rajathkmp avatar rajathkmp commented on June 8, 2024

Working perfect now. Updated it to the latest version.

from gprmax.

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.