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

Can't upload the Data File #135

Closed
hussite88 opened this issue Nov 10, 2023 · 10 comments
Closed

Can't upload the Data File #135

hussite88 opened this issue Nov 10, 2023 · 10 comments

Comments

@hussite88
Copy link

Hi!
Let me start by saying thank you, for such an amazing tool!

I've followed the instructions of the user manual, but can't upload the data file I prepared to run on the tool. I get the following message:

"Something went wrong when opening data. Please double check."

I tried with the files in .dbf and .csv and neither works. The weird thing is that I tried with other .dbf files that I have and those ones are uploaded without any problem, even though they lack de x and y coordinates.
Is there some other known reasons why the data file would not upload? like language, to many fields, or something like that?

Thanks again! Great job!!

@martinfleis
Copy link
Member

Could you provide the code you have used and the full traceback? It is not clear what has happened and where.

@hussite88
Copy link
Author

hussite88 commented Nov 11, 2023

Could you provide the code you have used and the full traceback? It is not clear what has happened and where.

This is the file

@martinfleis
Copy link
Member

Could you provide the code you have used and the full traceback?

Thanks but I asked for code and the traceback (complete error message), not CSV with data.

@hussite88
Copy link
Author

Sorry, I'm a little lost at how to access the code and traceback. All I see is the following message:

image

@jGaboardi
Copy link
Member

@hussite88 Are you using GeoDa or some GIS software? This does not appear to be an issue with mgwr. Is there any code you are using that touches pysal/mgwr itself?

@hussite88
Copy link
Author

hussite88 commented Nov 11, 2023

I'm using the MGWR 2.2 on it's own.

I did use QGIS to work the data and prepare the .dbf file. But when I'm running the MGWR tool everything else is closed.

EDIT: I used QGIS to create de centroids of my polygons, and to create the x and y coordinate fields. Since I am able to open other files. But I'm trying to figure out what is the parameter I might not be respecting.

@jGaboardi
Copy link
Member

So it seems like the problem might be with QGIS, not mgwr? At any rate, there really isn't a way we can help unless a MWE code snippet is provided.

@martinfleis
Copy link
Member

I think that @hussite88 is using this software https://sgsup.asu.edu/sparc/multiscale-gwr which is probably an interface to mgwr but that interface does not live in pysal/mgwr. The issue needs to be reported somewhere else but I am not sure where. @TaylorOshan @Ziqi-Li ?

@hussite88
Copy link
Author

hussite88 commented Nov 11, 2023 via email

@Ziqi-Li
Copy link
Member

Ziqi-Li commented Nov 11, 2023

@hussite88 Thanks for ordering! Anyway, the data seems to be quite messy and have lots of odd semicolons, and it doesn't look like a numerical structured table at least from my side.
image
If you clean your data either using Excel, R or python and export it as a CSV, then try it in MGWR, it should work.

@Ziqi-Li Ziqi-Li closed this as completed Nov 28, 2023
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

4 participants