Giter VIP home page Giter VIP logo

Comments (2)

NMoghaddam avatar NMoghaddam commented on June 3, 2024

Note: if dx, dy, dz are not strings, but numbers, simply propagate these down all the way to the soundings structure ...
If we specify the columns as nothing or " " , then the function shouldn't use those columns.

from hiqga.jl.

NMoghaddam avatar NMoghaddam commented on June 3, 2024

In order to address this issue, the following steps were taken.

  • Assuming that frame_dx, frame_dy, frame_dz are not provided in the *.dat file, the following code can be used to throw an error following running SkyTEM1DInversion:
    (isempty(frame_dx) || isempty(frame_dy) || isempty(frame_dz)) && throw(ArgumentError("user must speficy dx, dy, and dz values for frame"))
  • Additionally, in read_survey_files, the default values for frame_dx, frame_dy, frame_dz is going to be set to nothing and the following @Assert statement could be used to throw an error if any of these values are not nothing:
    @assert any(.!isnothing.([frame_dx,frame_dy,frame_dz]))

Following further discussion, we decided to close the issue since It is likely that different scenarios and adding the above statements will potentially add more complexity to the original version of read_survey_files.

from hiqga.jl.

Related Issues (16)

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.