Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nxdblmbackendpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Alexander Perez
nxdblmbackendpython
Commits
ad2d6a39
Commit
ad2d6a39
authored
5 years ago
by
Quentin Codelupi
Browse files
Options
Downloads
Patches
Plain Diff
[update] readme for routine
parent
b57020bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-4
16 additions, 4 deletions
README.md
with
16 additions
and
4 deletions
README.md
+
16
−
4
View file @
ad2d6a39
# B
iBl
NXCALS Property Pull
# B
LM
NXCALS Property Pull
Property pull is a Python project for the Cern's BLM section.
It get precise data property for diamond devices by NXCALS and store it in lighter format on a MYSQL DB.
In order to be used in other application.
A routine script have been done in order to get the beamMode data
from pytimber and pull the data accordingly.
The final purpose is that it run daily on a server with a cronJob.
An API may be develop in the future for precise data pull without DB writing.
Meaning an instant return (JSON format) of data required.
## Installation
For now, it only work on linux OS and Windows Professional,
and not tested on MacOS.
At the time of writing,
`python3.6`
is required to run the CERN's
Spark bundle propertly.
In order to run it, you have to Download the CERN's Spark bundle
and set up a working CERN's NXCALS environment.
...
...
@@ -15,12 +26,13 @@ See on <a href="nxcals-docs.web.cern.ch"> NXCALS Documentation</a>.
You need then to export 2 environment variables for Spark & Python.
For linux (Ubuntu)
For linux (Ubuntu
tested
)
```
bash
export
SPARK_HOME
=
<location_of_the_bundle>/spark-<version>-bin-hadoop<version>
export
PYTHONPATH
=
$SPARK_HOME
/nxcals-python3-env/lib/python3.6/site-packages
```
For windows into shell with admin rights
For windows
<br>
Into shell with admin rights
```
shell script
setx SPARK_HOME <location_of_the_bundle>/spark-<version>-bin-hadoop<version>
setx PYTHON_PATH %SPARK_HOME%/nxcals-python3-env/lib/python3.6/site-packages
...
...
@@ -38,7 +50,7 @@ the nxcals-hdoop-pro-config<version>.jar that you can find at
Know that all the links and directory path are up to date at the time of writing.
It may have been some updates since.
After that you need to create a
'
pyconf.py
'
file in order to create
After that you need to create a
`
pyconf.py
`
file in order to create
mysql configuration. The template is :
```
python
mysql
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment