Skip to content

Commit

Permalink
Change License to MPLv2 (#55)
Browse files Browse the repository at this point in the history
Change License to MPLv2
  • Loading branch information
yomichi authored Jun 4, 2024
2 parents 6739332 + aeaeae0 commit c912c7e
Show file tree
Hide file tree
Showing 78 changed files with 503 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for aca
- From PyPI (recommended)

```bash
pip3 install physbo
python3 -m pip install physbo
```

- From source (for developers)
1. Update pip (>= 19.0)

```bash
pip3 install -U pip
python3 -m pip install -U pip
```

1. Download or clone the github repository
Expand All @@ -48,15 +48,15 @@ pip3 install physbo
# ./PHYSBO is the root directory of PHYSBO
# pip install options such as --user are avaiable
pip3 install ./PHYSBO
python3 -m pip install ./PHYSBO
```

1. Note: Do not `import physbo` at the root directory of the repository because `import physbo` does not try to import the installed PHYSBO but one in the repository, which includes Cython codes not compiled.

## Uninstall

```bash
pip3 uninstall physbo
python3 -m pip uninstall physbo
```

## Usage
Expand All @@ -70,7 +70,7 @@ A tutorial and a dataset of a paper about PHYSBO can be found in [PHYSBO Gallery
## License

PHYSBO was developed based on [COMBO](https://github.com/tsudalab/COMBO) for academic use.
This package is distributed under GNU General Public License version 3 (GPL v3) or later.
PHYSBO v2 is distributed under Mozilla Public License version 2.0 (MPL v2).
We hope that you cite the following reference when you publish the results using PHYSBO:

[“Bayesian optimization package: PHYSBO”, Yuichi Motoyama, Ryo Tamura, Kazuyoshi Yoshimi, Kei Terayama, Tsuyoshi Ueno, Koji Tsuda, Computer Physics Communications Volume 278, September 2022, 108405.](https://doi.org/10.1016/j.cpc.2022.108405)
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/manual/en/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Main Developers
License
----------------------

GNU General Public License version 3
PHYSBO v2 is distributed under `the Mozilla Public License version 2.0 (MPL v2) <https://www.mozilla.org/en-US/MPL/2.0/>`_.

Copyright (c) <2020-> The University of Tokyo. All rights reserved.

Part of this software is developed under the support of Project for advancement of software usability in materials science by The Institute for Solid State Physics, The University of Tokyo.
Part of this software is developed under the support of "Project for advancement of software usability in materials science" by The Institute for Solid State Physics, The University of Tokyo.
3 changes: 1 addition & 2 deletions docs/sphinx/manual/ja/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ Bibtexは以下の通りです。 ::

ライセンス
----------------------
| 本ソフトウェアのプログラムパッケージおよびソースコード一式はGNU
General Public License version 3(GPL v3)に準じて配布されています。
| PHYSBO v2 のソースコードは Mozilla Public License version 2.0(MPL v2)のもとで公開・頒布されています。
Copyright (c) <2020-> The University of Tokyo. All rights reserved.

Expand Down
7 changes: 7 additions & 0 deletions examples/multiple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import itertools

import numpy as np
Expand Down
7 changes: 7 additions & 0 deletions examples/multiple_score.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import itertools

import numpy as np
Expand Down
7 changes: 7 additions & 0 deletions examples/simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
import physbo

Expand Down
7 changes: 7 additions & 0 deletions examples/simple_score.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
import physbo

Expand Down
7 changes: 7 additions & 0 deletions examples/simple_time.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

### This example describes how to save elapsed time


Expand Down
7 changes: 7 additions & 0 deletions physbo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from . import gp
from . import opt
from . import blm
Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

""" Bayesian Linear Model
"""

Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/basis/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from .fourier import fourier
7 changes: 7 additions & 0 deletions physbo/blm/basis/fourier.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# -*- coding:utf-8 -*-
import numpy as np

Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from .model import model
7 changes: 7 additions & 0 deletions physbo/blm/core/model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
from .. import inf

Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/inf/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from . import exact
7 changes: 7 additions & 0 deletions physbo/blm/inf/exact.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
import scipy

Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/lik/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from ._src import cov
from .linear import linear
from .gauss import gauss
7 changes: 7 additions & 0 deletions physbo/blm/lik/_src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from .cov import cov
7 changes: 7 additions & 0 deletions physbo/blm/lik/_src/cov.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np


Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/lik/gauss.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np


Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/lik/linear.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np


Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/predictor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import physbo.predictor


Expand Down
7 changes: 7 additions & 0 deletions physbo/blm/prior/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from .gauss import gauss
7 changes: 7 additions & 0 deletions physbo/blm/prior/gauss.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np


Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from . import cov
from . import mean
from . import lik
Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from .prior import prior
from .model import model

Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/core/learning.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# coding=utf-8
import numpy as np
import scipy.optimize
Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/core/model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np

from physbo import blm
Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/core/prior.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
import scipy

Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/cov/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from .gauss import gauss
1 change: 1 addition & 0 deletions physbo/gp/cov/_src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 7 additions & 0 deletions physbo/gp/cov/_src/enhance_gauss.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
cimport numpy as np
import cython
Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/cov/gauss.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# -*- coding:utf-8 -*-
import numpy as np
from scipy import spatial
Expand Down
7 changes: 7 additions & 0 deletions physbo/gp/inf/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from . import exact
7 changes: 7 additions & 0 deletions physbo/gp/inf/exact.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (C) 2020- The University of Tokyo
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import numpy as np
import scipy
from ... import misc
Expand Down
Loading

0 comments on commit c912c7e

Please sign in to comment.