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

Simulation Example fail #66

Open
tsugiharu opened this issue Aug 16, 2022 · 4 comments
Open

Simulation Example fail #66

tsugiharu opened this issue Aug 16, 2022 · 4 comments

Comments

@tsugiharu
Copy link

tsugiharu commented Aug 16, 2022

Hi all, I just fired up Julia for the first time. My goal is to use the JEMSS package for research purposes.

First of all,I could install and run JEMSS.

But,When I ran the Auckland City’s data with the file name unchanged but replaced it with data from a Japanese city, I got the following error.

julia> using JEMSS

julia> include(joinpath(JEMSS.jemssDir, “example/example.jl”))

Loading sim.

ERROR: LoadError: AssertionError: 1 <= ix && (ix <= grid.nx && (1 <= iy && iy <= grid.ny))

Stacktrace:

[1] locationToGridIndex(map::Map, grid::Grid, location::Location)

@ JEMSS C:\Users\natsuhikohara.julia\packages\JEMSS\3snbw\src\types\grid.jl:23

[2] findNearestNode(map::Map, grid::Grid, nodes::Vector{Node}, location::Location)

@ JEMSS C:\Users\natsuhikohara.julia\packages\JEMSS\3snbw\src\types\grid.jl:47

[3] initSim(configFilename::String; allowResim::Bool, createBackup::Bool, allowWriteOutput::Bool, doPrint::Bool)

@ JEMSS C:\Users\natsuhikohara.julia\packages\JEMSS\3snbw\src\run_config.jl:293

[4] initSim(configFilename::String)

@ JEMSS C:\Users\natsuhikohara.julia\packages\JEMSS\3snbw\src\run_config.jl:39

[5] top-level scope

@ C:\Users\natsuhikohara.julia\packages\JEMSS\3snbw\example\example.jl:4

[6] include(fname::String)

@ Base.MainInclude .\client.jl:451

[7] top-level scope

@ REPL[6]:1

in expression starting at C:\Users\natsuhikohara.julia\packages\JEMSS\3snbw\example\example.jl:4

Any help to fix this or to increase my understanding is highly appreciated.

@tsugiharu
Copy link
Author

To be honest, I don’t know how to describe the details because I have too little programming knowledge.

The Auckland example could be run.

I think it could be that something is wrong with the configuration for Japanese cities, e.g. that some grid data couldn’t be loaded.

There is a CSV that specifies latitude and longitude, but I am guessing that this is not being entered properly.

https://github.com/uoa-ems-research/JEMSS.jl/blob/master/data/cities/auckland/models/1/maps/map_1.csv

I tried typing the following here and it did not work.

xMin xMax yMin yMax xScale yScale

141.142 141.494 42.936 43.219 88.99 111.32

@samridler
Copy link
Collaborator

samridler commented Aug 16, 2022 via email

@samridler
Copy link
Collaborator

samridler commented Aug 16, 2022

The map also needs to be large enough to include all calls, hospitals, and stations. In your case the assertion error occurs when adding one of the hospitals.

@tsugiharu
Copy link
Author

Dear Sam,
I appreciate your quick reply and support.
I will try again, taking into account the points you have taught me.

If possible, could you please tell me the procedure for applying this simulation package to other cities?

I'm a Japanese FireFighter and graduate student for Informatics at Kyoto University.

If we could add Japanese cities as well as Edmonton, Manhattan, and Utrecht, we believe we could prove the usefulness of the Medical Priority Dispatch System.

In Japan, the introduction of Medical Priority Dispatch System has not progressed due to fear of under-triage, and there is an urgent need to clarify the required accuracy of call triage through simulation.

Currently in Japan, the demand for ambulance has increased and is becoming a major problem, partly due to covid-19.

Your simulation package may help save the Japanese people and medical professionals.

Japan logs record cases of ambulances struggling to find hospitals | The Japan Times.pdf

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