Comments (7)
If you set numImages=0
either in ~/.ginga/general.cfg
or ~/.ginga/channel_Image.cfg
, it sets unlimited cache (then you have to watch your memory usage). I use this setting for QUIP.
The setting in channel_Image.cfg
overwrites the setting in general.cfg
, if exists. Or inherits from the latter, if not.
from stginga.
The actual cache is handled by Datasrc
class.
from stginga.
As @pllim says, the deque length for a channel can be set to unlimited by setting the numImages
preference to 0.
In regard to naming images, though, it is possible to have total control over the name of the image if you are creating the AstroImage
object yourself (in the typical case the reference viewer creates it for you) and specify the name
kwarg. Then this name will be used everywhere in the viewer. One thing we do at Subaru Telescope is to override the file opening and do it with a custom opener. Our opener does some parsing on the name to decide which channel the image should end up in, etc. Something like this may be an option for stginga
.
One thing to keep in mind--an image can be loaded into more than one channel (unless you control how it is loaded--e.g. someone can just drag a file to a channel). So you may end up with the same name in more than one channel. The Thumbs will show a duplicate name, but if you click each one it will take you to the image in the channel in which it resides. If this kind of behavior is not wanted, then it might be better to write your own opener as described above, because then you can control which images end up in which channels.
from stginga.
For this plugin, I am aiming to not having need of any global environmental changes to occur. And, ideally, this should be invariant against whether cache is on/off, etc. Also, there should be no dependency on loaders either.
I'm currently examining the Thumbs* classes to get some clues. It is looking like path is the answer.
from stginga.
If you think the plugin might be generally useful, consider submitting a PR to the ginga home repo when you have it at a reasonable state. It looks very interesting!
from stginga.
Most definitely! Once we get things good for the sprint, will be doing so.
from stginga.
PR #22
from stginga.
Related Issues (20)
- Add CITATION HOT 2
- Infrastructure updates notice from Astropy Project
- Port CI to GitHub Actions
- Get rid of astropy-helpers submodule
- Use setuptools-scm for version numbering
- Update JWST DQ flags for DQInspect HOT 1
- Zenodo
- Instrument FGS missing from Data Quality Inspection HOT 4
- Automatic PyPI publication enabled HOT 1
- MNT: VisibleDeprecationWarning Creating an ndarray from ragged nested sequences (numpy 1.19) HOT 1
- Finish 1.2 release HOT 1
- Update utils.scale_image to mask/ignore bad pixels HOT 30
- MNT: Bump Python minversion to 3.7
- MNT: Use argparse in entry point function HOT 1
- How correct is scale_wcs? HOT 6
- MNT: New release to go with Ginga 3.2
- TST: Handle warnings
- BadPixCorr plugin might be incompatible with Ginga v4 HOT 9
- Add more description of how to use a plug-in to the docs HOT 2
- numpy 2.0 support HOT 2
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 stginga.