GithubHelp home page GithubHelp logo

gempy_workshops's Issues

bug on the `t21-gempy` workshop notebook

I am trying to reproduce the t21-gempy workshop notebook.

When I try to execute the following cell

wts = sb.reader.wells.WellyToSubsurfaceHelper(collar_df=collar, survey_df=survey, lith_df=lith)

I get the following error:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_25240/482279566.py in <module>
----> 1 wts = sb.reader.wells.WellyToSubsurfaceHelper(collar_df=collar, survey_df=survey, lith_df=lith)

~\miniconda3\envs\gempy\lib\site-packages\subsurface\reader\wells\pandas_to_welly.py in __init__(self, collar_df, survey_df, lith_df, attrib_dfs)
     52 
     53         if collar_df is not None: self.add_datum(collar_df)
---> 54         if survey_df is not None: self.add_deviation(survey_df)
     55         if lith_df is not None:  self.add_striplog(lith_df)
     56 

~\miniconda3\envs\gempy\lib\site-packages\subsurface\reader\wells\pandas_to_welly.py in add_deviation(self, deviations, td, method, update_deviation, azimuth_datum)
    173         for b in unique_borehole:
    174             w = self.p.get_well(b)
--> 175             w.location.add_deviation(deviations.loc[[b], ['md', 'inc', 'azi']],
    176                                      td=td,
    177                                      method=method,

~\miniconda3\envs\gempy\lib\site-packages\welly\location.py in add_deviation(self, deviation, td, method, update_deviation, azimuth_datum, course_length)
    242             None. Adds the position log to `well.location` in place.
    243         """
--> 244         dev_new, pos, dog = compute_position_log(deviation,
    245                                                  td,
    246                                                  method,

~\miniconda3\envs\gempy\lib\site-packages\welly\tools.py in compute_position_log(deviation, td, method, azimuth_datum, course_length)
     54 
     55     # Make wellpathpy deviation object.
---> 56     dev = wp.deviation(*deviation.T)
     57 
     58     # Compute position log.

~\miniconda3\envs\gempy\lib\site-packages\wellpathpy\position_log.py in __init__(self, md, inc, azi)
     23     """
     24     def __init__(self, md, inc, azi):
---> 25         md, inc, azi = checkarrays(md, inc, azi)
     26         self.md = np.copy(md)
     27         self.inc = np.copy(inc)

~\miniconda3\envs\gempy\lib\site-packages\wellpathpy\checkarrays.py in checkarrays(md, inc, azi)
     57 
     58     if not np.all(md[1:] > md[:-1]):
---> 59         raise ValueError('md must have strictly increasing values')
     60 
     61     return md, inc, azi

ValueError: md must have strictly increasing values

Any ideas on how to solve it, please?

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.