Skip to content

Commit

Permalink
Update headers in source code
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Dec 13, 2023
1 parent 56ff653 commit 93b9fcf
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 62 deletions.
9 changes: 1 addition & 8 deletions RELEASING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Announcing
Post-release actions
--------------------

- Edit *VERSION* symbols in blosc2_btune/__init__.py *and* pyproject.toml in main to increment the
- Edit *VERSION* symbols in blosc2_grok/__init__.py *and* pyproject.toml in main to increment the
version to the next minor one (i.e. X.Y.Z --> X.Y.(Z+1).dev).

- Create new headers for adding new features in ``RELEASE_NOTES.md``
Expand All @@ -73,10 +73,3 @@ Post-release actions
$ git push

That's all folks!


.. Local Variables:
.. mode: rst
.. coding: utf-8
.. fill-column: 70
.. End:
12 changes: 6 additions & 6 deletions blosc2_grok/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Blosc - Blocked Shuffling and Compression Library
##############################################################################
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# Copyright (C) 2023 The Blosc Developers <[email protected]>
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: BSD 3-Clause (see LICENSE.txt)
#
# See LICENSE.txt for details about copyright and rights to use.
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

import ctypes
import os
Expand Down Expand Up @@ -107,7 +107,7 @@ def destroy():
lib.blosc2_grok_destroy()


# TODO: change these for real defaults
# TODO: change these by the actual defaults
params_defaults = {
'tile_size': (0, 0),
'tile_offset': (0, 0),
Expand Down
9 changes: 8 additions & 1 deletion examples/params.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
##############################################################################
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

import blosc2
import blosc2_grok
import argparse
from pathlib import Path
import numpy as np
from PIL import Image

Expand Down
9 changes: 8 additions & 1 deletion examples/roundtrip.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
##############################################################################
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

import blosc2
import blosc2_grok
import argparse
from pathlib import Path
import numpy as np
from PIL import Image

Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
##############################################################################
# Btune for Blosc2 - Automatically choose the best codec/filter for your data
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# Copyright (c) 2023 The Blosc Developers <[email protected]>
# https://btune.blosc.org
# License: GNU Affero General Public License v3.0
# See LICENSE.txt for details about copyright and rights to use.
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

[build-system]
Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
##############################################################################
# Btune for Blosc2 - Automatically choose the best codec/filter for your data
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# Copyright (c) 2023 The Blosc Developers <[email protected]>
# https://btune.blosc.org
# License: GNU Affero General Public License v3.0
# See LICENSE.txt for details about copyright and rights to use.
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

from skbuild import setup
Expand Down
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Blosc - Blocked Shuffling and Compression Library
##############################################################################
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# Copyright (C) 2023 The Blosc Developers <[email protected]>
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

set(GRK_BUILD_LIBPNG OFF)
set(GRK_BUILD_JPEG OFF)
Expand Down
10 changes: 5 additions & 5 deletions src/blosc2_grok.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (c) 2021 The Blosc Development Team <[email protected]>
https://blosc.org
License: GNU Affero General Public License v3.0 (see LICENSE.txt)
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
*
* Copyright (c) 2023 The Blosc Development Team <[email protected]>
* https://blosc.org
* License: GNU Affero General Public License v3.0 (see LICENSE.txt)
**********************************************************************/

#include <memory>
Expand Down
10 changes: 5 additions & 5 deletions src/blosc2_grok.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (c) 2021 The Blosc Development Team <[email protected]>
https://blosc.org
License: GNU Affero General Public License v3.0 (see LICENSE.txt)
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
*
* Copyright (c) 2023 The Blosc Development Team <[email protected]>
* https://blosc.org
* License: GNU Affero General Public License v3.0 (see LICENSE.txt)
**********************************************************************/


Expand Down
12 changes: 6 additions & 6 deletions src/roundtrip.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2023 The Blosc Developers <[email protected]>
https://blosc.org
License: GNU Affero General Public License v3.0 (see LICENSE.txt)
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
*
* Copyright (c) 2023 The Blosc Development Team <[email protected]>
* https://blosc.org
* License: GNU Affero General Public License v3.0 (see LICENSE.txt)
Test program demonstrating use of the Blosc filter from C code.
Compile this program with cmake and run:
Expand Down Expand Up @@ -157,4 +157,4 @@ int main(void) {
blosc2_grok_destroy();
blosc2_destroy();
return error;
}
}
25 changes: 13 additions & 12 deletions src/test_grok.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2023 The Blosc Developers <[email protected]>
https://blosc.org
License: GNU Affero General Public License v3.0 (see LICENSE.txt)
Test program demonstrating use of the Blosc filter from C code.
Compile this program with cmake and run:
$ ./test_grok
Compress OK
Decompress OK
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
*
* Copyright (c) 2023 The Blosc Development Team <[email protected]>
* https://blosc.org
* License: GNU Affero General Public License v3.0 (see LICENSE.txt)
Test program demonstrating use of the Blosc filter from C code.
Compile this program with cmake and run:
$ ./test_grok
Compress OK
Decompress OK
Successful image roundtrip!
**********************************************************************/

Expand Down
12 changes: 6 additions & 6 deletions tests/test_jp2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#######################################################################
# Copyright (c) 2019-present, Blosc Development Team <[email protected]>
# All rights reserved.
##############################################################################
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2
#
# This source code is licensed under a BSD-style license (found in the
# LICENSE file in the root directory of this source tree)
#######################################################################
# Copyright (c) 2023 The Blosc Development Team <[email protected]>
# https://blosc.org
# License: GNU Affero General Public License v3.0 (see LICENSE.txt)
##############################################################################

import numpy as np
import pytest
Expand Down

0 comments on commit 93b9fcf

Please sign in to comment.