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

Oldphysics docs #3

Closed
wants to merge 234 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
ff6c04c
Initial commit
epassaro Oct 27, 2020
d5b60b0
add token
epassaro Oct 27, 2020
3be30a4
add push step
epassaro Oct 27, 2020
efe3ba5
add cron trigger for doc pipeline
epassaro Oct 27, 2020
eef40f5
change job name
epassaro Oct 27, 2020
7a2a501
add comment block
epassaro Oct 27, 2020
9102446
commit with bot account
epassaro Nov 9, 2020
e0053be
Fix to virtual packet logging
andrewfullard Nov 18, 2020
69fd1ed
Inside of tardis/docs/pphysics/plasma/plasma_plots updated two files …
KevinCawley Nov 20, 2020
307a2d2
Some more documentation updates
KevinCawley Nov 22, 2020
460e793
Finished issue #680
KevinCawley Nov 22, 2020
76b7ae5
Merge pull request #2 from KevinCawley/documentation
KevinCawley Nov 22, 2020
df2e719
Fixed the last file for #680
KevinCawley Nov 22, 2020
ef40bb3
Merge pull request #3 from KevinCawley/documentation
KevinCawley Nov 22, 2020
a2a36e6
Fixed two random indentation irregularities found upon review
KevinCawley Nov 25, 2020
9d66023
Update to fork
KevinCawley Nov 25, 2020
56c5067
Merge pull request #4 from KevinCawley/documentation
KevinCawley Nov 25, 2020
a1e5633
Another test
KevinCawley Nov 25, 2020
ff2199b
restructuring docs except for using tardis section
isaacgsmith Nov 27, 2020
32e7841
fixing old_physics
isaacgsmith Nov 27, 2020
bafa776
adding alumni section and other team and governance corrections
isaacgsmith Nov 27, 2020
9c98722
adding team_and_governance index file
isaacgsmith Nov 29, 2020
3283db4
Fixing issue #1177 (#1361)
isaacgsmith Nov 30, 2020
6564a5e
Fix of Issue #680 (#1359)
KevinCawley Nov 30, 2020
686617e
Merge remote-tracking branch 'upstream/master' into issue_1357_fix
isaacgsmith Nov 30, 2020
765745e
restructuring components and GUI subsections
isaacgsmith Dec 1, 2020
bbddc40
restructuring additional interactivity section and changing the order…
isaacgsmith Dec 1, 2020
303c7e1
Fixed to the montecarlo_numba file to compy w/ issue #680
KevinCawley Dec 2, 2020
d51b7f9
Initial numba parallelization
andrewfullard Dec 2, 2020
c3b5fa1
Fixed the latex equation
KevinCawley Dec 2, 2020
ebe33c5
adding andrew to tardis core
isaacgsmith Dec 3, 2020
1fa9dce
Made scalars overwrite & added option to control overwriting
jaladh-singhal Dec 4, 2020
a7f6050
Added overwrite option in docstrings and fixed them
jaladh-singhal Dec 4, 2020
aa37e1e
Added overwrite=True option in tests using hdfs
jaladh-singhal Dec 4, 2020
080552b
Fixed a typo in docstring
jaladh-singhal Dec 4, 2020
5ae8d7c
Merge pull request #1364 from smithis7/issue_1357_fix
andrewfullard Dec 4, 2020
722392f
Improved docstrings
jaladh-singhal Dec 4, 2020
077cfe7
Removed buf_opened flag since buf.is_open has that info
jaladh-singhal Dec 4, 2020
1249c4e
Merge pull request #1366 from jaladh-singhal/hdf-scalars-fix
andrewfullard Dec 4, 2020
176a632
First start on the two .rst files for the issues
KevinCawley Dec 5, 2020
5b4265b
Update to progress on this branch
KevinCawley Dec 6, 2020
5a6b518
Added note about ion 0 is neutral
KevinCawley Dec 6, 2020
f6f53f7
Trying to fix merge conflict
KevinCawley Dec 6, 2020
13ede90
Merge branch 'master' into Issue_1176_good
KevinCawley Dec 6, 2020
f56017d
Update base.py
KevinCawley Dec 6, 2020
2275f72
Update atomic.py
KevinCawley Dec 6, 2020
073c581
Update datahandler.py
KevinCawley Dec 6, 2020
6a26d57
revert to conf.py
KevinCawley Dec 6, 2020
a82ccd3
Merge branch 'master' into Issue_1154
KevinCawley Dec 6, 2020
2ee46b2
Remove extra carriage return
KevinCawley Dec 6, 2020
af2f6b3
slight update to the file
KevinCawley Dec 6, 2020
4c534c2
deleting unused files
isaacgsmith Dec 1, 2020
82f171e
reorganizing docs/running
isaacgsmith Dec 3, 2020
b9a5ef6
clarifying which file to use in toctree, as there is a to_hdf.rst and…
isaacgsmith Dec 3, 2020
74d1c1f
fixing new_plasma toc
isaacgsmith Dec 4, 2020
5f3edbc
fixing headers on outdated sections
isaacgsmith Dec 4, 2020
3ff6efa
adding custom_source and physical_quantities to additional interactiv…
isaacgsmith Dec 4, 2020
84d0e1c
removing physical_quantities from old_physics
isaacgsmith Dec 4, 2020
3d29959
fixing heading on CONTRIBUTING.md
isaacgsmith Dec 6, 2020
ac98ba8
adding using_formal_integral
isaacgsmith Dec 6, 2020
4a6793c
Merge pull request #1331 from epassaro/action-changelog
andrewfullard Dec 7, 2020
186351c
Merge pull request #1365 from andrewfullard/numba-parallel-patch
andrewfullard Dec 8, 2020
29685d8
Merge pull request #1368 from KevinCawley/Issue_1176_good
andrewfullard Dec 8, 2020
fc1798b
update to the docs
KevinCawley Dec 8, 2020
227af89
Merge remote-tracking branch 'upstream/master'
KevinCawley Dec 8, 2020
16362df
fix merge conflict
KevinCawley Dec 8, 2020
28e161a
doing Jaladh's suggestions
isaacgsmith Dec 8, 2020
25c9390
vpacket logging now suitable for kromer plot
andrewfullard Dec 9, 2020
61d7289
black applied
andrewfullard Dec 9, 2020
1008b9b
Fix test to match new style
andrewfullard Dec 9, 2020
7fa5d16
Merge pull request #1354 from tardis-sn/virt-packet-logging-fix
andrewfullard Dec 9, 2020
a49e4cc
Fixed rpacket logging of properties
andrewfullard Dec 9, 2020
bb0a1b4
Merge pull request #1375 from andrewfullard/rpacket-logging-fix
andrewfullard Dec 9, 2020
da51efa
Update CI doc section (#1372)
epassaro Dec 9, 2020
1c706d5
Merge pull request #1371 from smithis7/cleaning_docs
andrewfullard Dec 9, 2020
5236056
fixing mistake
isaacgsmith Dec 9, 2020
1597b1c
renaming running to using
isaacgsmith Dec 6, 2020
6565a80
Merge pull request #1378 from smithis7/fixing_index
andrewfullard Dec 9, 2020
8c53894
fixing merge conflict
isaacgsmith Dec 6, 2020
3ac370b
changing tardis_widgits to gui
isaacgsmith Dec 6, 2020
002e635
turning tardis_widgits into gui on docs/index.rst
isaacgsmith Dec 6, 2020
683d5d7
putting models in using/components
isaacgsmith Dec 7, 2020
e358411
adding configuration to docs/using/components
isaacgsmith Dec 8, 2020
140d540
adding atomic to docs/using/components
isaacgsmith Dec 8, 2020
9ffee87
fixing hyperlink in quickstart
isaacgsmith Dec 8, 2020
2def773
FIx real packet logging for last interaction type
andrewfullard Dec 11, 2020
613527a
Virtual packet logging fix
andrewfullard Dec 11, 2020
ce5b665
Merge pull request #1379 from smithis7/reorganizing_2
andrewfullard Dec 11, 2020
3c2b83b
fixing quickstart problem
isaacgsmith Dec 11, 2020
162f280
Merge pull request #1382 from smithis7/build_problem
andrewfullard Dec 11, 2020
d4c74f1
Possible fix for vpacket last interaction spectrum
andrewfullard Dec 14, 2020
77c2782
Small fixes for existing workflows (#1384)
epassaro Dec 14, 2020
1710023
Update tardis/montecarlo/montecarlo_numba/single_packet_loop.py
andrewfullard Dec 15, 2020
4a509b6
Update tardis/montecarlo/montecarlo_numba/single_packet_loop.py
andrewfullard Dec 15, 2020
575c228
Merge pull request #1380 from andrewfullard/packet-logging-oatch
andrewfullard Dec 15, 2020
6ec4b8f
Added modified kromer plot to work with widgets
jaladh-singhal Jul 17, 2020
5b6a635
Converted SimulationKromerPlotter to class method
jaladh-singhal Jul 23, 2020
f7503ee
Added missing required properties to save in hdf
jaladh-singhal Jul 28, 2020
02f9500
Added classmethod to create plotter from hdf
jaladh-singhal Jul 28, 2020
8957afe
Added docstrings to data attributes
jaladh-singhal Jul 29, 2020
dd7c2d6
Simplified Kromer Plotter with new structure
jaladh-singhal Oct 20, 2020
48ac765
Added relevant properties which need to be saved
jaladh-singhal Oct 29, 2020
ce88c67
Added KromerPlotter to init
jaladh-singhal Oct 29, 2020
415e360
Added classmethod for reading data from hdf
jaladh-singhal Oct 30, 2020
1ee0535
Renamed spectrum_frequency to spectrum_frequency_bins
jaladh-singhal Oct 30, 2020
25ae720
Added docstrings to data handling methods
jaladh-singhal Oct 30, 2020
d53b080
Isolated plotting and calculation code in generate_plot
jaladh-singhal Nov 5, 2020
a26d49a
Removed redundant calculation of packet_nu_range_mask
jaladh-singhal Nov 6, 2020
dc948e8
Separated calculation code in a different method
jaladh-singhal Nov 6, 2020
4ee827e
Added plolty plotting methods
jaladh-singhal Nov 7, 2020
59e9a65
Made dedicated method for showing colorbar in plotly & mpl
jaladh-singhal Nov 7, 2020
41a3cb5
Used plot_util to make labels render in plotly
jaladh-singhal Nov 10, 2020
1714e13
Reduce fontsize of mpl plot labels
jaladh-singhal Nov 10, 2020
2584ed4
Fixed problems in plot when packet_wvl_range is used
jaladh-singhal Nov 12, 2020
02fff16
Reordered methods to group related methods sequentially
jaladh-singhal Nov 12, 2020
ecd709a
Added docstring to calculation method & improved masking
jaladh-singhal Nov 12, 2020
a58869f
Added docstrings to KromerPlotter methods
jaladh-singhal Nov 13, 2020
af4380a
Made test_spectrum to handle hdf saving of scalars
jaladh-singhal Dec 15, 2020
943bab3
Fixing docs building problem (#1387)
isaacgsmith Dec 16, 2020
0c09399
Revert "Fixing docs building problem (#1387)" (#1394)
andrewfullard Dec 16, 2020
23ac153
Fix documentation build (#1392)
epassaro Dec 16, 2020
be92206
adding title to current_public_table.rst
isaacgsmith Dec 17, 2020
9493122
removed the nbsphinx_allow_errors = True
KevinCawley Dec 17, 2020
b315927
Update to fix merge conflitcs
KevinCawley Dec 17, 2020
f401f05
fixing merge conflicts
KevinCawley Dec 17, 2020
c950345
add preview docs section (#1383)
epassaro Dec 17, 2020
93eaa7c
fixing some hyperlinks
isaacgsmith Dec 17, 2020
19717f8
adding label to physical_quantities
isaacgsmith Dec 18, 2020
3f722e8
fixing links in to_hdf
isaacgsmith Dec 18, 2020
04a5f9c
fixing more links
isaacgsmith Dec 18, 2020
49652c9
fixing header on montecarlo_old
isaacgsmith Dec 18, 2020
b6c35fb
trying to fix my branch
KevinCawley Dec 18, 2020
a8450ea
Merge branch 'Issue_1252_1170' of github.com:KevinCawley/tardis into …
KevinCawley Dec 18, 2020
43129af
trying to fix merge conflicts
KevinCawley Dec 18, 2020
7bc3afb
Removed commented debugging code & added newlines at EOF
jaladh-singhal Dec 18, 2020
a4d6003
updates to these two files
KevinCawley Dec 18, 2020
cadccff
Fix incorrect docstrings (#1369)
KevinCawley Dec 18, 2020
2d9ada5
Update Matterbridge docs (#1395)
epassaro Dec 18, 2020
ccbd676
will this fix work
KevinCawley Dec 19, 2020
77dabb2
Fixing merge conflicts
KevinCawley Dec 19, 2020
0fa6de4
work done on docs
KevinCawley Dec 19, 2020
3570427
Merge branch 'Issue_1252_1170' of github.com:KevinCawley/tardis into …
KevinCawley Dec 19, 2020
398f588
Updates to files, testing out display in tardis
KevinCawley Dec 19, 2020
91616bb
removed random sn
KevinCawley Dec 20, 2020
373b0d5
trying to get documentation to build
KevinCawley Dec 20, 2020
dc87c67
fixing some indentation and syntax errors
KevinCawley Dec 20, 2020
db06eb6
fix of syntax for local compile, and removed section of index where t…
KevinCawley Dec 20, 2020
16f24cd
Fixed missing file
KevinCawley Dec 20, 2020
588fda7
changes to make proper syntax
KevinCawley Dec 20, 2020
f96c2fd
trying to fix syntax
KevinCawley Dec 20, 2020
bf8f7ad
Merge pull request #1241 from jaladh-singhal/widgets/kromer_plot
marxwillia Dec 21, 2020
9885897
Update to docs on code quality and guidelines
KevinCawley Dec 22, 2020
e11ae86
Merge remote-tracking branch 'upstream/master' into Issue_1252_1170
KevinCawley Dec 22, 2020
bfad2c8
Update to files descriptions and explanations, fixed grammar
KevinCawley Dec 26, 2020
7fbf0c7
add parso
epassaro Dec 27, 2020
e8ef961
Explicitly add parso to dependencies
andrewfullard Dec 28, 2020
7ee2a08
fix tests with --generate-reference flag
epassaro Dec 22, 2020
84460c4
add black check workflow
epassaro Dec 21, 2020
dabe080
reformatted files
epassaro Dec 29, 2020
3c6395f
added functionality for automatic date updation in docs & fixed the 2…
DhruvSondhi Dec 30, 2020
58e3255
Added section of edge cases and exception handling
KevinCawley Dec 30, 2020
07605cb
Delete Documentation_Guidelines.rst
KevinCawley Dec 30, 2020
68f975a
Delete building_local_docs.rst
KevinCawley Dec 30, 2020
07c663c
Delete coding_guide.rst
KevinCawley Dec 30, 2020
e8df255
Added naming conventions to its own section as it's important
KevinCawley Dec 30, 2020
0713ed3
Merge branch 'Issue_1252_1170' of github.com:KevinCawley/tardis into …
KevinCawley Dec 30, 2020
4bd4f80
Copyright date automatically updates pr/1404
andrewfullard Jan 5, 2021
369a664
Update git_workflow.rst
KevinCawley Jan 6, 2021
fc6af1d
Update index.rst
KevinCawley Jan 6, 2021
cf78251
Update numba_interface.py
KevinCawley Jan 6, 2021
2c6e472
Update r_packet.py
KevinCawley Jan 6, 2021
9b5e21a
Update single_packet_loop.py
KevinCawley Jan 6, 2021
e2243ce
update env file (#1393)
epassaro Jan 8, 2021
9c5e24c
Fix tests with --generate-reference flag
andrewfullard Jan 8, 2021
9ab7de7
initial commit
epassaro Jan 12, 2021
c741faa
Update docs/Code_Quality_Guidelines.rst
KevinCawley Jan 18, 2021
cf1b367
Update docs/Code_Quality_Guidelines.rst
KevinCawley Jan 18, 2021
30762d1
Update numba_interface.py
KevinCawley Jan 18, 2021
6e63544
Update numba_interface.py
KevinCawley Jan 18, 2021
0656db1
Update r_packet.py
KevinCawley Jan 18, 2021
0fbdf1d
Update single_packet_loop.py
KevinCawley Jan 18, 2021
586ea43
Update packet_source.py
KevinCawley Jan 18, 2021
ca81bd5
Restructured developer workflow toctrees
jaladh-singhal Jan 20, 2021
a2324e5
Moved documentation guidelines to a separate rst file
jaladh-singhal Jan 20, 2021
f2e82f8
Add black check workflow
andrewfullard Jan 20, 2021
86d8945
Corrected the Hyperlink reference
himanshu007-creator Jan 21, 2021
8f9a0fd
Edited documentation guidelines
jaladh-singhal Jan 21, 2021
5078bf4
Added running tests to index
jaladh-singhal Jan 21, 2021
8522e7c
blackify tests
epassaro Jan 21, 2021
98a6840
Corrected quickstart hyperlink
andrewfullard Jan 21, 2021
7d7c4bc
Black formatting applied to tests
andrewfullard Jan 21, 2021
fe10159
Add .log to gitignore, disabled montecarlo log
andrewfullard Jan 21, 2021
ae19c5f
Edited code quality guidelines
jaladh-singhal Jan 21, 2021
25c3193
Inserted missing links in Contributing.md
jaladh-singhal Jan 21, 2021
b941dc2
two more fixed hyperlinks
isaacgsmith Jan 22, 2021
54cc315
adding old_plasma section to toctree
isaacgsmith Jan 25, 2021
66f3d8f
moving old_plasma to under old_physics
isaacgsmith Jan 25, 2021
1e87cf6
moving old_plasma file
isaacgsmith Jan 25, 2021
12d9ebb
Add .log to gitignore, disabled montecarlo log
andrewfullard Jan 25, 2021
9cab1ba
Post reference data results
andrewfullard Jan 25, 2021
077ec99
Update PULL_REQUEST_TEMPLATE.md
marxwillia Jan 25, 2021
6a8403b
Fixing Hyperlinks in Documentation
andrewfullard Jan 25, 2021
98baa39
Fix for int64 datatype of variables
DhruvSondhi Jan 24, 2021
4a6a8a6
Fix for packet output data types
andrewfullard Jan 25, 2021
5ecd64f
removing plasma/index
isaacgsmith Jan 25, 2021
cb25fa6
switching physics/plasma.rst to physics/plasma/index.rst
isaacgsmith Jan 25, 2021
9dd0098
fixing hyperlink problems that arose from changes
isaacgsmith Jan 25, 2021
d6e2457
changing hyperlink text
isaacgsmith Jan 25, 2021
234ae1b
fixes for ci docs
epassaro Jan 26, 2021
4f57e74
CI documentation fixes
andrewfullard Jan 26, 2021
0c8602d
Old physics docs reorganization
andrewfullard Jan 26, 2021
abc53ff
Update code_quality.rst
KevinCawley Jan 26, 2021
1d6100b
Update documentation_guidelines.rst
KevinCawley Jan 26, 2021
600de0e
Update documentation_guidelines.rst
KevinCawley Jan 26, 2021
3216283
Update code_quality.rst
KevinCawley Jan 26, 2021
a6d190c
Restructured development workflow and added code quality & documentat…
andrewfullard Jan 27, 2021
72fd51c
add docstr-coverage workflow (#1409)
epassaro Jan 27, 2021
68bc12a
Rename Kromer Plot to Spectral Element Decomposition (SEDec) Plot (#1…
jaladh-singhal Jan 28, 2021
6f89804
Documentation guidelines hotfix (#1431)
KevinCawley Jan 28, 2021
1053c90
compare refdata with arbitrary labels (#1430)
epassaro Jan 28, 2021
4c346f0
Rename SEDec to SDEC in Spectral element DEComposition plot (#1441)
jaladh-singhal Jan 29, 2021
3ac1435
fix update changelog workflow (#1432)
epassaro Jan 30, 2021
7f31e2b
Fixed distance parameter not producing accurate SDEC plots (#1442)
jaladh-singhal Feb 1, 2021
6a271f1
numba_warning (#1455)
antreev-brar Feb 10, 2021
b9ab7c8
Add documentation for Spectral Element Decomposition Plot (#1438)
jaladh-singhal Feb 11, 2021
b2b6a6f
Fixed italicised Units in sdec_plot (#1446)
DhruvSondhi Feb 12, 2021
0a18018
Re-generated SDEC plots
jaladh-singhal Feb 12, 2021
7f98210
Merge pull request #1457 from jaladh-singhal/sdec-replot
marxwillia Feb 12, 2021
8d2c62a
Added option to create redirects in docs configuration and redirected…
jaladh-singhal Feb 16, 2021
927c606
Reorganizing Models (#1454)
isaacgsmith Feb 17, 2021
d92464c
Fix the array types when interpolate_shells > 0
Rodot- Feb 19, 2021
50f13ba
Renamed widgets subpackage to visualization and restructured modules …
jaladh-singhal Feb 24, 2021
bc1707c
incorporating old_physics
isaacgsmith Feb 26, 2021
e080bb8
Update documentation-build.yml
isaacgsmith Feb 28, 2021
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
27 changes: 27 additions & 0 deletions .docstr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
paths:
- tardis
#badge: docs
#exclude: .*/test # regex
verbose: 2 # int (0-3)
skip_magic: True
skip_file_doc: True
skip_init: True
skip_class_def: False
skip_private: True
follow_links: True
#ignore_names_file: .*/test # regex
#fail_under: 90
percentage_only: False
#ignore_patterns: # Dict with key/value pairs of file-pattern/node-pattern
# .*: method_to_ignore_in_all_files
# FileWhereWeWantToIgnoreAllSpecialMethods: "__.+__"
# SomeFile:
# - method_to_ignore1
# - method_to_ignore2
# - method_to_ignore3
# a_very_important_view_file:
# - "^get$"
# - "^set$"
# - "^post$"
# detect_.*:
# - "get_val.*"
22 changes: 14 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
<!--- Provide a general summary of your changes in the Title above -->
<!--- Provide a general summary of your changes in the title above. -->

## Description
<!--- Describe your changes in detail -->
<!--- Describe your changes in detail. -->

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## How Has This Been Tested?
- [ ] Testing pipeline
- [ ] Reference Data Comparison following these [instructions](https://tardis-sn.github.io/tardis/development/continuous_integration.html)
- [ ] Other (please describe)
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
<!--- Go over all the following points, and put an `x` in all the boxes that apply: -->
<!--- What types of changes does your code introduce? -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] None of the above (please describe)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- Go over all the following points, and put an `x` in all the boxes that apply: -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have assigned/requested two reviewers for this pull request.
- [ ] My code follows the code style of this project
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] I have built the documentation on my fork following [these instructions](https://tardis-sn.github.io/tardis/development/documentation_preview.html)
- [ ] I have assigned and requested two reviewers for this pull request
26 changes: 26 additions & 0 deletions .github/workflows/black-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# For more information on how to use this template please refer to:
# http://tardis-sn.github.io/tardis/development/continuous_integration.html

name: black

on:
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Black
run: pip install black

- name: Run Black
run: black --check tardis
37 changes: 37 additions & 0 deletions .github/workflows/docstr-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: docstr-coverage

on:
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install docstr-coverage
run: pip install docstr-coverage

- name: Get base coverage
run: |
git checkout ${{ github.event.pull_request.base.sha }}
echo "BASE_COV=$(docstr-coverage -p)" >> $GITHUB_ENV

- name: Get head coverage
run: |
git checkout ${{ github.event.pull_request.head.sha }}
docstr-coverage --fail-under=$BASE_COV

- name: Blame
if: ${{ failure() }}
run: |
git diff --name-only $(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) | xargs docstr-coverage --accept-empty
15 changes: 13 additions & 2 deletions .github/workflows/documentation-build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
# For more information on how to use this template please refer to:
# http://tardis-sn.github.io/tardis/development/continuous_integration.html

name: documentation-build

on:
push:
branches:
- master
- master

pull_request:
branches:
- master

schedule:
- cron: '10 0 * * 0'

jobs:
documentation_build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

Expand All @@ -16,7 +27,7 @@ jobs:
with:
environment-file: tardis_env3.yml
activate-environment: tardis
channels: conda-forge, defaults
channels: conda-forge
mamba-version: "*"

- name: Install TARDIS
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# For more information on how to use this template please refer to:
# http://tardis-sn.github.io/tardis/development/continuous_integration.html

name: update-changelog

on:
schedule:
- cron: '50 23 * * 0'

jobs:
push:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'tardis-sn' }} # Do not run scheduled jobs on forks

steps:
- uses: actions/checkout@v2

- name: Install github-changes
run: sudo npm install -g github-changes

- name: Update changelog
run: github-changes -o tardis-sn -r tardis --only-pulls --use-commit-body -f CHANGELOG.md -k ${{ secrets.GITHUB_TOKEN }}

- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "TARDIS Bot"
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md [skip ci]"

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_TOKEN }} # Use BOT_TOKEN to push on write-protected branches
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*.so
__pycache__

# Logging
*.log


# Ignore .c files by default to avoid including generated code. If you want to
# add a non-generated .c extension, use `git add -f filename.c`.
Expand Down
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to TARDIS
# Contribution Guidelines

So you are wondering how can you contribute to TARDIS? Congrats, you've landed on the right page!

Expand Down Expand Up @@ -38,7 +38,7 @@ Please make sure that you provide all the necessary information requested by pro

There is always a scope of improvement in documentation to add some missing information or to make it easier for reading. And here lies an opportunity for you, since you can edit the documentation page you want which is stored as a text file in [`docs`](https://github.com/tardis-sn/tardis/tree/master/docs) directory of TARDIS.

After editing the file locally, build the docs as described in [these instructions](#) and then you can submit your changes to us by making a patch as described in the next section.
After editing the file locally, build the docs as described in [these instructions](https://tardis-sn.github.io/tardis/development/documentation_guidelines.html#building-documentation-locally) and then you can submit your changes to us by making a patch as described in the next section.

### Making a Patch

Expand All @@ -48,11 +48,10 @@ To contribute your code to TARDIS, you'll need to make a [pull request](https://

When you make a pull request, please provide all the necessary information requested by prompts in the pull request body. Also, make sure that the code you're submitting always accounts for the following three:

- **Maintaining code quality:** Your code must follow the PEP8 style guide, should cover edge cases, etc. Check our [code quality guidelines](#) for more details.
- **Documenting the code:** You must write docstrings in functions/classes, put a relevant example in TARDIS docs and make sure docs get built correctly. To build the documentation locally, you can follow [this guide](#).
- **Maintaining code quality:** Your code must follow the PEP8 style guide, should cover edge cases, etc. Check our [code quality guidelines](https://tardis-sn.github.io/tardis/development/code_quality.html) for more details.
- **Documenting the code:** You must write docstrings in functions/classes, put a relevant example in TARDIS docs and make sure docs get built correctly. This is explained in detail in our [documentation guidelines](https://tardis-sn.github.io/tardis/development/documentation_guidelines.html).
- **Testing the code:** There should be unit-tests for most of the functions/methods and they must pass our testing framework. To run test locally, you can follow [this guide](https://tardis-sn.github.io/tardis/development/running_tests.html).


### Spreading the word of mouth

If you find TARDIS helpful, you can share it with your peers, colleagues, and anyone who can benefit from TARDIS. If you've used TARDIS in your research, please make sure to cite us (https://tardis-sn.github.io/tardis/credits.html). By telling other people about how we helped you, you'll help us in turn, in extending our impact. And we would absolutely love it if you give us a shout-out on [twitter](https://twitter.com/tardis_sn/)!
Expand Down
6 changes: 0 additions & 6 deletions ah_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,6 @@ def use_astropy_helpers(**kwargs):

Parameters
----------

path : str or None, optional
A filesystem path relative to the root of the project's source code
that should be added to `sys.path` so that `astropy_helpers` can be
Expand All @@ -933,32 +932,27 @@ def use_astropy_helpers(**kwargs):
archive.

If `None` skip straight to downloading.

download_if_needed : bool, optional
If the provided filesystem path is not found an attempt will be made to
download astropy_helpers from PyPI. It will then be made temporarily
available on `sys.path` as a ``.egg`` archive (using the
``setup_requires`` feature of setuptools. If the ``--offline`` option
is given at the command line the value of this argument is overridden
to `False`.

index_url : str, optional
If provided, use a different URL for the Python package index than the
main PyPI server.

use_git : bool, optional
If `False` no git commands will be used--this effectively disables
support for git submodules. If the ``--no-git`` option is given at the
command line the value of this argument is overridden to `False`.

auto_upgrade : bool, optional
By default, when installing a package from a non-development source
distribution ah_boostrap will try to automatically check for patch
releases to astropy-helpers on PyPI and use the patched version over
any bundled versions. Setting this to `False` will disable that
functionality. If the ``--offline`` option is given at the command line
the value of this argument is overridden to `False`.

offline : bool, optional
If `False` disable all actions that require an internet connection,
including downloading packages from the package index and fetching
Expand Down
64 changes: 55 additions & 9 deletions azure-pipelines/compare-refdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,31 @@ schedules:

variables:
system.debug: false
results.url: 'http://opensupernova.org/~azuredevops/files/refdata-results'
commit.sha: '$(Build.SourceVersion)'
pr.number: '$(System.PullRequest.PullRequestNumber)'
#ref1.hash: ''
#ref2.hash: ''

jobs:
- job: report
pool:
vmImage: 'ubuntu-latest'
pool:
vmImage: 'ubuntu-latest'

jobs:
- job: 'report'
steps:
- template: templates/default.yml
parameters:
fetchRefdata: true
fetchRefdata: false # See the comment below.
useMamba: true


# Azure Repos requires token auth for public repositories containing LFS objects (bug).
# Fetch reference data from Azure with a PAT until a fix arrives.
- bash: |
source activate tardis
$(package.manager) install bokeh --channel conda-forge --no-update-deps --yes
displayName: 'Install Bokeh'
MY_PAT=$(azure_pat)
B64_PAT=$(printf ":$MY_PAT" | base64)
git -c http.extraHeader="Authorization: Basic ${B64_PAT}" clone https://[email protected]/tardis-sn/TARDIS/_git/tardis-refdata $(refdata.dir)
cd $(refdata.dir); git -c http.extraHeader="Authorization: Basic ${B64_PAT}" lfs fetch --all
displayName: 'Fetch reference data repository'

- bash: |
cd $(refdata.dir)
Expand All @@ -42,6 +51,12 @@ jobs:
source activate tardis
pytest tardis --tardis-refdata=$(refdata.dir) --generate-reference
displayName: 'Generate reference data'
condition: or(eq(variables['ref1.hash'], ''), eq(variables['ref2.hash'], ''))

- bash: |
source activate tardis
$(package.manager) install bokeh=2.2 --channel conda-forge --no-update-deps --yes
displayName: 'Install Bokeh'

- bash: |
cd $(refdata.dir)/notebooks
Expand All @@ -62,3 +77,34 @@ jobs:
artifactName: 'report'
displayName: 'Upload artifact'
condition: succeededOrFailed()

- task: InstallSSHKey@0
inputs:
knownHostsEntry: $(opensupernova_host)
sshPublicKey: $(opensupernova_pubkey)
sshKeySecureFile: openSupernovaKey

- bash: |
ssh [email protected] "mkdir -p /home/azuredevops/public_html/files/refdata-results/$(pr.number)"
scp $(refdata.dir)/notebooks/ref_data_compare.html [email protected]:/home/azuredevops/public_html/files/refdata-results/$(pr.number)/$(commit.sha).html
displayName: 'Copy files to server'
condition: succeededOrFailed()

# Run only if the pipeline is triggered by a pull request.
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- task: GitHubComment@0
inputs:
gitHubConnection: 'tardis-sn'
repositoryName: 'tardis-sn/tardis'
id: $(pr.number)
comment: '**Build succeeded** $(commit.sha) <br><br> [Click here]($(results.url)/$(pr.number)/$(commit.sha).html) to see results.'
displayName: 'Post results (success)'

- task: GitHubComment@0
inputs:
gitHubConnection: 'tardis-sn'
repositoryName: 'tardis-sn/tardis'
id: $(pr.number)
comment: '**Build failed** $(commit.sha) <br><br> [Click here]($(results.url)/$(pr.number)/$(commit.sha).html) to see results.'
displayName: 'Post results (failed)'
condition: failed()
14 changes: 14 additions & 0 deletions docs/_templates/redirect_file.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="1; url=#" />
<script type="text/javascript">
window.location.href = "#";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow <a href="#">this link</a>.
</body>
</html>
Loading