Having problem in calibration part

21 views
Skip to first unread message

AMIR N. KATIRACHI

unread,
May 23, 2018, 8:49:35 PM5/23/18
to shyft

Hello,

                  I am a 2nd year master's student in hydropower development at NTNU and I want to use ShyFT in my master thesis.
I have started working with ShyFT recently and stuck in calibration part.
I run the standard examples of ShyFT document and ShyFT keeps hold me by its error in a same line every time
 ( In [6] http://shyft.readthedocs.io/en/latest/notebooks/nea-example/calibration-configured.html ), I attached the picture of error.
Also, it is the first time that I install and run ShyFT, I followed installation carefully however, this is the way I installed it:

1.       Install Anaconda https://www.anaconda.com/download/

2.       Install Windows: ms c++ vs 2017 redist. https://go.microsoft.com/fwlink/?LinkId=746572

3.       In Anaconda prompt (conda  create -c sigbjorn -c conda-forge -n shyft python=3.6 pyyaml numpy=1.13 netcdf4 gdal matplotlib requests nose coverage pip shapely pyproj jupyter pandas shyft scipy)

4.       From Github clone three folders into workspace-ShyFT

5.       In Anaconda prompt (conda install -s sigbjorn shyft)

6.       Windows path (picture attached )

7.       Anaconda navigation >> ShyFT env >> Terminal >> conda install –c sigbjorn ShyFT


It would be grateful if you help me.


Best Regards,


AMIR N. KATIRACHI

path.png
Running a calibration with SHyFT (Error CFG).png

sigbjorn.helset

unread,
May 25, 2018, 2:06:52 AM5/25/18
to shyft
Hi!

It seems that there could be a missing entry in the yaml parameter file used.
I will check out that, and adjust it later this evening.
You will then need to do a refresh of your checked out directories to get a fresh version.

There is also maybe a minor issue with your setup procedure,
Step 1..3 looks great,
Step 4 should only clone shyft-doc and shyft-data into workspace, since line 3 will install require shyft into the shyft conda-environment.
(you can rename the shyft directory to shyft.src for now)
Step 5 should not be needed, in effect you will install shyft into the root environment (it's already in shyft env, so you only have to activate it)

Next step should be in the anaconda prompt 
activate shyft
cd <workspace>/shyft-doc/notebooks
jypter notebooks

Br Sigbjørn

torsdag 24. mai 2018 02.49.35 UTC+2 skrev AMIR N. KATIRACHI følgende:

Hello,

                  I am a 2nd year master's student in hydropower development at NTNU and I want to use ShyFT in my master thesis.
I have started working with ShyFT recently and stuck in calibration part.
I run the standard examples of ShyFT document and ShyFT keeps hold me by its error in a same line every time
 ( In [6] http://shyft.readthedocs.io/en/latest/notebooks/nea-example/calibration-configured.html ), I attached the picture of error.
Also, it is the first time that I install and run ShyFT, I followed installation carefully however, this is the way I installed it:

1.       Install Anaconda https://www.anaconda.com/download/ forum

sigbjorn.helset

unread,
May 26, 2018, 10:46:13 AM5/26/18
to shyft
Hi!

We have now updated the shyft-doc, shyft-data and also release a new shyft version to conda channel sigbjorn.

The examples notebooks now runs as checked out, if all needed extra python packages are loaded.

A one-liner to do that:


conda  create -c sigbjorn -c conda-forge -n shyft python=3.6  shyft  numpy pyyaml netcdf4 netcdftime gdal matplotlib requests nose coverage pip shapely pyproj jupyter pandas scipy bokeh


You will need to refresh your git-clone and ensure you install the latest shyft version from -c sigbjorn

Br Sigbjørn





torsdag 24. mai 2018 02.49.35 UTC+2 skrev AMIR N. KATIRACHI følgende:

amir kk

unread,
May 26, 2018, 11:34:23 AM5/26/18
to shyft

Hi,

 

           I appreciate for the new update, I updated it and now it works perfectly.

 

Best Regards,

 

AMIR NASSER KATIRACHI

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "shyft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shyft+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shyft/232608dc-2a27-4a54-8e18-d8e3f8184f47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

amir kk

unread,
May 27, 2018, 11:24:04 AM5/27/18
to shyft

 

Hello again,

 

I encountered with another problem:

        After last update something goes wrong (http://shyft.readthedocs.io/en/latest/notebooks/api/api-intro.html) in the line (In [6])

 

Also after executing help(api.GeoPoint) python stops working, it didn`t happen just  onetime, it stopped all the time after help(xxx).

 

I attached the error images

 

Thank you in advance for your help

 

Best Regards,

 

AMIR NASSER KATIRCHI

sigbjorn.helset

unread,
May 27, 2018, 3:50:53 PM5/27/18
to shyft
Hi,
Just confirmed there is a side-effect on windows for the latest version.
I will correct it and update asap.
Br Sigbjørn

torsdag 24. mai 2018 02.49.35 UTC+2 skrev AMIR N. KATIRACHI følgende:

sigbjorn.helset

unread,
May 27, 2018, 7:13:12 PM5/27/18
to shyft
Hi,
First of all thanks for notifying about the crash with the help functions.
 
It turned out that all windows versions produced with win c++ 15.7.x after 4.6.1574 was suffering from something that 
looks like an issue with the microsoft c++ compiler. - There is one other report with similar problem, and ms is working on it.
Typically, if doing
help(api.GeoPoint), - python crashed. Similar for all help commands related to class-help. Method-help seemed to work ok.
Due to extensive testing, I believe the algorithms/computation was still correct.

I have found a work around, turning off some optimizations, and recompiled the packages.

Version 4.6.1585 now available on channel sigbjorn , for windows,  seems to solve this specific problem.
 
Br Sigbjørn

amir kk

unread,
May 28, 2018, 7:58:13 AM5/28/18
to shyft

Hi,

 

              Thank you for the fast response even in Sunday evening,  Fortunately the Help method works correctly in this new version and I executed all examples in http://shyft.readthedocs.io . All works except two of them:

 

  1. http://shyft.readthedocs.io/en/latest/notebooks/api/api-intro.html

line 6 (the error image is attached)

 

  1. http://shyft.readthedocs.io/en/latest/notebooks/repository/repositories-intro.html

line 9 (also, attached)

 

I appreciate in advance and looking forward for the new shyft version

 

Best Regards,

 

AMIR N. KATIRACHI

 

 

 

From: sigbjorn.helset
Sent: Monday, May 28, 2018 1:13 AM
To: shyft
Subject: Re: Having problem in calibration part

 

Hi,

--

You received this message because you are subscribed to the Google Groups "shyft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shyft+un...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages