#๐Ÿ”’ Segmentation Fault in Python

7 messages ยท Page 1 of 1 (latest)

teal zenith
#

Hi Everyon.

I am using an open-source model in Python called LISFLOOD. While running it, I encountered a segmentation fault. Upon investigation, I traced the error to a line that reads a NetCDF file using the xarray package. Here is the relevant code (https://github.com/ec-jrc/lisflood-code/blob/master/src/lisflood/global_modules/netcdf.py):

ds = xr.open_mfdataset(
data_path, engine='netcdf4',
chunks={'time': time_chunk}, combine='by_coords',
mask_and_scale=True
)
This code is supposed to read seven files. I am running the code on an HPC system where I can allocate cores and memory. I would like to understand what could be causing this error.

Please help me.
Thank you!

stoic arrowBOT
#

@teal zenith

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

past prawn
#

What's it doing when it blows up?

teal zenith
#

What do you mean ?

past prawn
#

What appears to be happening in your program when the segmentation fault occurs?

stoic arrowBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.