-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing some key file locations in a preferences file #113
Comments
port - can be stored in config.json raster - every user will have different image files, how can we make sure On Thu, Nov 26, 2015 at 1:43 PM, Jeff Taylor [email protected]
|
The For the |
Yes, I always use 9999 as my port - are there any arguments against using that as a default? Are there default locations for |
I've been testing with a config file that looks like this, and it works: {
"_comment" : "List of plugin directories",
"pluginDirs": [
"$(APPDIR)/../plugins",
"$(HOME)/.cartavis/plugins"
],
"port" : "9999",
"executable" : "/home/jeff/scratch/build/dev/cpp/desktop/desktop",
"htmlFile" : "/home/jeff/dev/CARTAvis/carta/html5/desktop/desktopIndex.html"
} Could something like that be automatically generated on install? |
last too lines can be automatically generated during install, i can also On Fri, Nov 27, 2015 at 2:26 PM, Jeff Taylor [email protected]
|
Excellent. So if this format looks all right to everyone, I can keep developing the cartaview() task with that in mind; or if it needs to be tweaked a bit, that's fine too. At least I know now that this sort of setup works, so whatever we decide on should be fine. |
As we discussed during last week's telecon, these values will actually go into a separate configuration file; let's call it scriptedConfig.json. It should look like this (for now): {
"port" : "9999",
"executable" : "/home/jeff/scratch/build/dev/cpp/desktop/desktop",
"htmlFile" : "/home/jeff/dev/CARTAvis/carta/html5/desktop/desktopIndex.html"
} All that is left now is for the file to be automatically generated, as the cartaview() task can already read the file and parse the values in it. |
The cartaview() task that I am developing for CASA currently has the following parameters:
raster
- The full path of a compatible image file to load.executable
- The full path of the Carta executable file.configFile
- The full path of the cartavis config.json file.port
- The port which will be used to send commands to Carta and receive results.htmlFile
- The full path of the Carta desktopIndex.html file.In the interest of making this task as easy to set up as possible, @low-sky has suggested storing most of these values in a preferences file - possibly even the config.json file itself - which could be polled by the cartaview() task instead of relying on the user figuring out which port to use, where the executable is located, etc. This file would be set on the first time CARTA is run post installation on a machine.
Does anyone have any thoughts on how this could be set up?
@astrilet @pfederl @slovelan @JimNrao (have I forgotten anyone?)
The text was updated successfully, but these errors were encountered: