Comments (7)
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.
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.
@josephcaluag please verify that this fix made it to 9.3.1. Just check below once you have checked this.
- @josephcaluag verifued
from gxpy.
@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.
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.
@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.
replaced by #71
from gxpy.
Related Issues (20)
- exit code can call into GXAPI after context is lost, which raises exception HOT 1
- gapy.view.group_list_agg property is a list of strings, not instances
- GRID3D and MULTIGRID3D support
- Picking multiple files with gxproj.get_user_input leads to string truncation HOT 2
- Python.omn not installing HOT 2
- Some tutorial images are located on internal Geosoft server, which isn't accessible to all users HOT 1
- when I run hello world from configure python I get error? HOT 1
- Incompatible with numpy==1.16 HOT 1
- GDB from Pandas error HOT 1
- Grid FFT maximum entropy expansion moves the core grid cells HOT 2
- Google Colab HOT 1
- Easier workflow to go from .grd files to xarray HOT 1
- overly precise cell dimensions test creates issues with non square cell sizes
- Ability to use gxpy on a headless system without logging in HOT 1
- geosoft.gxpy.map.Map.new fails when passing no_data_view=True HOT 2
- gxgrd.Grid.minimum_curvature deletes input unexpectedly HOT 3
- Wrong value returned by Geosoft_project.current_database HOT 2
- gxgrd.Grid.minimum_curvature(xyv) doesn't work for large datasets HOT 1
- Numpy dtype float deprecated HOT 7
- project.py does not support Geosoft surface document type 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 gxpy.