Code Monkey home page Code Monkey logo

Comments (7)

ianneilmacleod avatar ianneilmacleod commented on September 15, 2024

temp=True would cause the geosoft_voxel file to be deleted. Perhaps this is at odds with the cache refresh? Testing again as follows still aborts (submitted with 1fa39c0):

import geosoft.gxpy.gx as gx
import geosoft.gxpy.vox as gxvox
import numpy as np
gx = gx.GXpy()
data = np.zeros(3 * 4 * 6).reshape((6, 4, 3))
with gxvox.Vox.new("test_new", data=data, overwrite=True) as vox:
    print(vox.nx, vox.ny, vox.nz)

abort_930_126_2017_11_29_08_07_47.log

I have also seen this as the exit behaviour from PyCharm, but not consistently.

Process finished with exit code -1073740940 (0xC0000374)

from gxpy.

jacquesbeaurain avatar jacquesbeaurain commented on September 15, 2024

This has been fixed in 9.4 builds and should be merged into 9.3.1 too. Keeping open for now to verify once 9.3.1 is ready.

from gxpy.

ianneilmacleod avatar ianneilmacleod commented on September 15, 2024

@josephcaluag please verify that this fix made it to 9.3.1. Just check below once you have checked this.

from gxpy.

ianneilmacleod avatar ianneilmacleod commented on September 15, 2024

@josephcaluag
9.3.1 build 26 (2018-1-2) by running test_vox_diosplay.py still fails.
9.4.0 build 12589 (2018-1-2) works.

Symptom is that the system stops immediately upon printing "GX close":

project path: C:\Development\github\gxpy\geosoft\gxpy\tests\results\test_vox_display.py\
user path: C:\Program Files\Geosoft\Desktop Applications 9\user\
GX open
..F...GX close

Switching to 9.4.1 I get the expected close, as follows:

project path: C:\Development\github\gxpy\geosoft\gxpy\tests\results\test_vox_display.py\
user path: C:\Program Files\Geosoft\Desktop Applications 9 - Testing\user\
GX open
......GX close

----------------------------------------------------------------------
Ran 6 tests in 22.178s

OK

from gxpy.

ianneilmacleod avatar ianneilmacleod commented on September 15, 2024

NOTE the sample code from the first issue comment no longer asserts, but test_vox_display.py does not finish in 9.3.1 as it should.

from gxpy.

ianneilmacleod avatar ianneilmacleod commented on September 15, 2024

@josephcaluag
Here is a sample program - stops prematurely in 9.3.1, but completes correctly in 9.4:

import os
import numpy as np
import geosoft.gxapi as gxapi
import geosoft.gxpy as gxpy
import geosoft.gxpy.vox as gxvox

os.environ['GEOSOFT_TEST_MODE'] = '1'
os.environ['GEOSOFT_TESTSYSTEM_MODE'] = '1'

# set to use 9.3.1
os.environ['GX_GEOSOFT_BIN_PATH'] = 'C:\\Program Files\\Geosoft\\Desktop Applications 9\\bin'

# set to use 9.4
# os.environ['GX_GEOSOFT_BIN_PATH'] = 'C:\\Program Files\\Geosoft\\Desktop Applications 9 - Testing\\bin'

gxc = gxpy.gx.GXpy(log=print)
data = np.zeros(3 * 4 * 6).reshape((6, 4, 3))
with gxvox.Vox.new("test_new", data=data, temp=True) as vox:
    gxvoxd = gxapi.GXVOXD.create(vox.gxvox, '', 0, gxapi.rDUMMY)
    gxvoxd = None

from gxpy.

ianneilmacleod avatar ianneilmacleod commented on September 15, 2024

replaced by #71

from gxpy.

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.