Comments (4)
I think that is due to a very recent change in CanvasObject
where a canvas object's coord
attribute used to default to 'data' but now defaults to None
. But None
will assign a data mapper when the object is added to a canvas--so the result is still the same. The reason for change was to allow the user to set a coordinate mapper for the canvas and have objects inherit that if they don't assign their own.
You can safely change that assertion to:
assert circ.coord in (None, 'data')
from astrowidgets.
Sorry for the confusion!
from astrowidgets.
You can also assign coord='data'
when creating the Circle
, if you prefer, and keep the assert
as it was. That is probably preferable, because you are being explicit about what mapping is being used to draw the object when you create it.
from astrowidgets.
Thanks, @ejeschke !
from astrowidgets.
Related Issues (20)
- Change marker from a dictionary to a class or `namedtuple`, and change the name from `marker` to `marker_style` HOT 2
- Zoom: Why two ways to do the same thing? HOT 6
- Setting stretch as a string is problematic if the stretch requires a parameter HOT 5
- Coordinates in cursor display may not be RA/Dec HOT 12
- TST: devdeps broken due to jinja2 and markupsafe conflicts HOT 1
- deprecation of 'raDegToString' from 'ginga.util.wcs' HOT 6
- TST: image.stretch setter fails with Ginga dev HOT 2
- File loading: Just have one "load" method and let backend decide on its own what to load
- Move backend specific implementations out of this repo
- Integration test with backends and instruction for downstream testing
- Policy on how backend can propose API changes to established Protocol HOT 2
- Add more types to the protocol HOT 1
- INFO: Ginga marker parameters HOT 1
- INFO: bqplot marker properties
- INFO: matplotlib marker properties
- INFO: ds9 marker parameters HOT 1
- Would hide_markers method be useful?
- Refactor the test `test_marking_operations`
- Add Zenodo badge after the next GitHub Release
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 astrowidgets.