rivm-syso / OURS

Dutch calculation method for railway vibrations
European Union Public License 1.2
3 stars 2 forks source link

Error No ground data available #8

Open PH0TRA opened 2 years ago

PH0TRA commented 2 years ago

Ours 2.0 stops when it tries to calculate the ground module: Error 8-2-2022 17:50:29 Error in module "cpt_tool.py". Exit code: 0! It appears on my own input xml's but not on the default input.xml brocptvolledigeset.gpkg is installed in the right directorry

vArup commented 2 years ago

I'm having this problem too... were you able to fix it?

ArnaudYK commented 2 years ago

If it works on the default input.xml it could be that there is a problem with a cpt. We are busy with the release of version 2.1. In the mean time please download a new cpt_tool.py from this repository and replace the one that was installed.

B2BWild commented 2 years ago

Replacing cpt_tool.py did not work. This makes sense as the file in the repository is not different from the one in the install folder. Replacing bro.py with the one from the repo did work however!

raphuel commented 2 years ago

My version worked before, but now I receive this error message: "Error in script "cpt_tool.py" during calculation. Input JSON is now located in "C:\Users\d08334\AppData\Local\Temp\OURS_11196\"."

Replacing cpt_tool.py and bro.py did not work, most likely since dates/versions are exactly the same.

Any ideas on this?

ArnaudYK commented 2 years ago

Hi.

The best way to get relevant feedback is to run the cpt_tool seperatly. That will give more specific error messages. The way to do this is as follows:

Run OURS as before Go to the location shown in error box (TEMP\OURS_XXXX) Copy the file input.json to some other location Start a command prompt (cmd.exe) Go to you ours installation directory and subdirectory Python Run: Python.exe cpt_tool.py -I [inputfilepath]\input.json -o [outputpathname]

In your console you may be able to see the error messages. Copy these and post them.

raphuel commented 2 years ago

Hi Arnoud, is this what you asked for:

C:\Program Files\RIVM\OURS-UI 2.0\python>Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test\" Traceback (most recent call last): File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 389, in analysis(props, methods, settings, args.output, args.plots) File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 277, in analysis log_file = log_handler.LogFile(output, idx) File "C:\Program Files\RIVM\OURS-UI 2.0\python\log_handler.py", line 11, in init os.makedirs(output_folder) File "C:\Program Files\RIVM\OURS-UI 2.0\python\python310.zip\os.py", line 225, in makedirs OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Users\d08334\Downloads\Python test"'

I attached the screenshot as well. Screenshot 2022-10-07 112407 Python

ArnaudYK commented 2 years ago

Almost. Please do not use the last \ The command in de text is correct, so is is: Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test" instead of: Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test\ "

(used a trailing space because github removes the \ if it is followed by a " )

raphuel commented 2 years ago

Ah, this gives another output Arnoud:

C:\Program Files\RIVM\OURS-UI 2.0\python>Python.exe cpt_tool.py -i "C:\Users\d08334\Downloads\Python test\input.json" -o "C:\Users\d08334\Downloads\Python test" WARNING:root:Checking if index exists, if index does not exist it should be created, this may take a while... WARNING:root:Found 121 CPTs in intersecting polygons. WARNING:root:Found 0 CPTs in circle. Traceback (most recent call last): File "C:\Program Files\RIVM\OURS-UI 2.0\python\pandas\core\indexes\base.py", line 3621, in get_loc return self._engine.get_loc(casted_key) File "pandas_libs\index.pyx", line 136, in pandas._libs.index.IndexEngine.get_loc cpdef get_loc(self, object val): File "pandas_libs\index.pyx", line 163, in pandas._libs.index.IndexEngine.get_loc return self.mapping.get_item(val) File "pandas_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'localFriction'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 389, in analysis(props, methods, settings, args.output, args.plots) File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 307, in analysis jsn, is_jsn_modified = read_cpt(data, methods_cpt, settings_cpt, output, properties, plots, idx, File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_tool.py", line 191, in read_cpt data_quality = cpt.parse_bro(cpt_BRO[idx_cpt], File "C:\Program Files\RIVM\OURS-UI 2.0\python\cpt_module.py", line 104, in parse_bro if all(cpt["dataframe"][k] == 0): File "C:\Program Files\RIVM\OURS-UI 2.0\python\pandas\core\frame.py", line 3506, in getitem indexer = self.columns.get_loc(key) File "C:\Program Files\RIVM\OURS-UI 2.0\python\pandas\core\indexes\base.py", line 3623, in get_loc raise KeyError(key) from err KeyError: 'localFriction'

Again, I attached a screenshot. Screenshot 2022-10-07 114917 Python 2

ArnaudYK commented 2 years ago

Did you download the more recent bro.py? image

Copy it to the python subdirectory under OURS. This version is slightly newer than the release. (we are preparing a new release with an updated building module). This bro.py should check if all required columns are there (in your case it seems one is missing).

raphuel commented 2 years ago

I did Arnoud, but the file is of the exact same date and time as the most recent one. Does not make a difference.

ArnaudYK commented 2 years ago

Can you double check. image The red lines snot be there and the green lines should be in the bro.py.

If this is the same please attach the input.json and I will try to find out what is wrong.

raphuel commented 2 years ago

Hmmm... the red lines are there. input.zip

ArnaudYK commented 2 years ago

Try this one then. It should contain the green lines. bro.zip

raphuel commented 2 years ago

Hey Arnaud, this seems to have solved the problem. Thanks..

On Fri, 7 Oct 2022 at 12:28, ArnaudYK @.***> wrote:

Try this one then. It should contain the green lines. bro.zip https://github.com/rivm-syso/OURS/files/9733117/bro.zip

— Reply to this email directly, view it on GitHub https://github.com/rivm-syso/OURS/issues/8#issuecomment-1271414687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7MIEVKE23TVBDTDPQGKCLWB73NHANCNFSM5N3A43JA . You are receiving this because you commented.Message ID: @.***>