在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):publiclab/spectral-workbench开源软件地址(OpenSource Url):https://github.com/publiclab/spectral-workbench开源编程语言(OpenSource Language):Ruby 48.6%开源软件介绍(OpenSource Introduction):Spectral WorkbenchCopyright Public Lab publiclab.org | spectralworkbench.org Spectral Workbench is an open-source tool to perform low-cost spectral analysis and to share those results online. It consists of a Ruby on Rails web application for publishing, archiving, discussing, and analyzing spectra online -- running at http://spectralworkbench.org The core library for analyzing and manipulating spectral data has been spun out into its own self-contained JavaScript module, at https://github.com/publiclab/spectral-workbench.js, which is then included into this application. To use Spectral Workbench on the commandline, try that out! Read about how to build and use your own spectrometer with this software here: http://publiclab.org/wiki/spectrometer Simple installation with Cloud9
InstallationThe app now runs on Ruby 2.6.6 up to Ruby 2.6.x (preferred), and Rails 5.2.x, and uses Bundler for gem management and Yarn for static asset management. Prerequisites:Recommended; for an Ubuntu/Debian system. Varies slightly for mac/fedora/etc Install a database, if necessary:
Note: You will have to update the RMagick dependencies are required for processing uploaded spectrum images:
Install rvm for Ruby management (http://rvm.io)
Note: At this point during the process, you may want to log out and log back in, or open a new terminal window; RVM will then properly load in your environment. Ubuntu users: You may need to enable Then, use RVM to install version 2.6.6 of Ruby:
You'll also need yarn which is available through NPM. To install NPM, you can run:
However, on Ubuntu, you may need to also install the
Once NPM is installed, you should be able to run:
Installation steps:
Sign in instructions:
Bugs and supportTo report bugs and request features, please use the GitHub issue tracker provided at http://github.com/publiclab/spectral-workbench/issues For additional support, join the Public Laboratory website and mailing list at http://publiclab.org/lists or for urgent requests, email [email protected] For questions related to the use of this software and your open source spectrometer, the same page links to the "plots-spectrometry" group. APIUsing your secret API token on your SpectralWorkbench.org profile, you can submit spectral via the API in JSON format: POST to "https://spectralworkbench.org/spectrums.json" The required parameters are: {"spectrum": {
"title": "Test spectrum",
"data_type": "json",
"data": [
{"average": 64.3, "r": 69, "g": 46, "b": 78, "wavelength": 269.089 },
{"average": 63.3, "r": 71, "g": 45, "b": 74, "wavelength": 277.718 },
{"average": 64, "r": 71, "g": 47, "b": 74, "wavelength": 291.524 },
{"average": 64, "r": 68, "g": 49, "b": 75, "wavelength": 303.604 }
]},
"token": "00000000"
} This will return a path (from the root URL by default) to the spectrum, as in: DevelopersDevelopment is occurring at https://github.com/publiclab/spectral-workbench/; please fork and submit pull requests; for more guidelines on contributing to Public Lab projects, see http://publiclab.org/wiki/contributing-to-public-lab-software If you're a developer, consider joining the Public Lab developer list, also at http://publiclab.org/wiki/developers TestingBefore submitting changes, please run tests with Also run New tests are also appreciated to increase coverage; Rails tests are in /test and Jasmine tests (JavaScript tests) are in /spec. LicenseSpectral Workbench is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Spectral Workbench is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Spectral Workbench. If not, see http://www.gnu.org/licenses/. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论