Skip to content

Commit

Permalink
start v1.13.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Oct 14, 2024
1 parent e26497b commit 97203be
Show file tree
Hide file tree
Showing 7 changed files with 427 additions and 115 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include(CTest)
set(OSTAP_VERSION_MAJOR 1)
set(OSTAP_VERSION_MINOR 13)
set(OSTAP_VERSION_PATCH 5)
set(OSTAP_VERSION_TWEAK 0)
set(OSTAP_VERSION_TWEAK 1)

set(OSTAP_VERSION ${OSTAP_VERSION_MAJOR}.${OSTAP_VERSION_MINOR}.${OSTAP_VERSION_PATCH}.${OSTAP_VERSION_TWEAK})

Expand Down
6 changes: 6 additions & 0 deletions ReleaseNotes/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## New features

## Backward incompatible

## Bug fixes

# v1.13.5.0

## New features
Expand Down
32 changes: 0 additions & 32 deletions ReleaseNotes/v1.13.5.0.md

This file was deleted.

6 changes: 3 additions & 3 deletions ostap/io/bz2shelve.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ def __init__( self ,
# ==========================================================================
## compress (bzip2) the item using <code>bz2.compress</code>
def compress_item ( self , value ) :
"""Compress (zip) the item using ``bz2.compress''
""" Compress (zip) the item using ``bz2.compress''
- see bz2.compress
"""
return bz2.compress ( self.pickle ( value ) , self.compresslevel )

# =========================================================================
## uncompres (bzip2) the item using <code>bz2.decompress</code>
def uncompress_item ( self , value ) :
"""Uncompress (bzip2) the item using ``bz2.decompress''
""" Uncompress (bzip2) the item using ``bz2.decompress''
- see bz2.decompress
"""
return self.unpickle ( bz2.decompress ( value ) )
Expand All @@ -207,7 +207,7 @@ def uncompress_item ( self , value ) :
# @author Vanya BELYAEV [email protected]
# @date 2010-04-30
def open ( dbname , mode = 'c' , **kwargs ) :
"""Open a persistent dictionary for reading and writing.
""" Open a persistent dictionary for reading and writing.
The filename parameter is the base filename for the underlying
database. As a side-effect, an extension may be added to the
Expand Down
17 changes: 11 additions & 6 deletions ostap/io/lzshelve.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,23 @@
if '__main__' == __name__ : logger = getLogger ( 'ostap.io.lzshelve' )
else : logger = getLogger ( __name__ )
# =============================================================================
logger.debug ( "Simple generic (c)Pickle-based ``LZMA''-database" )
logger.debug ( "Simple generic (c)pickle-based `LZMA'-database" )
# =============================================================================
if ( 3 , 3 ) <= python_version :
try :
if ( 3 , 3 ) <= python_version : # ============================================
# =========================================================================
try : # ===================================================================
# =====================================================================
import lzma
except ImportError :
# =====================================================================
except ImportError : # ====================================================
# =====================================================================
logger.error ( "Cannot import 'lzma', lzshelve is disabled" )
lzma = None
else :
# =========================================================================
else : # ======================================================================
# =========================================================================
logger.error ( 'lzshelve is disabled for python %s' % str ( python_version ) )
lzma = None

# =============================================================================
## @class LzShelf
# `LZMA'-version of `shelve'-database
Expand Down
1 change: 1 addition & 0 deletions ostap/io/sqlitedict.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from ostap.io.pickling import dumps, loads, HIGHEST_PROTOCOL as PICKLE_PROTOCOL
import logging
from ostap.logger.logger import getLogger
# =============================================================================
logger = getLogger( __name__ )
# =============================================================================
## Is it a sqlite3 file?
Expand Down
Loading

0 comments on commit 97203be

Please sign in to comment.