gempy-project / gempy

GemPy is an open-source, Python-based 3-D structural geological modeling software, which allows the implicit (i.e. automatic) creation of complex geological models from interface and orientation data. It also offers support for stochastic modeling to address parameter and model uncertainties.
https://gempy.org
European Union Public License 1.2
941 stars 232 forks source link

facing error #886

Closed Varun019140 closed 2 months ago

Varun019140 commented 2 months ago

FileNotFoundError Traceback (most recent call last) Cell In[5], line 1 ----> 1 img = mpimg.imread('wells.png') 2 p2d = gpv.plot_2d(geo_model, show=False) 3 p2d.axes[0].imshow(img, origin='upper', alpha=.8, extent=(0, 791, -582, 0))

File ~\anaconda3\lib\site-packages\matplotlib\image.py:1561, in imread(fname, format) 1554 if isinstance(fname, str) and len(parse.urlparse(fname).scheme) > 1: 1555 # Pillow doesn't handle URLs directly. 1556 raise ValueError( 1557 "Please open the URL for reading and pass the " 1558 "result to Pillow, e.g. with " 1559 "np.array(PIL.Image.open(urllib.request.urlopen(url)))." 1560 ) -> 1561 with img_open(fname) as image: 1562 return (_pil_png_to_float_array(image) 1563 if isinstance(image, PIL.PngImagePlugin.PngImageFile) else 1564 pil_to_array(image))

File ~\anaconda3\lib\site-packages\PIL\ImageFile.py:105, in ImageFile.init(self, fp, filename) 101 self.decodermaxblock = MAXBLOCK 103 if is_path(fp): 104 # filename --> 105 self.fp = open(fp, "rb") 106 self.filename = fp 107 self._exclusive_fp = True

FileNotFoundError: [Errno 2] No such file or directory: 'wells.png'

SpongeGirl commented 2 months ago

I think this is what you need. image

javoha commented 2 months ago

See #881