Source code for casinotools.file_format.casino3.version
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
.. py:currentmodule:: casinotools.file_format.casino3.version
.. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca>
Different versions of CASINO 3.
"""
###############################################################################
# Copyright 2020 Hendrix Demers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
# Standard library modules.
# Third party modules.
# Local modules.
# Project modules.
# Globals and constants variables.
"""
Version of casino.
@version 3010202 -> 3.1.2.2
"""
SIM_OPTIONS_VERSION_3_1_2_2 = 3010202
"""
Version of casino.
@version 3010205 -> 3.1.2.5
"""
SIM_OPTIONS_VERSION_3_1_2_5 = 3010205
"""
Version of casino.
@version 3010301 -> 3.1.3.1
"""
SIM_OPTIONS_VERSION_3_1_3_1 = 3010301
"""
Version of casino.
@version 3010305 -> 3.1.3.5
"""
SIM_OPTIONS_VERSION_3_1_3_5 = 3010305
"""
Version of casino.
@version 3010309 -> 3.1.3.9
"""
SIM_OPTIONS_VERSION_3_1_3_9 = 3010309
"""
Version of casino.
@version 30103040 -> 3.1.3.40
"""
SIM_OPTIONS_VERSION_3_1_3_40 = 30103040
"""
Version of casino.
@version 30103070 -> 3.1.3.70
"""
SIM_OPTIONS_VERSION_3_1_3_70 = 30103070
"""
Version of casino.
@version 3010400 -> 3.1.4.0
"""
SIM_OPTIONS_VERSION_3_1_4_0 = 3010400
"""
Version of casino.
@version 3010403 -> 3.1.4.3
"""
SIM_OPTIONS_VERSION_3_1_4_3 = 3010403
"""
Version of casino.
@version 3010404 -> 3.1.4.4
"""
SIM_OPTIONS_VERSION_3_1_4_4 = 3010404
"""
Version of casino.
@version 3010405 -> 3.1.4.5
"""
SIM_OPTIONS_VERSION_3_1_4_5 = 3010405
"""
Version of casino.
@version 3010406 -> 3.1.4.6
"""
SIM_OPTIONS_VERSION_3_1_4_6 = 3010406
"""
Version of casino.
@version 3010407 -> 3.1.4.7
"""
SIM_OPTIONS_VERSION_3_1_4_7 = 3010407
"""
Version of casino.
@version 30104060 -> 3.1.4.60
"""
SIM_OPTIONS_VERSION_3_1_4_60 = 30104060
"""
Version of casino.
@version 30104071 -> 3.1.4.71
"""
SIM_OPTIONS_VERSION_3_1_4_71 = 30104071
"""
Version of casino.
@version 30104072 -> 3.1.4.72
"""
SIM_OPTIONS_VERSION_3_1_4_72 = 30104072
"""
Version of casino.
@version 30104073 -> 3.1.4.73
"""
SIM_OPTIONS_VERSION_3_1_4_73 = 30104073
"""
Version of casino.
@version 30104074 -> 3.1.4.74
"""
SIM_OPTIONS_VERSION_3_1_4_74 = 30104074
"""
Version of casino.
@version 30104080 -> 3.1.4.80
"""
SIM_OPTIONS_VERSION_3_1_4_80 = 30104080
"""
Version of casino.
@version 30104096 -> 3.1.4.96
"""
SIM_OPTIONS_VERSION_3_1_4_96 = 30104096
"""
Version of casino.
@version 30105001 -> 3.1.5.1
"""
SIM_OPTIONS_VERSION_3_1_5_1 = 30105001
"""
Version of casino.
@version 30105004 -> 3.1.5.4
"""
SIM_OPTIONS_VERSION_3_1_5_4 = 30105004
"""
Version of casino.
@version 30105005 -> 3.1.5.5
"""
SIM_OPTIONS_VERSION_3_1_5_5 = 30105005
"""
Version of casino.
@version 30105010 -> 3.1.5.10
"""
SIM_OPTIONS_VERSION_3_1_5_10 = 30105010
"""
Version of casino.
@version 30105012 -> 3.1.5.12
"""
SIM_OPTIONS_VERSION_3_1_5_12 = 30105012
"""
Version of casino.
@version 30105020 -> 3.1.5.20
"""
SIM_OPTIONS_VERSION_3_1_5_20 = 30105020
"""
Version of casino.
@version 30105021 -> 3.1.5.21
"""
SIM_OPTIONS_VERSION_3_1_5_21 = 30105021
"""
Version of casino.
@version 30105022 -> 3.1.5.22
"""
SIM_OPTIONS_VERSION_3_1_5_22 = 30105022
"""
Version of casino.
@version 30107000 -> 3.1.7.0
"""
SIM_OPTIONS_VERSION_3_1_7_0 = 30107000
"""
Version of casino.
@version 30107001 -> 3.1.7.1
"""
SIM_OPTIONS_VERSION_3_1_7_1 = 30107001
"""
Version of casino.
@version 30107002 -> 3.1.7.2
"""
SIM_OPTIONS_VERSION_3_1_7_2 = 30107002
"""
Version of casino.
@version 30107003 -> 3.1.7.3
"""
SIM_OPTIONS_VERSION_3_1_7_3 = 30107003
"""
Version of casino.
@version 301 -> 3.1.
"""
SIM_OPTIONS_VERSION_3_1__ = 301
"""
Version of casino.
@version 30108001 -> 3.1.8.1
Added:
- Plasmon energy (eV) in the region library file.
- Work-function energy (eV) in the region library file.
Modified:
- Plasmon energy (eV) in the region data of casino file.
- Work-function energy (eV) in the region data of casino file.
"""
SIM_OPTIONS_VERSION_3_1_8_1 = 30108001
"""
Version of casino.
@version 30108002 -> 3.1.8.2
Added:
- Sample rotation Y and z in casino_sample.
"""
SIM_OPTIONS_VERSION_3_1_8_2 = 30108002
"""
Version of casino.
@version 30109000 -> 3.1.9.0
Added:
- Correct bug where some trajectories pass across the sample without scattering.
"""
SIM_OPTIONS_VERSION_3_1_9_0 = 30109000
"""
Version of casino.
@version 30200001 -> 3.2.0.0
Official release (2011/08/05).
"""
SIM_OPTIONS_VERSION_3_2_0_0 = 30200000
"""
Version of casino.
@version 30200001 -> 3.2.0.1
Official release (2011/08/25).
"""
SIM_OPTIONS_VERSION_3_2_0_1 = 30200001
"""
Version of casino.
@version 30200002 -> 3.2.0.2
Official release (not yet).
Fixed: bug with merge (let's hope) giving bugged region that will crash on unmerge or give
black (invalid) regions if the simulation is executed after a save/load
"""
SIM_OPTIONS_VERSION_3_2_0_2 = 30200002
"""
Version of casino.
@version 30200003 -> 3.2.0.3
Fixed: Bug with the DialogChanges popup where the simulation was started after clicking OK button.
Now only the Restart button start the simulation.
"""
SIM_OPTIONS_VERSION_3_2_0_3 = 30200003
"""
Version of casino.
@version 30300000 -> 3.3.0.0
Implementation of 3D point spread functions (PSFs) in CASINO.
"""
SIM_OPTIONS_VERSION_3_3_0_0 = 30300000
"""
Version of casino.
@version 30300004 -> 3.3.0.4
Implementation of 3D point spread functions (PSFs) in CASINO.
"""
SIM_OPTIONS_VERSION_3_3_0_4 = 30300004
"""
Current version of casino.
"""
SIM_OPTIONS_CURRENT_VERSION = SIM_OPTIONS_VERSION_3_3_0_4
[docs]
def is_version_casino3(version):
if str(version).startswith("30"):
return True
return False