Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libhreels
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wolf Widdra
libhreels
Commits
82c62748
Commit
82c62748
authored
4 years ago
by
Wolf Widdra
Browse files
Options
Downloads
Patches
Plain Diff
V 1.0.5 (elog comments html strip)
parent
12c878bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libhreels/expLogbook.py
+7
-13
7 additions, 13 deletions
libhreels/expLogbook.py
pyproject.toml
+4
-3
4 additions, 3 deletions
pyproject.toml
with
11 additions
and
16 deletions
libhreels/expLogbook.py
+
7
−
13
View file @
82c62748
...
...
@@ -5,7 +5,7 @@ import urllib.parse
import
os
import
builtins
import
re
from
elog.logbook_exceptions
import
*
#
from elog.logbook_exceptions import *
from
datetime
import
datetime
from
time
import
localtime
...
...
@@ -499,17 +499,11 @@ class myLogbook(object):
def
getShortMessage4File
(
self
,
filename
):
stuff
=
self
.
getMessage4File
(
filename
)
replacements
=
[
(
'
<\/p>
'
,
''
),
(
'
<p>
'
,
''
),
(
'
>
'
,
'
>
'
),
(
'
<
'
,
'
<
'
)
]
if
isinstance
(
stuff
,
str
):
for
old
,
new
in
replacements
:
stuff
=
re
.
sub
(
old
,
new
,
stuff
)
return
stuff
[:
min
(
60
,
len
(
stuff
))]
return
''
import
html2text
h
=
html2text
.
HTML2Text
()
# Ignore converting links from HTML
h
.
ignore_links
=
True
return
h
.
handle
(
stuff
)
def
_remove_reserved_attributes
(
attributes
):
"""
...
...
@@ -605,7 +599,7 @@ def _handle_pswd(password, encrypt=True):
##########################################################################################################
# ogf settings:
try
:
from
eLogCredentials
import
user
,
password
,
dummy
,
unsafe
# Defines User credentials
from
libhreels.
eLogCredentials
import
user
,
password
,
dummy
,
unsafe
# Defines User credentials
logbook
=
myLogbook
(
'
https://labor-ep3.physik.uni-halle.de/HREELS/
'
,
user
=
dummy
,
password
=
unsafe
)
print
(
'
eLog available!
'
)
available
=
True
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
4
−
3
View file @
82c62748
[tool.poetry]
name
=
"libhreels"
version
=
"1.0.
3
"
version
=
"1.0.
5
"
description
=
"Handling, simulating, and plotting HREELS and Auger spectroscopy data"
authors
=
[
"Wolf Widdra <wolf.widdra@physik.uni-halle.de>"
]
include
=
[
"*.*"
]
...
...
@@ -17,7 +17,7 @@ scipy = "^1.4"
requests
=
"^2.23.0"
argparse
=
"^1.4.0"
PyQt5
=
"^5.13"
numpy
=
"^1.18.
3
"
numpy
=
"^1.18.
2
"
[tool.poetry.dev-dependencies]
pytest
=
"^5.2"
...
...
@@ -26,10 +26,11 @@ pytest = "^5.2"
[tool.poetry.scripts]
dielectrics
=
"libhreels.dielectrics:myMain"
calchreels
=
"libhreels.calcHREELS:myMain"
viewhreelstest
=
"libhreels.ViewHREELS:myMain"
[tool.poetry.plugins."gui_scripts"]
viewhreels
=
"libhreels.ViewHREELS:myMain"
viewauger
=
"libhreels.ViewAuger:myMain"
viewhreels
=
"libhreels.ViewHREELS:myMain"
[build-system]
requires
=
["poetry>
=
0.12
"]
...
...
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