Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when compile slugging.py #1

Open
farhantandia opened this issue May 20, 2018 · 1 comment
Open

error when compile slugging.py #1

farhantandia opened this issue May 20, 2018 · 1 comment

Comments

@farhantandia
Copy link

farhantandia commented May 20, 2018

hey bro, i just try simulate ur project , but in slugging.py there is error like this

File "slugging.py", line 367, in
cvh = read_csv(mname + '_convergence.csv', header=0, index_col=0, squeeze=True)
File "/usr/local/lib/python3.6/dist-packages/pandas/io/parsers.py", line 709, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.6/dist-packages/pandas/io/parsers.py", line 449, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/lib/python3.6/dist-packages/pandas/io/parsers.py", line 818, in init
self._make_engine(self.engine)
File "/usr/local/lib/python3.6/dist-packages/pandas/io/parsers.py", line 1049, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python3.6/dist-packages/pandas/io/parsers.py", line 1695, in init
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 402, in pandas._libs.parsers.TextReader.cinit
File "pandas/_libs/parsers.pyx", line 718, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: File b'LSTM_i1234567_o9_convergence.csv' does not exist

what's the problem suppose to?
thankyou

@nikolai-andrianov
Copy link
Owner

Hi, there are 2 modes of running the script - forecasting the slugging process using a variable number of pressure readings (1), and plotting the previously saved results (2). These 2 modes are switched by setting the variable rf on line 305 to true or false, respectively. Now in the script rf = false, so the code looks for LSTM_i1234567_o9_convergence.csv and does not find it (this is your error message).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants