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

merging c+11 changes with master branch #25

Open
wants to merge 484 commits into
base: nfsim_lib_shared_ptr
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
484 commits
Select commit Hold shift + click to select a range
2e392a5
Copy DLLs needed to run NFsim.
jczech May 8, 2018
6c4c5a7
Fix copy of DLLs.
jczech May 8, 2018
f8553ca
Fix copying of DLLs (again)
jczech May 8, 2018
cb7680a
Another attempt to fix appveyor build.
jczech May 8, 2018
7d6ddda
Debug appveyor build.
jczech May 8, 2018
29bfd37
Still fixing appveyor build.
jczech May 8, 2018
b844f59
Copy remaining DLLs.
jczech May 8, 2018
92622e1
More DLL fixing.
jczech May 8, 2018
bfb262c
Remove missing DLL from 32bit build.
jczech May 8, 2018
442b489
Update download links. Add coverity badge.
jczech May 10, 2018
9bb3e18
Update build instructions.
jczech May 10, 2018
88885c5
Remove some old references to the old ftp site.
jczech Aug 7, 2018
3021f26
Add a gitignore file.
jczech Aug 7, 2018
058df06
Removed failing commands from osx_install.sh
jczech Aug 7, 2018
a898f2d
converted MoleculeType arrays to vectors
rasi Oct 12, 2017
b3a4bb2
zero rate laws removed
rasi Oct 14, 2017
18dc13d
tracking of tagged reactions added
rasi Nov 4, 2017
ac56613
output of individual reactions written
rasi Nov 5, 2017
976f62f
max cpu time in seconds option added
rasi Nov 7, 2017
a36c19c
mol and rxn name output
rasi Nov 7, 2017
1a18009
gdat header has now tabs
rasi Nov 7, 2017
ac6507f
Compiled in my local computer with Ubuntu 18.04
rasi Jul 26, 2018
0178718
Traversal of MappingSet and not BondedNeigborhood
rasi Jul 29, 2018
8b403b3
Read in polymeric MoleculeTypes from XML
rasi Jul 29, 2018
09f17e5
Implemented Tranverse Polymer Neighborhood, Buggy
rasi Jul 30, 2018
e083df3
Product identification working, but template matching is buggy.
rasi Jul 30, 2018
cdf1ffd
fixing reaction update misses
rasi Jul 31, 2018
fa3b29c
Code is working well now until transcription.
rasi Jul 31, 2018
76e1f33
Finished neighborhood search for products
rasi Aug 1, 2018
e90d510
Makefiles added
rasi Aug 1, 2018
c7ae535
code for sim180801
rasi Aug 1, 2018
8640579
Wrote plan for removing searches
rasi Aug 8, 2018
89ad405
Track all reactant and template patterns
rasi Aug 10, 2018
54d3f8f
Implemented comparison of TemplateMolecules
rasi Aug 11, 2018
559049e
Implemented connectivity for reactions
rasi Aug 11, 2018
460f55a
Able to parse the connected reactions from XML
rasi Aug 17, 2018
13aaec8
Working code to consider only connected reactions
rasi Aug 17, 2018
ea99800
Checking only connected reactions almost works
rasi Aug 17, 2018
dcb31fa
Connected Reactions working fast, almost correctly
rasi Aug 18, 2018
d47a16e
Prevent reordering of unchanged rxn membership
rasi Aug 19, 2018
bc17d78
Connected and full versions identical first time
rasi Aug 19, 2018
62c54b5
Iterate over connected rxns, not MoleculeType rxns
rasi Aug 20, 2018
a8dc55f
Adjust search around polymer neighborhood
rasi Aug 21, 2018
51c17d3
Removed Sarthak's changes that do not seem necessary
rasi Aug 21, 2018
3715a63
Clean build working after rebase complication
rasi Aug 21, 2018
021da71
Move NFStream<< template def to header
rasi Aug 21, 2018
9aed994
Convert all molecule lists to vectors
rasi Aug 21, 2018
43cc3ea
Reaction selection in polymer neighborhood working
rasi Aug 21, 2018
22081b4
Corrected polymer search for ribosome collisions
rasi Aug 21, 2018
1c0c789
Uncomment polymer parsing, minor update
rasi Aug 21, 2018
51b5406
Add back parsing of reactant and product templates
rasi Aug 22, 2018
f2db761
Create a reactant-product molecule map for each RxnRule
rasi Aug 22, 2018
6be9263
Fixed small bug to allow compile of previous change
rasi Aug 22, 2018
58d13ba
Connected reactant and product TemplateMolecules
rasi Aug 22, 2018
008c104
Add TemplateMolecule to each Transformation
rasi Aug 22, 2018
8716d2c
First error free pass at connecting reactions
rasi Aug 23, 2018
26f17ee
Infer rxn connectivity within NFsim working well
rasi Aug 23, 2018
56fab42
Corrected infer connectiivitiy bug for unbinding
rasi Aug 23, 2018
db38b8c
Gave CLI for polymer use and infer connectivity
rasi Aug 23, 2018
e87af02
Fixed pseudo bug in polymer +/- tag
rasi Aug 23, 2018
54fe94a
Added make files generated by Eclipse
rasi Aug 23, 2018
795f159
maxcputime option working
rasi Aug 26, 2018
3691a05
remove connected reaction file
rasi Aug 26, 2018
d92e5da
Adjust output of rxn file to be informative
rasi Aug 27, 2018
c2f5248
Print bond details for debugging
rasi Nov 21, 2018
a558d59
Provide CLI option for debugging rxn connectivity
rasi Nov 21, 2018
9715345
alter the name of connected rxn file
rasi Nov 22, 2018
60b304a
Search polymer neighborhood of all specified comps
rasi Nov 23, 2018
6ba83dc
Remove polymer and useless changes from NFsim.cpp relative to master
rasi Dec 15, 2018
0c32aec
Search polymer neighborhood of all specified comps
rasi Nov 23, 2018
a09cfa0
Alter search to only polymeric constrained comps
rasi Nov 24, 2018
2fa4756
Search neighborhood of only bonded polymeric comps
rasi Nov 24, 2018
b3aaf78
Remove polymer and other useless crud from NFinput.cpp
rasi Dec 15, 2018
391c8c7
Remove polymer and other useless crud from MoleculeType.cpp
rasi Dec 15, 2018
f1056ae
Remove polymer from TemplateMolecule.cpp, minor change
rasi Dec 15, 2018
0888330
Remove polymer search from TransformationSet.cpp
rasi Dec 15, 2018
4ce123c
Remove polymer and commented crud from ReactionClass.cpp
rasi Dec 15, 2018
d3a387b
Remove specified comps change (minor) from TemplateMolecule.hh
rasi Dec 15, 2018
a0a5e29
Remove polymer flag from getListOfProducts function declaration
rasi Dec 15, 2018
6596428
Remove all polymer related search from molecule.cpp, major
rasi Dec 15, 2018
3477e2f
Remove polymer and observable flag and comments in system.cpp
rasi Dec 15, 2018
3a808f9
Remove polymerFlag from NFinput declaration
rasi Dec 15, 2018
f66e727
Clean all functiond declarations to remove polymer crud NFcore.hh
rasi Dec 15, 2018
e094399
Correct syntax errors introduced during polymerclean, compiling now
rasi Dec 15, 2018
5b0dcbc
add bin makefile
rasi Dec 16, 2018
3a92c66
Add nauty makefile
rasi Dec 16, 2018
ff44210
Comment out printing bond details
rasi Dec 16, 2018
f082143
Correct connectivity initialization
rasi Dec 16, 2018
2b66b8c
Print molecule and its id to reaction output
rasi Dec 16, 2018
4d2c174
Use inferred reaction connectivity
rasi Oct 12, 2017
84c2150
Update README
rasi Dec 27, 2018
70c77bd
Initialize track connected properly for default false
rasi Jan 14, 2019
fe92533
Initialize track connected properly for default false
rasi Jan 14, 2019
7327825
Add instructions on getting correct g++ version
rasi Feb 14, 2019
3b34159
Track rxn id, name, n_firings and mol_type id, name separately
rasi Feb 19, 2019
47bed5f
Output simulation time to molecule type list file
rasi Feb 20, 2019
3ad4739
Remove extra tab in molecule rxn list output
rasi Feb 20, 2019
585deb2
Write CPU time to molecule list file
rasi Feb 20, 2019
73c4b65
Correct printing of reaction tracking
rasi May 22, 2019
abc4c3e
Convert false to NULL in NFinput.cpp to avoid compiler error
rasi May 22, 2019
ab7b17e
Add option for printing the list of connected reactions at the start
rasi Nov 12, 2019
1a8b081
Print out last reaction firing time
rasi Nov 13, 2019
d2b020b
first commit to test, reading in --params argument and making a str->…
ASinanSaglam Mar 5, 2021
c2c5119
updating .gitignore for vscode and testing stuff
ASinanSaglam Mar 5, 2021
401ca45
basic functional cmdline argument passing for -params and started fil…
ASinanSaglam Mar 5, 2021
36e451f
functional loading into vectors of doubles
ASinanSaglam Mar 8, 2021
9907f57
still working on some way to use function mechanism, random updates
ASinanSaglam Mar 11, 2021
cdaa28c
got a basic function type working, made a vector and added to system
ASinanSaglam Mar 12, 2021
af98336
it's a miracle this compiles. overly complicated and I'm not sure if …
ASinanSaglam Mar 16, 2021
ddaf3a1
reverting file function changes, we'll use global function system for…
ASinanSaglam Mar 17, 2021
61183e0
some working version that compiles and runs
ASinanSaglam Mar 17, 2021
6d67a2a
actually working? it compiles and returns values correctly
ASinanSaglam Mar 17, 2021
974ea4f
modified all eval calls to work with file dependencies
ASinanSaglam Mar 17, 2021
a4e78a5
changed the reading so that function dependency is sorted during XML …
ASinanSaglam Mar 18, 2021
286bf4f
nicely working version off of XML, more error reporting and some clea…
ASinanSaglam Mar 18, 2021
86dbc4a
removed system pointer dependency from global functions, each functio…
ASinanSaglam Mar 18, 2021
10d63a6
more cleanup on the function class
ASinanSaglam Mar 18, 2021
4d48e09
moving around debug statements
ASinanSaglam Mar 18, 2021
7dd2c4e
removed some unnecessary changes from original files
ASinanSaglam Mar 18, 2021
b663239
adding some error catching to the function-end
ASinanSaglam Mar 18, 2021
74fd39b
step function implementation
ASinanSaglam Mar 19, 2021
42ff194
various optimizations and error reporting
ASinanSaglam Mar 19, 2021
2b1944c
removed unnecessary message
ASinanSaglam Mar 22, 2021
141e2da
working version of tfun where you can point to an observable or use s…
ASinanSaglam Mar 25, 2021
23139b3
fixed an error where file dependent functions returned 0 past last point
ASinanSaglam Mar 26, 2021
f3e9327
fixed input reading to read file only TFUNs correctly
ASinanSaglam Mar 26, 2021
42d3cc0
changes to allow for TFUNs to point to a function and not just an obs…
ASinanSaglam Mar 30, 2021
cac3188
setting up to allow for usage of __COUNTER__ in TFUN functions so we …
ASinanSaglam Apr 1, 2021
34b51c8
simplifying TFUN stuff more, allowing the use in expressions
ASinanSaglam Apr 1, 2021
2149b48
forgot to fix composite functions last commits
ASinanSaglam Apr 1, 2021
5036140
moving file eval outside of real eval and into a separate update func…
ASinanSaglam Apr 2, 2021
b0e84b0
changes to allow for tfun expressions to point to other references
ASinanSaglam Apr 6, 2021
d8767aa
fixing some bugs with error checking
ASinanSaglam Apr 6, 2021
48c2273
making changes to add an internal constant to TFUN so that the counte…
ASinanSaglam Apr 7, 2021
88d37cc
changes to add an internal variable to TFUN so that the counter can b…
ASinanSaglam Apr 7, 2021
cf5426c
validation tests passing, gitignore update, validate.py updated for P…
ASinanSaglam Apr 8, 2021
7ac2549
Merge pull request #26 from RuleWorld/time_dep_params
ASinanSaglam Apr 8, 2021
5269282
Add .gitignore
rasi May 2, 2021
78d0377
Update .gitignore to exclude .d .o and executable
rasi May 2, 2021
7e86e19
Change pointer comparisons from 0 to NULL
rasi May 2, 2021
b824b8f
Add CMakeLists from RuleWorld and update README
rasi May 2, 2021
1749c67
Merge branch 'master' of https://github.com/rasilab/nfsim into rasila…
ASinanSaglam May 27, 2021
e747599
first compiling version of merge
ASinanSaglam May 27, 2021
1df714d
a version that passes all validation checks. vectors are turned back …
ASinanSaglam Jun 3, 2021
88d6407
changing tsv output argument names
ASinanSaglam Jun 4, 2021
2b32d76
fixed the final error from validation checks, branch now on par with …
ASinanSaglam Jun 9, 2021
12ba15b
fixing validation model 17 observable pattern
ASinanSaglam Jun 9, 2021
4290f2e
working on integrating CI
ASinanSaglam Jun 9, 2021
9c0122c
getting validation CI
ASinanSaglam Jun 9, 2021
67304b3
still debugging GH actions
ASinanSaglam Jun 9, 2021
fbe554e
GH actions debugging
ASinanSaglam Jun 9, 2021
aa06572
changing validation script to work with GH actions easily
ASinanSaglam Jun 9, 2021
781c66e
GH actions need numpy
ASinanSaglam Jun 9, 2021
600646e
adding back pip install to GH actions
ASinanSaglam Jun 9, 2021
28a1e7c
seaborn missing from PyPI version of pybionetgen still, temporarily a…
ASinanSaglam Jun 9, 2021
c769f63
adding GH actions build status badge
ASinanSaglam Jun 9, 2021
262a8f5
a version that matches exactly to connectivity test models
ASinanSaglam Jun 15, 2021
7c3ecbb
many fixes to address performance issues introduced
ASinanSaglam Jun 28, 2021
5f961eb
added test 20 for connectivity testing
ASinanSaglam Jul 1, 2021
21a6911
removing merge related comments
ASinanSaglam Jul 1, 2021
7fdb306
removing more comments, cleaning up the commits
ASinanSaglam Jul 1, 2021
303e796
more cleanup, removing submodule
ASinanSaglam Jul 1, 2021
4c38ca6
removing accidentally added line
ASinanSaglam Jul 1, 2021
4240579
all validation checks pass, preparing for merge and moving GH actions…
ASinanSaglam Jul 1, 2021
a7d5377
Merge pull request #30 from RuleWorld/connectivity
ASinanSaglam Jul 1, 2021
6255314
removing travis and appveyor badges
ASinanSaglam Jul 1, 2021
10da69e
Fixing GH actions badge
ASinanSaglam Jul 1, 2021
078d394
Nicer badge arrangement
ASinanSaglam Jul 1, 2021
23c62c5
adding test 21 for connectivity, ignoring .tsv files for the new tests
ASinanSaglam Jul 2, 2021
6ad158d
updating validation, removing a compare block
ASinanSaglam Jul 2, 2021
dcffdf7
increasing validation iterations for consistency
ASinanSaglam Jul 6, 2021
531449e
Remove reaction tagging for output and add new options to help
rasi Dec 17, 2021
f23cdf8
Add filename option to -rxnlog switch in help message
rasi Dec 17, 2021
fb41f08
removing old CI files, we will work off of github actions instead
ASinanSaglam Jan 13, 2022
547a341
Merge branch 'cleanup_output' of https://github.com/rasilab/nfsim int…
ASinanSaglam Jan 13, 2022
ccef9bf
Merge pull request #32 from RuleWorld/rasilab-cleanup_output
ASinanSaglam Jan 13, 2022
8adc185
removed accidentally left debug statement
ASinanSaglam Feb 4, 2022
3f5bbb7
Merge branch 'master' of https://github.com/RuleWorld/nfsim
ASinanSaglam Feb 4, 2022
b870f2c
updated version to 1.2.1
ASinanSaglam Feb 7, 2022
cf528a5
remove output for tagged molecules
ASinanSaglam Apr 18, 2022
b4df15d
making default CPU time infinite while allowing it to be set from com…
ASinanSaglam Apr 25, 2022
71f94f7
Merge branch 'master' of https://github.com/RuleWorld/nfsim
ASinanSaglam Apr 25, 2022
c2cbbae
added an output for maxcputime option that tells the user that NFsim …
ASinanSaglam Apr 25, 2022
db78712
updating default max cpu time in help text
ASinanSaglam Apr 25, 2022
23fa195
disabling max_cpu_time argument
ASinanSaglam Apr 25, 2022
a8d6e93
ASinanSaglam Apr 25, 2022
3a1855c
compartment check added, ticking up version
ASinanSaglam Apr 25, 2022
26d13bd
New output file for reactions
ASinanSaglam Jan 2, 2023
9f0ee02
updated format and cleaned code a bit
ASinanSaglam Jan 3, 2023
ceeda2c
cleaned up more, removed some old comments & code
ASinanSaglam Jan 3, 2023
c4d4d04
updated output format, molecule types mostly done
ASinanSaglam Jan 5, 2023
0ea3ddc
simplifed firings, removed rxns, added istate
ASinanSaglam Jan 6, 2023
44b9e74
added state changes to molecule creation
ASinanSaglam Jan 12, 2023
8eb8113
side stepped remove bug, added delete operation
ASinanSaglam Jan 16, 2023
f8139c8
deletion now tracked completely
ASinanSaglam Jan 16, 2023
0fd369b
added test cases for new features based on v21
ASinanSaglam Jan 18, 2023
4ea8e70
some bug fixes and new tests
ASinanSaglam Jan 19, 2023
def77bc
updated validation settings
ASinanSaglam Jan 25, 2023
cc792fa
adding another test case for -rxnlog alone
ASinanSaglam Jan 25, 2023
e2d8f76
added `-logbuffer` argument
ASinanSaglam Jan 25, 2023
b3603df
removing old file, increased validation iters
ASinanSaglam Jan 26, 2023
aa5eb75
added bonds and state changes
ASinanSaglam Jan 31, 2023
61f4c4f
adding first pass to output schema
ASinanSaglam Feb 1, 2023
afde0f6
updated schema with descriptions
ASinanSaglam Feb 1, 2023
d27d210
working version of the schema
ASinanSaglam Feb 2, 2023
c78f5d1
fixed a comma in the JSON output
ASinanSaglam Feb 2, 2023
417dba2
`molTypes` changed to `molecule_array`
ASinanSaglam Feb 8, 2023
ffad1cf
removing redudant null operations
ASinanSaglam Feb 8, 2023
a671834
changing extension to `.nfevent.json`
ASinanSaglam Feb 8, 2023
be43878
added a lot of comments
ASinanSaglam Feb 9, 2023
7cf76ad
Updating readme, preparing for release.
ASinanSaglam Feb 22, 2023
c9d8014
fixing a bug introduced
ASinanSaglam Mar 7, 2023
80454b4
Merge pull request #36 from RuleWorld/ASinanSaglam/issue35
Mar 7, 2023
fcc02fd
removing temporary gitignore
ASinanSaglam Mar 7, 2023
8c3e64f
removing tuples to avoid c17 dependency
ASinanSaglam Mar 16, 2023
b99398c
removing uint and using int instead
ASinanSaglam Mar 16, 2023
766c280
Merge branch 'master' of https://github.com/RuleWorld/nfsim
ASinanSaglam Mar 16, 2023
0fbb3cd
updated version number everywhere
ASinanSaglam Mar 23, 2023
f6b52cc
expanding testing coverage
ASinanSaglam Mar 30, 2023
635fa13
fixing yaml typo
ASinanSaglam Mar 30, 2023
f00d945
changing artifact name and expanding to windows
ASinanSaglam Mar 30, 2023
a53615d
trying to update windows build with ninja
ASinanSaglam Mar 30, 2023
a09701e
fixed yaml typo
ASinanSaglam Mar 30, 2023
cf56f96
adding back matrix.os list
ASinanSaglam Mar 30, 2023
3dc4c44
removing matrix.config
ASinanSaglam Mar 30, 2023
0b4cbfc
changing ninja setup
ASinanSaglam Apr 3, 2023
2be6b30
moved uses keyword out of step
ASinanSaglam Apr 3, 2023
6ba8ccb
fixing windows compile issues
ASinanSaglam Apr 3, 2023
a5079cf
fixing windows incorrect build path
ASinanSaglam Apr 3, 2023
a3c91c8
debugging win dll mismatch
ASinanSaglam Apr 3, 2023
1cfdfa6
using ninja to compile NFsim on windows
ASinanSaglam Apr 3, 2023
64564c5
disabling unix testing temporarily
ASinanSaglam Apr 3, 2023
b4099d6
first pass on finding the correct dlls
ASinanSaglam Apr 3, 2023
510c70f
re-enabling unix testing since windows works now
ASinanSaglam Apr 3, 2023
8fbc614
fixed windows bundle missing `exe` extension
ASinanSaglam Apr 3, 2023
61e25f7
deleting unnecessary GH action step
ASinanSaglam May 1, 2023
2d0eca6
fixing mistake introduced with previous commit
ASinanSaglam May 1, 2023
8195860
fixing a bug where initial state in the rxnlog file
ASinanSaglam May 3, 2023
10f1791
Update main-testing.yml
Jul 5, 2023
867a02f
Update NFsim.cpp version
Jul 5, 2023
82e48a6
Update README.md
jrfaeder May 14, 2024
31eef54
Update README.md
jrfaeder May 14, 2024
a93c015
Prelminary fix for logging bug.
jrfaeder May 15, 2024
d607e65
Update main-testing.yml
jrfaeder May 15, 2024
98ff23e
Creating new test files for issue 37
aadibiasi May 20, 2024
2df7712
Testing Python 3.8 to match PyBNG
aadibiasi May 22, 2024
37c069f
Testing if we need choco and mingw
aadibiasi May 22, 2024
50d6c96
Updated validate.py
jrfaeder May 23, 2024
0790b4a
Updating hardcoded version numbers and README
aadibiasi May 24, 2024
a5e2941
Merge pull request #39 from RuleWorld/issue37
aadibiasi May 24, 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
88 changes: 88 additions & 0 deletions .github/workflows/main-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: main-validation

