Giter Club home page Giter Club logo

Comments (2)

xanthospap avatar xanthospap commented on September 26, 2024

Bug is re-producible, but only affects Shen method (aka --method='shen'). Here is how we are going to solve this:

Function parse_ascii_input() in file pystrain/pystrain/iotools/iparser.py now takes one extra (bool) argument zero_std_is_error=False (has a default value of False). If set to True the function will throw (a ValueError) if a standard deviation value for either North or East component is set to zero (in the input file, for any station parsed). Why use this extra argument and not throw anyway? because the std. deviation values are only relevant for the Shen method; if the user has selected the Veis method, then we just ignore them anyway.
The call to parse_ascii_input() in bin/StrainTool.py is now changed to sta_list_ell = parse_ascii_input(args.gps_file, args.method=='shen') so that if a station with zero std. deviation (in north or east) is parsed when method='shen' is triggered, will result in an error and the program will exit!.

Files changed:

  1. pystrain/pystrain/iotools/iparser.py
  2. bin/StrainTool.py

changes committed to branch bug65

xanthos

from straintool.

xanthospap avatar xanthospap commented on September 26, 2024

Made a short note in the README.md file about this. See the last paragraph in section Input FIles.
@demanasta

  • we should probably copy the note to the documentation at the StrainTool site
  • validate that the code works properly
  • merge the branch to master

from straintool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.