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

DO NOT MERGE {main-> niehs} #4

Closed
wants to merge 531 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
531 commits
Select commit Hold shift + click to select a range
b842ac3
Fixed cleveland plot for different distributions
Sooyeong Jun 19, 2021
b102420
Updated MA density plot for continous cases to reflect different prio…
Sooyeong Jun 19, 2021
24d9a55
Updated MA density plot for continous cases to reflect different prio…
Sooyeong Jun 19, 2021
ffd45d0
Fixed dichotomous plot y axis for single model MCMC case
Sooyeong Jun 20, 2021
3839bea
Create a test code for updates
Sooyeong Jun 20, 2021
c7b09d3
Fixes to priors
wheelemw Jun 21, 2021
6c1d9c7
More updates.
wheelemw Jun 21, 2021
d993543
My changes
wheelemw Jun 21, 2021
2dbd47f
final
wheelemw Jun 21, 2021
7dca7c5
Update MA_density plot logic
Sooyeong Jun 21, 2021
0f82d96
Updated ma_dichotomous laplace fit base plot
Sooyeong Jun 21, 2021
aaddca5
Current Work
wheelemw Jun 22, 2021
7750a6e
Merge branch 'SL_dataviz' of https://github.com/wheelemw/RBMDS into S…
wheelemw Jun 22, 2021
41ce518
Merge branch 'SL_dataviz' into ToxicR
wheelemw Jun 22, 2021
5cbf963
Updated Plots.
wheelemw Jun 22, 2021
97acf0b
More simulations.
wheelemw Jun 23, 2021
6464d26
Merge branch 'ToxicR' of https://github.com/wheelemw/RBMDS into ToxicR
wheelemw Jun 23, 2021
ccdeb5d
fixed dichotomous confidence limits
cwsimmon Jun 25, 2021
fdaebec
More updates for the ToxicR push.
wheelemw Jun 25, 2021
bb1a0de
FASTER?
wheelemw Jun 25, 2021
046d24f
fixed continuous confidence limits
cwsimmon Jun 26, 2021
4585d8f
added methods to clean NaNs from results
cwsimmon Jun 29, 2021
fcc2795
Resolved merge conflicts
cwsimmon Jul 6, 2021
e1c9bb5
Half Way to Prior specification.
wheelemw Jul 7, 2021
edf12b8
fixed restricting of polynomial parameters when using auto adv dir
cwsimmon Jul 14, 2021
7608cc0
A few more fixes.
wheelemw Jul 14, 2021
151a99d
MCMC.Test
wheelemw Jul 19, 2021
7eb98e4
Bob
Jul 21, 2021
73201a6
local files
wheelemw Jul 22, 2021
3f6bf9f
Simulation For Paper.
wheelemw Jul 22, 2021
f7c20fd
complete merge.
wheelemw Jul 22, 2021
04cde8f
Fixed Model Priors.
wheelemw Jul 23, 2021
8dadcf9
Fixing Rescale issue.
wheelemw Jul 27, 2021
c001374
Added conditional directives needed for windows compilation
cwsimmon Jul 28, 2021
01c22ad
Fixed continuous dose-scale & sped up code.
wheelemw Jul 28, 2021
04266f4
Updates to meet Visual Studio compiler requirements
cwsimmon Jul 29, 2021
e51911b
Partial Run
wheelemw Jul 29, 2021
74fc589
MoreStuff
wheelemw Jul 29, 2021
c3f0a81
Fixed possible problem with bmd_cdf?
wheelemw Jul 30, 2021
55024cb
Added error bar calcs and storage for dichotomous MA
cwsimmon Jul 30, 2021
ad29841
Removing unneeded files
cwsimmon Jul 30, 2021
db2c803
Double Bubble is ok Tootsie Pops are the best.
Jul 30, 2021
73c47ec
Fixed Conflict.
wheelemw Jul 31, 2021
ab2d2d1
new test file.
wheelemw Jul 31, 2021
e287c3d
Fixed MCMC/Laplace mashup.
wheelemw Aug 2, 2021
fbedd23
Final Fixes.
wheelemw Aug 2, 2021
5849509
Simulations
wheelemw Aug 2, 2021
3e4c9f8
Temp Commit.
wheelemw Aug 2, 2021
edfc0ee
more sims
Aug 2, 2021
32c9986
Merge branch 'MA-Paper-Branch' of https://github.com/wheelemw/RBMDS i…
Aug 2, 2021
0d35e8b
local commit
wheelemw Aug 2, 2021
40d9ee4
local commit
wheelemw Aug 2, 2021
7aa51da
Fixed Exp-3 issue.
wheelemw Aug 2, 2021
51fb8b1
boom.
wheelemw Aug 2, 2021
794b65a
I think this works
wheelemw Aug 2, 2021
bcf1bb7
Revert "boom."
wheelemw Aug 2, 2021
8f7bc31
Revert "Temp Commit."
wheelemw Aug 2, 2021
76008b1
Polynomial work
wheelemw Aug 2, 2021
1de0146
Temp Commit.
wheelemw Aug 2, 2021
962ce36
Ready for simulation *almost*.
wheelemw Aug 4, 2021
5e68038
Ready for simulation *almost*.
wheelemw Aug 4, 2021
6634937
Merge branch 'ToxicR' into MA-Paper-Branch
wheelemw Aug 4, 2021
d0ad088
Ready for the Sim.
wheelemw Aug 4, 2021
0ef4d80
Ready to go for the simulation.
wheelemw Aug 5, 2021
23191c6
Merge branch 'master' into EMVL
cwsimmon Aug 5, 2021
0bba0ca
Fixed polynomial rescale issues.
wheelemw Aug 5, 2021
7965c1f
Merge branch 'master' into EMVL
cwsimmon Aug 5, 2021
6db682d
Most Recent.
wheelemw Aug 6, 2021
9c0c5b9
In the middle of the valgrind fixes.
wheelemw Aug 6, 2021
116a63d
Fixed linking error in compilation
cwsimmon Aug 9, 2021
af3ca4e
Many individual memoray problems Part 1.
wheelemw Aug 9, 2021
5fcff9c
Valgrinded except Dicho MA.
wheelemw Aug 9, 2021
c7c2717
Finished valgrindfit checks for sm/ma laplace/mcmc.
wheelemw Aug 10, 2021
f3527bf
Removed cerr
wheelemw Aug 10, 2021
e25053e
Polynomials fixed :(
wheelemw Aug 10, 2021
5e47f37
ToxicR!
wheelemw Aug 10, 2021
dc0e610
Close to done.
wheelemw Aug 11, 2021
3f2b41c
Exp-3 fixed.
wheelemw Aug 12, 2021
91ff074
Merge branch 'ToxicR'
wheelemw Aug 12, 2021
a2768b3
Final Checks and push.
wheelemw Aug 12, 2021
cd6ebb2
Final Checks and push.
wheelemw Aug 12, 2021
ed3df51
Entry Code.
wheelemw Aug 12, 2021
de7bb85
dumb R file placement fixed.
Aug 12, 2021
c438349
Merge branch 'master' into EMVL
cwsimmon Aug 16, 2021
bf51ada
Added example dicho code.
wheelemw Aug 18, 2021
f8275cd
Data
wheelemw Aug 23, 2021
8c0d76f
Shirley is done. Shirley you can't be serious. I am serious and don'…
wheelemw Aug 23, 2021
537ad06
Chilly Willly's trend test. It is frozen through and through.
wheelemw Aug 24, 2021
0ff354d
NTP Dunnn.
wheelemw Aug 25, 2021
86b379d
Poly wants a cracker.
wheelemw Aug 25, 2021
15a6290
Added checking for negative deviances and dfs for GSL CDF call. Fixe…
cwsimmon Aug 25, 2021
8465a6b
One more fix for VS compilation
cwsimmon Aug 25, 2021
d8945a1
Better Max.
wheelemw Aug 30, 2021
ce51dc9
Cleaining the code up.
wheelemw Sep 2, 2021
a0240aa
Beginning to make the package modular'
wheelemw Sep 2, 2021
d137af2
Cleaned file structures.
wheelemw Sep 3, 2021
6ca5558
Started Documentation.
wheelemw Sep 3, 2021
d72fc71
removed file alphablend.R
wheelemw Sep 3, 2021
10685d8
Modules
wheelemw Sep 3, 2021
0680715
Added calcs for parameter confidence intervals. Fixed wrapper so tha…
cwsimmon Sep 13, 2021
b15501c
Merge branch 'master' into EMVL
cwsimmon Sep 13, 2021
adb1496
Fixed (again) wrapper so that log-normal distributions only run for e…
cwsimmon Sep 17, 2021
b6772e1
fixes for checking if parameter hit a bound
cwsimmon Sep 23, 2021
4bfbb31
Examples.
wheelemw Sep 24, 2021
8967c79
Checked Cody
wheelemw Sep 24, 2021
4fe49a5
Merge branch 'master' into EMVL
cwsimmon Sep 24, 2021
f0478bf
fixed polynomial restrictions
cwsimmon Sep 28, 2021
e6d1743
added BMDS version function
cwsimmon Sep 29, 2021
c124ac0
Added FUNL and asinh() transform
wheelemw Sep 29, 2021
25f3604
code cleanup
cwsimmon Sep 29, 2021
d93daaa
FUNL
wheelemw Sep 29, 2021
a2e900e
Fix for relative deviation with decreasing response
cwsimmon Oct 5, 2021
82dd760
Fixed.Rmd file
wheelemw Oct 5, 2021
3a23281
Fixed MA plots to 'normal'
wheelemw Oct 5, 2021
949cad9
local data
wheelemw Oct 6, 2021
e46279e
Updated Priors
wheelemw Oct 7, 2021
2d27d10
Multistage GOF fix.
wheelemw Oct 12, 2021
cec61c8
Merge branch 'master' into EMVL
cwsimmon Oct 13, 2021
25834df
PolyK.
wheelemw Oct 22, 2021
82392e8
Fixed round-off/underflow error for tests of interest
cwsimmon Oct 27, 2021
6be187d
New Makevars.
wheelemw Nov 1, 2021
819346c
Middle of PolyK test.
wheelemw Nov 2, 2021
8923c02
Poly K committed.
Nov 3, 2021
04f3df7
Fixed a few things
wheelemw Nov 10, 2021
e1ac0f9
* Tests for single continuous models (Laplace and MLE)
eric-wimberley Oct 21, 2021
fb8b594
* Model averaging tests
eric-wimberley Oct 22, 2021
b279b89
* Additional MA testing
eric-wimberley Oct 25, 2021
387f8dd
Organized Bayesian priors for all model/variance combinations.
eric-wimberley Oct 26, 2021
729e04f
* Power / log-normal priors generate an error message
eric-wimberley Nov 2, 2021
f3d3f2f
* Structure of MCMC models is now the same as Laplace/MLE
eric-wimberley Nov 3, 2021
109f7d1
MLE Hill and Polynomial bounds now depend on whether response is incr…
eric-wimberley Nov 11, 2021
30606b9
* Goodness of fit added to R object for dichotomous models
eric-wimberley Nov 15, 2021
d9a5ebc
Fixed MCMC-MA and single model prior specification problems.
wheelemw Nov 17, 2021
f8651a1
Push for Windows Compile.
wheelemw Nov 18, 2021
ccc3151
Fixed crashing on 1 obs/dose group fit statistics and log-normal plot…
wheelemw Dec 1, 2021
dd76930
Switched grep to grepl.
wheelemw Dec 1, 2021
3e44460
Adding ROxygen documentation.
eric-wimberley Nov 17, 2021
d6739ca
Roxygen documentation for all methods.
eric-wimberley Nov 18, 2021
fa75ee8
SD based priors.
eric-wimberley Dec 1, 2021
6db5ff0
Fixed errors in dicho dof and pvalue
cwsimmon Dec 2, 2021
6b193ce
Fixed suff-stat prior problem.
wheelemw Dec 2, 2021
41d26cc
Fixed MLE fits and constraints.
wheelemw Dec 7, 2021
7737ca6
Aditional Fix.
Dec 8, 2021
b264d7f
Test v.1.
wheelemw Dec 9, 2021
43846d6
Fix Laplace MA range find.
Dec 9, 2021
98767e8
Fixed Plot MA Laplace.
wheelemw Dec 10, 2021
1eacdbd
Merge branch 'ToxcR_w_Sciome' of https://github.com/wheelemw/RBMDS in…
Dec 10, 2021
1648262
Fixed MA Continuous pltos + MA
Dec 10, 2021
9aae48b
* Vignettes working
eric-wimberley Dec 10, 2021
9b0dfb6
References added to continuous vignette.
eric-wimberley Dec 13, 2021
dc4c98b
Removed stdlib.h from path + MA range fix.
Dec 14, 2021
796da3b
Works with Apple Clang++ now.
Dec 14, 2021
cc468d4
21.12 is ready!
Dec 14, 2021
86bcf79
Windows 21.10 compiled.
wheelemw Dec 14, 2021
7454897
ToxicR darwin M1 build Done.
Dec 15, 2021
bcab7a3
fixed bug in exp_3 mean calc
cwsimmon Dec 15, 2021
6977dc2
Intel MAC silicon.
wheelemw Dec 15, 2021
bcd14d3
All ready.
Dec 15, 2021
31fef46
Merge branch 'ToxcR_w_Sciome' of https://github.com/wheelemw/RBMDS in…
Dec 15, 2021
1f2dc17
Fixed bounded parm calcs for exp_3
cwsimmon Dec 20, 2021
2bd9eaf
fix for bug introduced in last commit
cwsimmon Jan 3, 2022
c59520f
slight fix
wheelemw Jan 7, 2022
7a0af30
Fix.
wheelemw Jan 10, 2022
dc624d8
Added checking of BMD values for valid result. Added alpha restricti…
cwsimmon Jan 11, 2022
0f684cc
Remove Infinite Loop-Polynomial
wheelemw Jan 19, 2022
d57018b
Fixed MA integrating issue.
wheelemw Jan 24, 2022
4e2b947
ToxicR Ready to rumble.
wheelemw Jan 24, 2022
64b7a8d
ToxicR Ready to go.
Jan 24, 2022
91b55d7
ToxicR Done.
wheelemw Jan 24, 2022
9134b03
ToxicR ready to go
wheelemw Jan 24, 2022
8ecf5e1
Small Fix
wheelemw Jan 25, 2022
c00f9f6
Final.
wheelemw Jan 25, 2022
e6cabf2
Final.
Jan 25, 2022
52f6c4a
Final.
wheelemw Jan 25, 2022
c82b466
Final.
wheelemw Jan 25, 2022
c12575a
Merge branch 'master' into EMVL
cwsimmon Jan 26, 2022
7c34a00
Merge branch 'main' of https://github.com/NIEHS/ToxicR into EMVL
cwsimmon Feb 18, 2022
3867185
typo in bmd_calculate.h
cwsimmon Mar 7, 2022
3a8cb72
22.04 Commit.
wheelemw Mar 8, 2022
ecec9ee
MA Summaries added for laplace.
wheelemw Mar 10, 2022
a683e3c
Current 22.04 (1.0.1) passed unit tests
wheelemw Mar 10, 2022
f8164b1
Added Maximum Predict Routines
wheelemw Mar 14, 2022
f49c418
Predict Continuous MCMC.
wheelemw Mar 15, 2022
d5e43ac
Removed restricted constraint on alpha parameter for poly
cwsimmon Mar 15, 2022
2e9a3bf
Predict dichotomous.
wheelemw Mar 15, 2022
c253548
set transform_dose property for continuous models
cwsimmon Mar 15, 2022
08baa40
Langevin didn't work.
wheelemw Apr 4, 2022
f9a2bf5
Fix Cleveland plot.
wheelemw Apr 4, 2022
3014c57
Remove lognormal models.
wheelemw Apr 11, 2022
e15bdad
Dichotomous data.
wheelemw Apr 12, 2022
a50dfed
More unit tests.
wheelemw Apr 20, 2022
9ea55ed
Added fix for frequentist dicho AIC, df, and pvalue
cwsimmon Apr 20, 2022
3649bd1
Changed directory structure to match new NIEHS repo
cwsimmon Apr 21, 2022
ee28be7
Merge branch 'main' of https://github.com/NIEHS/ToxicR into main
cwsimmon Apr 21, 2022
f3e8ccc
Merging dev repo for ToxicR
cwsimmon Apr 21, 2022
034b48d
removed debug output
cwsimmon Apr 22, 2022
c28f25c
add build commands
shapiromatron Apr 25, 2022
9982afa
update versions
shapiromatron Apr 25, 2022
4a73115
remove hard-coded paths
shapiromatron Apr 25, 2022
bd9a5d7
Added template file and modified gitignore
cwsimmon Apr 26, 2022
0addae8
Changed to always use Matt's BMD value to ensure correctness of BMR
cwsimmon May 18, 2022
383738d
Removed workaround for exp3 mean
cwsimmon May 24, 2022
1337045
add gitlab continuous integration (#2)
shapiromatron May 25, 2022
73d1e7e
Fixed (again) lognormal est medians and 'a' parameter
cwsimmon May 28, 2022
d9a73cb
Merge branch 'main' of https://github.com/USEPA/BMDS into main
cwsimmon May 28, 2022
b05e3a8
Merge branch 'main' of https://github.com/NIEHS/ToxicR into main
cwsimmon Jun 10, 2022
76a8dae
Fix Wheeler (2020) mismatch.
wheelemw Jun 27, 2022
659d603
Fixed GOF calcs for lognormal individual data
cwsimmon Jul 14, 2022
1054668
Fixed AIC additive constant for lognormal individual data
cwsimmon Jul 15, 2022
5fe6459
Fixed Issue with Linear MLE/NCV model.
wheelemw Jul 26, 2022
063c8e4
Fixed log-normal sufficient statistic conversion error.
wheelemw Jul 27, 2022
84ff1dd
Merge branch 'main' of https://github.com/wheelemw/ToxicR into main
cwsimmon Jul 28, 2022
7427aa5
Updated fix, removed testing data.
wheelemw Jul 28, 2022
62c86b3
Added Changelog Statments.
wheelemw Jul 28, 2022
cef38aa
Added changelog.md.
wheelemw Jul 28, 2022
e5a98cd
Removed unneeded rescale of background parameter for exp models
cwsimmon Jul 28, 2022
729b1fe
Merge branch 'TR-1.0.2' of https://github.com/wheelemw/ToxicR into main
cwsimmon Jul 28, 2022
fe365a8
removed debug print statements
cwsimmon Aug 3, 2022
2eed427
Fixed validity check for runs. Removed hill model adverse direction d…
cwsimmon Aug 10, 2022
8b5c368
Removed adv dir restricted exponential condition
cwsimmon Aug 24, 2022
de07c0e
reimplemented adv dir restricted exp condition. Added checks for dof…
cwsimmon Aug 26, 2022
6e70a60
Fixed memory allocation bug
cwsimmon Sep 28, 2022
d6b253a
pybmds + license + github actions (#7)
shapiromatron Nov 22, 2022
47468b5
Fixed bug in reduced model deviance calculation
cwsimmon Jan 31, 2023
ca2b8ad
Modified dichotomous scaled residual calcs to match previous BMDS ver…
cwsimmon Feb 21, 2023
8e18b10
Updated version number
cwsimmon Feb 23, 2023
28fdac2
Gitlab (#8)
shapiromatron Feb 23, 2023
607ea3f
handle edge cases for dicho scaled residual calculations
cwsimmon Mar 10, 2023
1a4a2fd
Merge branch 'main' of https://github.com/USEPA/BMDS into main
cwsimmon Mar 10, 2023
4744b9b
updated bmds version
cwsimmon Mar 14, 2023
9bfd95f
change build system to use Cmake (#9)
cwsimmon Apr 25, 2023
a3712d3
switch python linters to ruff (#10)
shapiromatron Apr 26, 2023
f69e82d
Added preprocessor macro for Windows builds
Apr 26, 2023
0073a02
github action - linux (#11)
shapiromatron Apr 27, 2023
bfccb45
Update CMAKE_README.md
shapiromatron May 1, 2023
5f479b3
Dicho python objs (#12)
cwsimmon May 8, 2023
1f622e6
Dicho ma python objs (#15)
cwsimmon May 22, 2023
f043790
modified array declarations for windows compilation
cwsimmon May 23, 2023
8e16c48
Added python test scripts
cwsimmon May 25, 2023
fe084f2
Cont python objs (#16)
cwsimmon May 31, 2023
ef85e59
Model struct updates (#17)
cwsimmon Jun 7, 2023
4c1ed94
New model stubs (#18)
cwsimmon Jun 21, 2023
82073e0
New model stubs (#19)
cwsimmon Jun 23, 2023
df776f1
Fix for confidence level bug (#20)
cwsimmon Sep 6, 2023
e887761
Cont cmake fixes (#21)
cwsimmon Sep 19, 2023
5ef627f
Mscombo (#22)
cwsimmon Nov 1, 2023
c70de3d
More MSCombo tweaks (#23)
cwsimmon Nov 2, 2023
09b7a09
Mscombo (#24)
cwsimmon Mar 19, 2024
eb4e7ba
Add github action for windows (#13)
shapiromatron May 7, 2024
b84d757
add python type stubs to bmdscore (#26)
shapiromatron May 7, 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
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cran-comments.md
CHANGELOG.md
Binary file renamed vignettes/.DS_Store → ._.DS_Store
100644 → 100755
Binary file not shown.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git/
.github/
build/
data/
inst/
man/
R/
tests/
tools/
vignettes/
32 changes: 32 additions & 0 deletions .github/workflows/dev-enviro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Developer environment

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_dev.txt
- name: Check all Makefile commands
run: |
make clean
make lint
make format
make test
make coverage
make build
95 changes: 95 additions & 0 deletions .github/workflows/python-test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Python test windows

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

env:
PYTHON_LIBRARY_DIR: $Env:CONDA\Lib\site-packages
PYTHON_EXECUTABLE: $Env:CONDA\python.exe
BUILD_TYPE: Release

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
os: ["windows-2022"]

steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: set dependency direcory
run: echo "DEPENDENCY_DIR=$HOME\github-deps" >> $env:GITHUB_ENV
- name: restore github dependencies from cache
id: cache-github
uses: actions/cache@v4
with:
path: ${{ env.DEPENDENCY_DIR }}
key: ${{runner.os}}-github-deps
- name: create dependency dir
if: steps.cache-github.outputs.cache-hit != 'true'
run: mkdir ${{ env.DEPENDENCY_DIR }}
- name: download eigen
if: steps.cache-github.outputs.cache-hit != 'true'
run: |
cd ${{ env.DEPENDENCY_DIR }}
git clone --depth 1 https://github.com/libigl/eigen.git
- name: install nlopt
if: steps.cache-github.outputs.cache-hit != 'true'
run: |
cd ${{ env.DEPENDENCY_DIR }}
git clone --depth 1 https://github.com/stevengj/nlopt.git
cd nlopt
mkdir build
cd build
cmake ..
cmake --build . --config Release
- name: install gsl
if: steps.cache-github.outputs.cache-hit != 'true'
run: |
cd ${{ env.DEPENDENCY_DIR }}
git clone --depth 1 https://github.com/ampl/gsl.git
cd gsl
mkdir build
cd build
cmake .. -DNO_AMPL_BINDINGS=1
cmake --build . --config Release
- name: set eigen/nlopt/gsl directories
run: |
echo "EIGEN_DIR=${{ env.DEPENDENCY_DIR }}\eigen" >> $env:GITHUB_ENV
echo "NLOPT_DIR=${{ env.DEPENDENCY_DIR }}\nlopt\src\api;${{ env.DEPENDENCY_DIR }}\nlopt\build\Release;${{ env.DEPENDENCY_DIR }}\nlopt\build" >> $env:GITHUB_ENV
echo "GSL_DIR=${{ env.DEPENDENCY_DIR }}\gsl\build\Release;${{ env.DEPENDENCY_DIR }}\gsl\build" >> $env:GITHUB_ENV
- name: build bmds with cmake
shell: pwsh
run: |
mkdir build
cd build
cmake ..
cmake --build . --config Release
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_dev.txt
- name: Build pybmds
run: |
python setup.py develop
stubgen -p pybmds.bmdscore -o src
ruff format src\pybmds\bmdscore.pyi
python setup.py bdist_wheel
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.whl
45 changes: 45 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Python test linux

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
os: ["ubuntu-22.04"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_dev.txt
- name: Check linting
run: |
make lint
- name: Compile bmdscore and build pybmds
run: |
source ./tools/linux_ci.sh
make build
- name: Test with pytest
run: |
make test
- name: Build package
run: |
source ./tools/linux_ci.sh
make dist
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.whl
26 changes: 26 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build python packages

on:
workflow_dispatch:
# push:
# branches:
# - main
# tags:

jobs:

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-12]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp311-* cp312-* *-macosx_arm64 *-win_amd64 *-manylinux_x86_64"
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
*.html
*.docx
*.o
# *.tar.gz
*.a
*.la
*.so
*.Rproj.user
*.tgz
.Rproj.user
.DS_Store
*.o
*.so
.Rhistory
build/
create_dll_compile.bash

# python
*.egg-info/
.cache/
.ipynb_checkpoints/
.mypy_cache/
.pytest_cache/
.vscode/
dist/
htmlcov/
venv/
*.log
*.py[cod]
.coverage
.env
47 changes: 47 additions & 0 deletions .gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
image: python:3.11-slim

stages:
- compile

package:
stage: compile
tags:
- devsecops-instance
script: |
# install
apt-get update -y
apt-get install -y automake build-essential libtool make cmake libgslcblas0 libgsl-dev

# build 3rd party
cp $CI_PROJECT_DIR/vendor/nlopt-2.7.1.tar.gz ~/nlopt-2.7.1.tar.gz
cp $CI_PROJECT_DIR/vendor/eigen-3.4.0.tar.gz ~/eigen-3.4.0.tar.gz
# untar
cd ~
tar -xvf ~/nlopt-2.7.1.tar.gz
tar -xvf ~/eigen-3.4.0.tar.gz
# build
cd ~/nlopt-2.7.1 && mkdir build && cd build && cmake .. && make install
cd ~/eigen-3.4.0 && mkdir build && cd build && cmake .. && make install
# cleanup
cd ~
rm -rf nlopt-2.7.1.tar.gz eigen-3.4.0.tar.gz nlopt-2.7.1 eigen-3.4.0

# build bmds
cd $CI_PROJECT_DIR
export "LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH"
mkdir -p ../BMD_DLL_COMPILE
cp ./.gitlab/create_dll_compile.bash.template ./create_dll_compile.bash
chmod 700 ./create_dll_compile.bash
./create_dll_compile.bash
cd ../BMD_DLL_COMPILE
make -j$(nproc)
strip --strip-all ./.libs/libDRBMD.so.0.0.0

# copy
mkdir -p $CI_PROJECT_DIR/libs
cp ./.libs/* $CI_PROJECT_DIR/libs

artifacts:
paths:
- libs/*.so

41 changes: 41 additions & 0 deletions .gitlab/create_dll_compile.bash.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
#Script to copy over the correct R files and then
#build the correct make scripts using configure.

####################################################
#ALWAYS NEEDS A PATH TO THE EIGEN DIRECTORY
#BY DEFAULT IT ASSUMES IT IS IN /usr/local/include/eigen3
SCRIPT_EIGEN_INCLUDE=/usr/local/include/eigen3

##################################################
echo -e "\e[1;31m ------------------------------------------------\e[0m"
echo -e "\e[1;31m ------------------------------------------------\e[0m"
echo -e "\e[1;31m Assuming Eigen linear algebra library located at \e[0m"
echo -e "\e[1;32m $SCRIPT_EIGEN_INCLUDE \e[0m"
echo -e "\e[1;31m ------------------------------------------------\e[0m"
echo -e "\e[1;31m ------------------------------------------------\e[0m"
##################################################
echo -e "\e[1;31m ------------------------------------------------\e[0m"
echo -e "\e[1;31m ------------------------------------------------\e[0m"
echo -e "\e[1;31m Warning removing all information in the directory \e[0m"
echo -e "\e[1;32m BMD_DLL_COMPILE \e[0m"
echo -e "\e[1;31m ------------------------------------------------\e[0m"
echo -e "\e[1;31m ------------------------------------------------\e[0m"

rm -rf ../BMD_DLL_COMPILE
##############################################################
mkdir ../BMD_DLL_COMPILE
mkdir ../BMD_DLL_COMPILE/include
mkdir ../BMD_DLL_COMPILE/code_base
cp -a ./src/include/* ../BMD_DLL_COMPILE/include
cp -a ./src/code_base/* ../BMD_DLL_COMPILE/code_base
cp ./configure.ac ../BMD_DLL_COMPILE
cp ./Makefile.am ../BMD_DLL_COMPILE
cp ./version.c ../BMD_DLL_COMPILE

cd ../BMD_DLL_COMPILE
libtoolize
aclocal
autoconf
automake --add-missing
./configure --disable-openmp EIGEN_INCLUDE=$SCRIPT_EIGEN_INCLUDE
19 changes: 18 additions & 1 deletion src/CHANGELOG.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Changes

## Version 22.05 (1.0.1)
## Version 22.8.1.0.2

### The following fixes are in version 1.0.2:
- Function 'single_continuous_fit' and 'ma_continuous_fit' changed error when defining default priors for
'distribution=normal-ncv' when data are negative. Originally the variance was described as mean(Y)/var(Y);
however, for negative means, this causes NA error. It is now defined as abs(mean(Y))/var(Y).
- Log-normal distribution fits were incorrect when summarized data was used. The correct transformation of summarized data is now performed. The formula for standard deviation was typed in as sqrt(log((sd)^2/mu + 1)) it is now sqrt(log((sd/mu)^2+1)).
- Changed default priors for dichotomous fits to be consistant with Wheeler et al. (2020).

### The following changes to fitting were made:
- Changed MLE Polynomial fit behavior. Now the terms up to the quadratic are constrained to be in the direction
of the response. After this, i.e., degree >= 3, the parameters are unconstrained.

### Known Problems not yet fixed
- GoF for MA individual models not given.
- GoF for dichotomous models with (0/1) data fails.

## Version 22.5.1.0.1

### The following fixes are in version 1.0.1:

Expand Down
Loading