on:
push:
branches: [ master, issue37]
pull_request:
branches: [ master ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: seanmiddleditch/gha-setup-ninja@v3

- name: Build on windows and run check
if: matrix.os == 'windows-latest'
run: |
mkdir build
cd build
cmake -G "Ninja" ..
ninja
# cp C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/libgcc_s_seh-1.dll ${{github.workspace}}/build/.
# cp C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/libstdc++-6.dll ${{github.workspace}}/build/.
# cp C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/libwinpthread-1.dll ${{github.workspace}}/build/.
./NFsim.exe -h

- name: Configure CMake
if: matrix.os != 'windows-latest'
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build unix
if: matrix.os != 'windows-latest'
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r validate/requirements.txt
- name: Validation
run: python validate/validate.py validate/.
- name: Prepare unix bundle
if: matrix.os != 'windows-latest'
run: |
cd
mkdir ${{github.workspace}}/bundle_${{ matrix.os }}
cp ${{github.workspace}}/build/NFsim ${{github.workspace}}/bundle_${{ matrix.os }}/.
- name: Prepare windows bundle
if: matrix.os == 'windows-latest'
run: |
cd
mkdir ${{github.workspace}}/bundle_${{ matrix.os }}
cp ${{github.workspace}}/build/NFsim.exe ${{github.workspace}}/bundle_${{ matrix.os }}/.
cp ${{github.workspace}}/build/*.dll ${{github.workspace}}/bundle_${{ matrix.os }}/.
- name: Archive compiled NFsim
uses: actions/upload-artifact@v3
with:
name: NFsim_bin_${{ matrix.os }}
path: ${{github.workspace}}/bundle_${{ matrix.os }}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
build
.vscode
build_test_files
validate/basicModels/*.*dat
validate/basicModels/*.net
validate/basicModels/*.xml
validate/basicModels/*.tsv
validate/basicModels/*.json
test/Issue37/test2.nfevent.json
test/Issue37/test.nfevent.json
test/Issue37/out.gdat
test/Issue37/issue37_test2.species
test/Issue37/issue37_test2.gdat
69 changes: 69 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
cmake_minimum_required(VERSION 2.8.9)

project(NFsim)

#find_package(XMLRPC REQUIRED abyss-server c++2)


#if (NOT XMLRPC_FOUND)
# message (FATAL_ERROR "XMLRPC-C not found")
#endif (NOT XMLRPC_FOUND)

set(CMAKE_BUILD_TYPE Release)

set(SUB_DIRS
src/nauty24
src/NFutil
src/NFutil/MTrand
src/NFtest/transcription
src/NFtest/tlbr
src/NFtest/simple_system
src/NFtest/agentcell/cell
src/NFtest/agentcell
src/NFscheduler
src/NFreactions/transformations
src/NFreactions/reactions
src/NFreactions/reactantLists
src/NFreactions/mappings
src/NFreactions
src/NFoutput
src/NFinput
src/NFinput/TinyXML
src/NFinput/json
src/NFfunction/muParser
src/NFfunction
src/NFcore
src/NFcore/reactionSelector
src/NFcore/moleculeLists
)
add_definitions("-Wno-deprecated-declarations")


IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
# SET(BUILD_SHARED_LIBRARIES OFF)
# SET(CMAKE_EXE_LINKER_FLAGS "-static")
ELSE(CMAKE_SYSTEM_NAME MATCHES "Windows")
set_source_files_properties( src/NFreactions/reactions/DORreaction.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
set_source_files_properties( src/NFcore/molecule.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
set_source_files_properties( src/NFcore/templateMolecule.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
set_source_files_properties( src/NFinput/NFinput.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Windows")


#include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${XMLRPC_INCLUDE_DIRS} ${SUB_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR} include ${SUB_DIRS})


file(GLOB_RECURSE src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*cpp")
file(GLOB_RECURSE c_src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*c")


set(SRC_FILES
${src_files}
${c_src_files}
)


add_executable(${PROJECT_NAME} ${SRC_FILES} )
58 changes: 58 additions & 0 deletions CMakeLists.x86.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
cmake_minimum_required(VERSION 2.8.9)

project(NFsim)

#find_package(XMLRPC REQUIRED abyss-server c++2)

SET(CMAKE_C_COMPILER C:/cygwin/bin/gcc.exe)
SET(CMAKE_CXX_COMPILER C:/cygwin/bin/g++.exe)


#if (NOT XMLRPC_FOUND)
# message (FATAL_ERROR "XMLRPC-C not found")
#endif (NOT XMLRPC_FOUND)

set(CMAKE_BUILD_TYPE Release)

set(SUB_DIRS
src/nauty24
src/NFutil
src/NFutil/MTrand
src/NFtest/transcription
src/NFtest/tlbr
src/NFtest/simple_system
src/NFtest/agentcell/cell
src/NFtest/agentcell
src/NFscheduler
src/NFreactions/transformations
src/NFreactions/reactions
src/NFreactions/reactantLists
src/NFreactions/mappings
src/NFreactions
src/NFoutput
src/NFinput
src/NFinput/TinyXML
src/NFinput/json
src/NFfunction/muParser
src/NFfunction
src/NFcore
src/NFcore/reactionSelector
src/NFcore/moleculeLists
)
add_definitions("-Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -DTIXML_USE_STL ")

include_directories(${CMAKE_CURRENT_SOURCE_DIR} include ${SUB_DIRS})


file(GLOB_RECURSE src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*cpp")
file(GLOB_RECURSE c_src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*c")


set(SRC_FILES
${src_files}
${c_src_files}
)


add_executable(${PROJECT_NAME} ${SRC_FILES} )
Loading
Loading