Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sec23
korte
pymagglobal
Commits
182e9df6
Commit
182e9df6
authored
Jan 18, 2022
by
Maximilian Schanner
Browse files
Change AD/BC to CE/BCE
parent
d1dd0da6
Changes
2
Hide whitespace changes
Inline
Side-by-side
pymagglobal/__main__.py
View file @
182e9df6
...
...
@@ -160,7 +160,7 @@ def argument_parser():
'ages before the year 1950 in ka (kiloyears), '
'i.e. the epoch 10 refers to the year -8050 '
'without the flag.'
)
# The default time unit is years
AD
# The default time unit is years
CE
base_parser
.
set_defaults
(
t_unit
=
'yrs.'
,
t_label
=
't [yrs.]'
,
longterm
=
False
)
...
...
pymagglobal/_commands.py
View file @
182e9df6
...
...
@@ -82,14 +82,14 @@ def args2times(args):
def
yr2lt
(
times
):
'''Translate times given in years
AD
into kilo-years `before present
'''Translate times given in years
CE
into kilo-years `before present
<https://en.wikipedia.org/wiki/Before_Present>`_ often used for
longterm models.
Parameters
----------
times: float or int
Years
AD
.
Years
CE
.
Returns
-------
...
...
@@ -108,7 +108,7 @@ def yr2lt(times):
def
lt2yr
(
times
):
'''Translate kilo-years `before present
<https://en.wikipedia.org/wiki/Before_Present>`_ into years
AD
.
<https://en.wikipedia.org/wiki/Before_Present>`_ into years
CE
.
Parameters
----------
...
...
@@ -118,7 +118,7 @@ def lt2yr(times):
Returns
-------
float or int
Years
AD
.
Years
CE
.
Examples
--------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment