Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gloabl actions #68

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6f20edf
use global check_prereleases
Christian-B Jun 6, 2024
b9f6442
apachee copy right and strickter pylint checks
Christian-B Jun 6, 2024
7c8a3e0
remove no longer used pylint rc file
Christian-B Jun 6, 2024
846c280
Apache copyright
Christian-B Jun 6, 2024
0cfb8d4
# pylint: disable=wrong-spelling-in-comment
Christian-B Jun 6, 2024
b707a7f
pylint-disable: R, wrong-spelling-in-docstring, invalid-name
Christian-B Jun 6, 2024
e14d338
remove disable
Christian-B Jun 6, 2024
bb674fc
f string
Christian-B Jun 6, 2024
6d7c16a
pylint fixes
Christian-B Jun 10, 2024
ac9c5c5
flake8 fixes
Christian-B Jun 10, 2024
1921ccb
PyLint fixes
Christian-B Jun 11, 2024
7a1a6d7
flake8
Christian-B Jun 11, 2024
953964a
pylint fixes
Christian-B Jun 11, 2024
ea6c6a0
flake8
Christian-B Jun 11, 2024
d07d868
pylint fixes
Christian-B Jun 11, 2024
f3f1fed
move imports
Christian-B Jun 11, 2024
6076d85
typing
Christian-B Jun 11, 2024
2e7c676
typing
Christian-B Jun 11, 2024
fdd95a5
typing
Christian-B Jun 11, 2024
a362ea0
mypy examples
Christian-B Jun 13, 2024
5be1595
# type: ignore
Christian-B Jun 13, 2024
d3527dd
merged in master
Christian-B Jun 17, 2024
788f7dd
flake8
Christian-B Jul 2, 2024
28d065c
default python version for c actions
Christian-B Jul 4, 2024
7177590
actually run the code
Christian-B Jul 4, 2024
6a43470
fix if running as a test
Christian-B Jul 4, 2024
0e75bfe
run longer
Christian-B Jul 4, 2024
6ab5c01
remove cfg files. Use the users ones
Christian-B Jul 4, 2024
073e215
remove timeout
Christian-B Jul 4, 2024
ae8bcb7
Path that works in windows
Christian-B Jul 8, 2024
a9dfef6
use Java
Christian-B Jul 8, 2024
a5343f3
java-version: 11
Christian-B Jul 8, 2024
0b9be16
fix java_jar_path
Christian-B Jul 8, 2024
3238894
fix java_jar_path again
Christian-B Jul 8, 2024
f23d1fa
fix path for windows
Christian-B Jul 8, 2024
65cc587
enable_advanced_monitor_support = False
Christian-B Jul 8, 2024
d893113
do not repeat [Machine]
Christian-B Jul 8, 2024
fe8e8c9
use_java = False
Christian-B Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix if running as a test
Christian-B committed Jul 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 6a434708d46a811ada254aef38276c566e5f8f75
11 changes: 10 additions & 1 deletion mcmc_examples/arma/arma.py
Original file line number Diff line number Diff line change
@@ -12,16 +12,22 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging
import sys
import os
from time import gmtime, strftime
import numpy

from spinn_utilities.log import FormatAdapter

from mcmc import mcmc_framework
# from mcmc_examples.arma.arma_model import ARMAModel
from mcmc_examples.arma.arma_float_model import ARMAFloatModel
# from mcmc_examples.lighthouse.lighthouse_fixed_point_model \
# import ARMAFixedPointModel

logger = FormatAdapter(logging.getLogger(__name__))

# Data to use for 1000 data points (read from file)
data_10000 = numpy.loadtxt("data_10000.csv", delimiter=",")

@@ -44,8 +50,11 @@

# get n_samples and n_boards from command line arguments if specified
if (len(sys.argv) == 2):
if sys.argv[1] != 'test_scripts.py':
try:
n_samples = int(sys.argv[1])
except ValueError:
# this happens if called as a unittest so can be ignored safely
logger.exception("Unexpected argument {sys.argv[1]}")
elif (len(sys.argv) == 3):
n_samples = int(sys.argv[1])
n_boards = int(sys.argv[2])
12 changes: 11 additions & 1 deletion mcmc_examples/lighthouse/lighthouse.py
Original file line number Diff line number Diff line change
@@ -12,18 +12,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging
import sys
import os
from time import gmtime, strftime

import pathos.multiprocessing # type: ignore
import numpy

from spinn_utilities.log import FormatAdapter

from mcmc import mcmc_framework
# from mcmc_examples.lighthouse.lighthouse_model import LightHouseModel
from mcmc_examples.lighthouse.lighthouse_float_model \
import LightHouseFloatModel
# from mcmc_examples.lighthouse.lighthouse_fixed_point_model \
# import LightHouseFixedPointModel

logger = FormatAdapter(logging.getLogger(__name__))

# Data to use for 50 data points
data_50 = [
2.37706, 4.51142, 0.406605, 0.909418, 0.642899,
@@ -247,8 +254,11 @@

# get n_samples and n_boards from command line arguments if specified
if (len(sys.argv) == 2):
if sys.argv[1] != 'test_scripts.py':
try:
n_samples = int(sys.argv[1])
except ValueError:
# this happens if called as a unittest so can be ignored safely
logger.exception("Unexpected argument {sys.argv[1]}")
elif (len(sys.argv) == 3):
n_samples = int(sys.argv[1])
n_boards = int(sys.argv[2])