Comments (2)
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:
pystrain/pystrain/iotools/iparser.py
bin/StrainTool.py
changes committed to branch bug65
xanthos
from straintool.
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)
- code commenting
- -r / --region switch fails if not set HOT 2
- gmtplots: scale of gridded data not plotted correctly HOT 2
- method Veis: check and readme
- One tensor (barycenter) not working?
- [gmtplots...] bc not woring for windows
- strain.py: calculate sd of second invariant HOT 1
- magnitude of sd
- Multithreading is different between Linux and Windows HOT 1
- generate delaunay tr: more triangles than real
- generate-statistics flag
- input file duplicate lines stop processing HOT 2
- No Example input file HOT 16
- Invalid UTM Zone HOT 10
- multicore proc error for Windows 10 HOT 2
- Map size changes with different Wt HOT 1
- Bug with Multiple UMT zones and the veis method HOT 2
- Add the main article to the project HOT 1
- straintool HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from straintool.