Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2021-adass
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
Documents
2021-adass
Commits
ffc976e8
Commit
ffc976e8
authored
3 years ago
by
John Swinbank
Browse files
Options
Downloads
Patches
Plain Diff
Updated PaperCheck.py
parent
ecf37f39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proceedings/PaperCheck.py
+23
-23
23 additions, 23 deletions
proceedings/PaperCheck.py
with
23 additions
and
23 deletions
proceedings/PaperCheck.py
+
23
−
23
View file @
ffc976e8
...
...
@@ -473,27 +473,27 @@ def CheckPaperName(Paper,Problems) :
NumChars
=
len
(
Number
)
if
(
Letter
==
'
B
'
or
Letter
==
'
F
'
or
Letter
==
'
D
'
or
Letter
==
'
T
'
)
:
if
not
CapeTownPosters
:
# BoFs, Focus Demos, Demo booths, and Tutorials just have a number,
# with no leading zeros.
# BoFs, Focus Demos, Demo booths, and Tutorials just have a number,
# with no leading zeros.
Leading
=
True
for
Char
in
Number
:
if
(
Leading
)
:
if
(
Char
==
'
0
'
)
:
Problem
=
"
Paper number should not have leading zeros
"
print
(
"
**
"
,
Problem
,
"
**
"
)
Problems
.
append
(
Problem
)
ValidSoFar
=
False
Leading
=
False
Value
=
ord
(
Char
)
-
ord
(
'
0
'
)
if
(
Value
<
0
or
Value
>
9
)
:
Problem
=
"
Non-numeric character (
"
+
Char
+
"
) in paper number
"
print
(
"
**
"
,
Problem
,
"
**
"
)
Problems
.
append
(
Problem
)
ValidSoFar
=
False
break
Leading
=
True
for
Char
in
Number
:
if
(
Leading
)
:
if
(
Char
==
'
0
'
)
:
Problem
=
"
Paper number should not have leading zeros
"
print
(
"
**
"
,
Problem
,
"
**
"
)
Problems
.
append
(
Problem
)
ValidSoFar
=
False
Leading
=
False
Value
=
ord
(
Char
)
-
ord
(
'
0
'
)
if
(
Value
<
0
or
Value
>
9
)
:
Problem
=
"
Non-numeric character (
"
+
Char
+
"
) in paper number
"
print
(
"
**
"
,
Problem
,
"
**
"
)
Problems
.
append
(
Problem
)
ValidSoFar
=
False
break
if
(
Letter
==
(
'
X
'
if
CapeTownPosters
else
'
P
'
)
and
not
TriestePosters
)
:
# This section checks for a valid poster number using the style in
...
...
@@ -524,7 +524,7 @@ def CheckPaperName(Paper,Problems) :
ValidSoFar
=
False
if
(
Letter
==
'
I
'
or
Letter
==
'
O
'
or
\
(
Letter
==
(
'
X
'
if
CapeTownPosters
else
'
P
'
)
and
TriestePosters
))
:
(
Letter
==
(
'
X
'
if
CapeTownPosters
else
'
P
'
)
or
(
CapeTownPosters
and
Letter
in
"
BFDT
"
)
and
TriestePosters
))
:
# Oral presentation numbers (and posters using the Trieste convention)
# have the form S-N where S is the session and N the number. Go
...
...
@@ -691,9 +691,9 @@ def CheckSubjectIndexEntries(Paper, Problems, TexFileName = "") :
# Read the total list of keywords from subjectKeywords.txt and newKeywords.txt
# Is there a better way to use AdassConfig.* methods to point at relative file paths?
Entries
=
compose
(
set
,
Reduce
(
__add__
),
Map
(
AdassIndex
.
ReadIndexList
))(
[
'
../Author_Template/subjectKeywords.txt
'
,
'
../Author_Template/newKeywords.txt
'
]
)
[
AdassConfig
.
MainSubjectIndexFile
(),
AdassConfig
.
NewSubjectIndexFile
()]
)
if
not
Entries
:
Problems
.
append
(
"
No subject keywords found **at all**?! (../Author_
T
emplate/{subject|new}Keywords.txt missing?
"
)
Problems
.
append
(
"
No subject keywords found **at all**?! (../Author_
t
emplate/{subject|new}Keywords.txt missing?
"
)
return
False
# ssindex entries that are not in Entries pose a problem!
...
...
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