-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into EQhazard
- Loading branch information
Showing
465 changed files
with
80,761 additions
and
59,162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Format Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
format-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
- name: Check code formatting | ||
run: | | ||
ruff check . --diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
- name: Run linter | ||
run: | | ||
ruff check . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Spell Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
spell-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install codespell | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install codespell | ||
- name: Run codespell | ||
run: | | ||
codespell . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
#!/usr/bin/env python # noqa: EXE001, D100, CPY001 | ||
|
||
from bincrafters import build_template_default | ||
|
||
if __name__ == "__main__": | ||
builder = build_template_default.get_builder(build_types=["Release"], archs=["x86_64"]) | ||
if __name__ == '__main__': | ||
builder = build_template_default.get_builder( | ||
build_types=['Release'], archs=['x86_64'] | ||
) | ||
builder.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,69 @@ | ||
from conans import ConanFile, CMake, tools | ||
import os | ||
|
||
class simCenterBackendApps(ConanFile): | ||
name = "SimCenterBackendApplications" | ||
version = "1.2.2" | ||
description = "Backend applications for SimCenter software" | ||
license = "BSD 3-Clause" | ||
author = "Michael Gardner [email protected]" | ||
url = "https://github.com/NHERI-SimCenter/SimCenterBackendApplications" | ||
settings = {"os": None, "build_type": None, "compiler": None, "arch": ["x86_64","armv8"]} | ||
options = {"shared": [True, False]} | ||
default_options = {"mkl-static:threaded": False, "ipp-static:simcenter_backend": True, "libcurl:with_ssl":"openssl"} | ||
generators = "cmake" | ||
build_policy = "missing" | ||
requires = ["jansson/2.13.1", | ||
"zlib/1.2.11", | ||
"libcurl/8.1.1", | ||
"eigen/3.3.7", | ||
"clara/1.1.5", | ||
"jsonformoderncpp/3.7.0", | ||
"nanoflann/1.3.2", | ||
"nlopt/2.7.1"] | ||
|
||
import os # noqa: D100, CPY001 | ||
|
||
from conans import CMake, ConanFile | ||
|
||
|
||
class simCenterBackendApps(ConanFile): # noqa: D101 | ||
name = 'SimCenterBackendApplications' | ||
version = '1.2.2' | ||
description = 'Backend applications for SimCenter software' | ||
license = 'BSD 3-Clause' | ||
author = 'Michael Gardner [email protected]' | ||
url = 'https://github.com/NHERI-SimCenter/SimCenterBackendApplications' | ||
settings = { # noqa: RUF012 | ||
'os': None, | ||
'build_type': None, | ||
'compiler': None, | ||
'arch': ['x86_64', 'armv8'], | ||
} | ||
options = {'shared': [True, False]} # noqa: RUF012 | ||
default_options = { # noqa: RUF012 | ||
'mkl-static:threaded': False, | ||
'ipp-static:simcenter_backend': True, | ||
'libcurl:with_ssl': 'openssl', | ||
} | ||
generators = 'cmake' | ||
build_policy = 'missing' | ||
requires = [ # noqa: RUF012 | ||
'jansson/2.13.1', | ||
'zlib/1.2.11', | ||
'libcurl/8.1.1', | ||
'eigen/3.3.7', | ||
'clara/1.1.5', | ||
'jsonformoderncpp/3.7.0', | ||
'nanoflann/1.3.2', | ||
'nlopt/2.7.1', | ||
] | ||
|
||
# Custom attributes for Bincrafters recipe conventions | ||
_source_subfolder = "source_subfolder" | ||
_build_subfolder = "build_subfolder" | ||
_source_subfolder = 'source_subfolder' | ||
_build_subfolder = 'build_subfolder' | ||
# Set short paths for Windows | ||
short_paths = True | ||
scm = { | ||
"type": "git", # Use "type": "svn", if local repo is managed using SVN | ||
"subfolder": _source_subfolder, | ||
"url": "auto", | ||
"revision": "auto" | ||
short_paths = True | ||
scm = { # noqa: RUF012 | ||
'type': 'git', # Use "type": "svn", if local repo is managed using SVN | ||
'subfolder': _source_subfolder, | ||
'url': 'auto', | ||
'revision': 'auto', | ||
} | ||
|
||
|
||
def configure(self): | ||
def configure(self): # noqa: D102 | ||
self.options.shared = False | ||
|
||
def configure_cmake(self): | ||
def configure_cmake(self): # noqa: D102 | ||
cmake = CMake(self) | ||
cmake.configure(source_folder=self._source_subfolder) | ||
return cmake | ||
def build(self): | ||
|
||
def build(self): # noqa: D102 | ||
cmake = self.configure_cmake() | ||
cmake.build() | ||
|
||
def package(self): | ||
self.copy(pattern="LICENSE", dst="licenses", src=self._source_subfolder) | ||
def package(self): # noqa: D102 | ||
self.copy(pattern='LICENSE', dst='licenses', src=self._source_subfolder) | ||
cmake = self.configure_cmake() | ||
cmake.install() | ||
self.copy("*", dst="bin", src=self._source_subfolder + "/applications") | ||
self.copy('*', dst='bin', src=self._source_subfolder + '/applications') | ||
|
||
def package_info(self): | ||
self.env_info.PATH.append(os.path.join(self.package_folder, "bin")) | ||
def package_info(self): # noqa: D102 | ||
self.env_info.PATH.append(os.path.join(self.package_folder, 'bin')) # noqa: PTH118 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
theRes | ||
nd | ||
ned | ||
pres | ||
writeT | ||
sOrD | ||
responseD | ||
WORKD | ||
workd | ||
oT | ||
WriteT | ||
Suh | ||
WLL | ||
VIE | ||
Momento | ||
lamda | ||
dum | ||
numer | ||
reord | ||
fro | ||
Equil | ||
ot | ||
repID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.