Closed MElhagaly closed 1 year ago
Sorry for the issues -- your original script works fine for me.
But I think I recognise the cause of your errors, and they have been fixed -- I"ll try to get a new version pushed to gitHub today.
A few notes:
If weathering is turned on , then you need a water and waves object added to the model.
and you should be able to run as is with a "non-weathering" elements, that is, don't specify a substance:
spill = point_line_release_spill(num_elements=100,
start_position=(-70.911432,
42.369142, 0.0),
release_time=start_time,
end_release_time=end_time)
stay tuned for the update.
-CHB
@ChrisBarker-NOAA
Thank you for your reply.
I am sorry to bother you with the issues I encounter while working with PyGnome. I am looking forward to the update.
Appreciate the explanatory notes!
I will stay tuned for you update here, but I would appreciate it I you could let me know as soon as it is pushed.
To run the update when it comes out, I will have to re-clone the repository:
and
reinstall the requirements if necessary
conda install --file conda_requirements.txt\
and rebuild on macOS using:
$ cd py_gnome $ ./build_anaconda.sh develop
and on Windows using:
python setup.py develop
right?
Regards,
MD
On Wed, Mar 22, 2017 at 11:40 AM, MustiDarsh notifications@github.com wrote:
I will stay tuned for you update here, but I would appreciate it I you could let me know as soon as it is pushed.
will do.
To run the update when it comes out,
I will have to re-clone the repository:
The point of cloning the repo is that you have a "live" connection to the code. so you can do:
git pull
and you'll get all the latest code.
reinstall the requirements if necessary
conda install --file conda_requirements.txt\
probably not necessary this time, but good to do.
and rebuild on macOS using:
$ cd py_gnome $ ./build_anaconda.sh develop
and on Windows using:
python setup.py develop
yes, except hat you may want to run "cleanall" before rebuilding.
./build_anaconda.sh cleanall
or
python setup.py cleanall
-CHB
--
Christopher Barker, Ph.D. Oceanographer
Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
@ChrisBarker-NOAA
Thank you for your detailed explaination. Looking forward to it!
Regards,
MD
Hi all,
After installing PyGnome and getting it working it was time to discover the various possibilities and features within PyGnome. I edited my script((based on code snippets from examples in the script folder) and added a couple of new things to test:
The console log is activated and I get the following error:
I have tried to figure out the problem by going to the files shown in the error, sadly I wasn't able to find what is causing the error. Hopefully someone here could.
I have also tried a different type of spill to see whether the error is within a definition of a spill or something else. The following spill def was tested:
The following error was printed to my terminal.
I tried different units like l, bbl, tonnes, tons, ton but the error remained. Chris mentioned that internally mass is used since oil is actually conserved that way. From what I found in the code is that kg is the standard unit for mass in PyGnome. Since it was mentioned that mass is the standard internally I tried to use define different units (g,kg, tons and tonnes) but the error remained.
I found that the script_weatherers.py contained a spill example where barrels were the unit used. When I ran that script I got the following error:
To find out whether the error is in my code or in an external dependency I ran the file run_all.py in the /scripts/ directory. After executing a couple scripts the terminal was disrupted by the following error:
For now I can create and execute scripts according to the example here: http://noaa-orr-erd.github.io/PyGnome/scripting/scripting_intro.html#initialize-the-model
I hope these console outputs help in figuring this out. I am going to look in the code and hopefully find what causes the error.
Looking forward to hearing from you.
Regards,
MD