Coder Social home page Coder Social logo

Cannot import relative imports about gprmax HOT 3 CLOSED

gprmax avatar gprmax commented on May 29, 2024
Cannot import relative imports

from gprmax.

Comments (3)

craig-warren avatar craig-warren commented on May 29, 2024

Hi IIker, It sounds like you are either:

  • not running gprMax from the top-level directory, i.e the directory with setup.py, README.rst etc..
  • or are not running gprMax as a module, i.e with the '- m' flag.

'python3 -m gprMax inputfile'

Can you check you are doing these things.

from gprmax.

iliTheFallen avatar iliTheFallen commented on May 29, 2024

Hello Professor;

Thank you for your help. I have fixed the problem; but now whenever I want to display B scan; it throws another exception though I do not have any problem when i display A scan. It seems the index into an array is out of array' s bound :

File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/mesut/Documents/gprMax/tools/plot_hdf5_Bscan.py", line 41, in
plt.imshow(data, extent=[0, data.shape[1], data.shape[0]*f.attrs['dt'], 0], interpolation='nearest', aspect='auto', cmap='seismic', vmin=-np.amax(np.abs(data)), vmax=np.amax(np.abs(data)))
IndexError: tuple index out of range

Kind Regards,
Ilker

from gprmax.

craig-warren avatar craig-warren commented on May 29, 2024

Hi IIker, Glad you fixed the original problem. Can you start a new issue for your B scan problem and attach or paste the input file and command you are using the run the model. I'm closing this issue.

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.