Comments (4)
GXMVU.fight_plot() just stops too.
from gxpy.
Just remembered what causes this. A group was not started. I'll correct in Python, but we should address the behaviour for 9.3+.
from gxpy.
@jbgeosoft understanding that the underlying core is asserting, we need a better behaviour to expose the assertion, or we need to be able to document it. Here is a code snippet that asserts at the GVMVU call. Comment out the line to see expected behaviour. The bug in the Python code is that GXMVU is writing the a view that has not started a group, and asserts rather than raise an error. Before fixing the assertion we can use this example to think about how to provide the assertion information to a developer using the API.
import geosoft.gxapi as gxapi
import geosoft.gxpy.gx as gx
import geosoft.gxpy. map as gxmap
import geosoft.gxpy.view as gxview
import geosoft.gxpy.group as gxgroup
gxc = gx.GXpy()
with gxmap.Map.figure((0, 0, 1000, 1000)) as gmap:
with gxview.View.open(gmap, "data") as v:
gxapi.GXMVU.arrow(v.gxview, 500, 500, 450, 450, 0.5, 30, 1) # asserts
with gxgroup.Draw(v, "arrow") as g:
gxapi.GXMVU.arrow(g.view.gxview, 500, 500, 450, 450, 0.5, 30, 1)
See also fe6927e, which includes test_group.py -> test_force_assert() to assert from a test.
from gxpy.
Replaced by #55
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.