Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CiS Projekt
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ockenden, Samuel
CiS Projekt
Compare revisions
ecd21971991376c15d36f8ff0080d17de534f0fe to 2cb5ff1e7b1cf1857ada64b03edfed2ce8b9be23
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
baw8330/projekt-cis-biochemie-2021-22
Select target project
No results found
2cb5ff1e7b1cf1857ada64b03edfed2ce8b9be23
Select Git revision
Swap
Target
baw8330/projekt-cis-biochemie-2021-22
Select target project
baw8330/projekt-cis-biochemie-2021-22
bax5890/projekt-cis-biochemie-2021-22
2 results
ecd21971991376c15d36f8ff0080d17de534f0fe
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (6)
Update README.md
· 9310b1cc
Schenk, Julius
authored
3 years ago
9310b1cc
Intervall
· fa4141a6
Stahl, Merle
authored
3 years ago
fa4141a6
Merge remote-tracking branch 'upstream/main' into main
· f5d4fc5a
Stahl, Merle
authored
3 years ago
f5d4fc5a
Add LICENSE
· f26c82b4
Ockenden, Samuel
authored
3 years ago
f26c82b4
Einrückung
· eeed399b
Stahl, Merle
authored
3 years ago
eeed399b
Merge remote-tracking branch 'upstream/main' into main
· 2cb5ff1e
Stahl, Merle
authored
3 years ago
2cb5ff1e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
LICENSE
+40
-0
40 additions, 0 deletions
LICENSE
assets/cn_default.js
+103
-106
103 additions, 106 deletions
assets/cn_default.js
assets/cn_timeline.js
+103
-106
103 additions, 106 deletions
assets/cn_timeline.js
input/README.md
+13
-13
13 additions, 13 deletions
input/README.md
with
259 additions
and
225 deletions
LICENSE
0 → 100644
View file @
2cb5ff1e
MIT License
Copyright (c) 2022 Isabelle Siebels, Sebastian David, Florian Jochens, Julius Schenk, Samuel Ockenden, Alina Molkentin, Donna Löding,
Malte Schokolowski, Katja Ehlers, Merle Stahl, Judith Große
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=========================================
D3.js is licensed under the ISC License.
For more about D3.js see: https://d3js.org/
The source code of D3.js can be found at: https://github.com/d3/d3
Copyright 2010-2021 Mike Bostock
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
This diff is collapsed.
Click to expand it.
assets/cn_default.js
View file @
2cb5ff1e
...
...
@@ -155,7 +155,7 @@ function failure(graph) {
* checks at a fixed interval whether the contents of the JSON file have changed
and reloads the program if necessary
*/
var
intervalId
=
window
.
setInterval
(
check_if_json_changed
,
5
00
)
var
intervalId
=
window
.
setInterval
(
check_if_json_changed
,
10
00
)
function
check_if_json_changed
()
{
d3
.
json
(
"
json_text.json
"
).
then
(
function
(
graph
)
{
newjson_string
=
JSON
.
stringify
(
graph
)
...
...
@@ -440,8 +440,7 @@ function zoom_to_graph() {
perc_y
=
height
/
(
node_bounds
.
height
+
100
);
zoom_perc
=
d3
.
min
([
perc_x
,
perc_y
])
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
scaleBy
,
zoom_perc
);
d3
.
select
(
'
svg
'
).
call
(
zoom
.
scaleBy
,
zoom_perc
);
}
/**
...
...
@@ -450,14 +449,12 @@ function zoom_to_graph() {
function
reset_view
()
{
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
scaleTo
,
1
)
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
translateTo
,
0.5
*
width
,
0.5
*
height
);
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
translateTo
,
0.5
*
width
,
0.5
*
height
)
.
call
(
zoom
.
scaleBy
,
zoom_perc
);
}
/**
* save svg as png
* save
s
svg as png
*/
function
save_svg
()
{
var
svgString
=
get_svg_string
(
svg
.
node
());
...
...
@@ -469,7 +466,7 @@ function save_svg(){
};
/**
* generate svgString
* generate
s
svgString
* @param {object} svgNode - node
*/
function
get_svg_string
(
svgNode
)
{
...
...
@@ -542,7 +539,7 @@ function get_svg_string(svgNode) {
}
/**
* convert svgString to image and export it
* convert
s
svgString to image and export it
* @param {object} svgString - svgString
* @param {object} width - width of image
* @param {object} height - height of image
...
...
This diff is collapsed.
Click to expand it.
assets/cn_timeline.js
View file @
2cb5ff1e
...
...
@@ -171,7 +171,7 @@ function failure(graph) {
* checks at a fixed interval whether the contents of the JSON file have changed
and reloads the program if necessary
*/
var
intervalId
=
window
.
setInterval
(
check_if_json_changed
,
5
00
)
var
intervalId
=
window
.
setInterval
(
check_if_json_changed
,
10
00
)
function
check_if_json_changed
()
{
d3
.
json
(
"
json_text.json
"
).
then
(
function
(
graph
)
{
newjson_string
=
JSON
.
stringify
(
graph
)
...
...
@@ -475,8 +475,7 @@ function zoom_to_graph() {
perc_y
=
height
/
(
node_bounds
.
height
+
100
);
zoom_perc
=
d3
.
min
([
perc_x
,
perc_y
])
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
scaleBy
,
zoom_perc
);
d3
.
select
(
'
svg
'
).
call
(
zoom
.
scaleBy
,
zoom_perc
);
}
/**
...
...
@@ -485,14 +484,12 @@ function zoom_to_graph() {
function
reset_view
()
{
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
scaleTo
,
1
)
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
translateTo
,
0.5
*
width
,
0.5
*
height
);
d3
.
select
(
'
svg
'
)
.
call
(
zoom
.
translateTo
,
0.5
*
width
,
0.5
*
height
)
.
call
(
zoom
.
scaleBy
,
zoom_perc
);
}
/**
* save svg as png
* save
s
svg as png
*/
function
save_svg
()
{
var
svgString
=
get_svg_string
(
svg
.
node
());
...
...
@@ -504,7 +501,7 @@ function save_svg(){
};
/**
* generate svgString
* generate
s
svgString
* @param {object} svgNode - node
*/
function
get_svg_string
(
svgNode
)
{
...
...
@@ -577,7 +574,7 @@ function get_svg_string(svgNode) {
}
/**
* convert svgString to image and export it
* convert
s
svgString to image and export it
* @param {object} svgString - svgString
* @param {object} width - width of image
* @param {object} height - height of image
...
...
This diff is collapsed.
Click to expand it.
input/README.md
View file @
2cb5ff1e
# Projekt CiS-Projekt 2021/22
Input-Package to fetch publication information with a given url.
Input-Package um Publikationsinformationen mit von einer DOI zu holen.
## Usage/Examples
...
...
@@ -23,21 +22,22 @@ if __name__ == "__main__":
main
(
"
https://doi.org/10.1021/acs.chemrev.8b00728
"
)
```
The expected results of calling this methode are
:
| Input-
Url | Result
|
Die zu erwartende Ergebnisse beim rufen der Funktion
:
| Input-
DOI | Ergebniss
|
|-----------|-----------|
|
supported
&
c
orre
c
t|
A p
ubli
c
ation
I
nstan
ce
|
|
supported & uncorrect
| ValueError|
| n
ot supported
| ValueError|
|
Unterstützt
&
K
orre
k
t|
Eine P
ubli
k
ation
si
nstan
z
|
|
Unterstützt & Falsch
| ValueError|
| n
icht Unterstützt
| ValueError|
Supported Url are urls, which comply with the url-pattern of suppor
te
d
Journals
.
Unterstützte DOIs sind DOIs,welche das DOI-Mustern der unterstütz
te
n
Journals
besitzen.
###
Suppor
te
d
Journals:
###
Unterstütz
te Journals:
-
ACS-Journals
-
(Nature-Journals)
-
ACS-Journale
-
(Springer-Journale)
-
~~Elsevier~~
## Test
ing
## Test
s
```
c
python
-
m
unittest
input
/
test
/<
file
.
py
>
-
v
...
...
This diff is collapsed.
Click to expand it.