Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
20a0daa
imp(parameters): Added ParametersBase parent class for parameter hand…
brunohcfaria Apr 23, 2024
caf423e
refactoring parameter_hotspot
araujoUnb Apr 23, 2024
4db0248
Merge branch 'parameter_handling_refactoring' of https://github.com/R…
araujoUnb Apr 23, 2024
171c25a
parameters_hotsport.py refactoring
araujoUnb Apr 23, 2024
f450da6
update gitignore
araujoUnb Apr 23, 2024
3b2b21b
refactoring of antenna_imt, ees_passive, fs, hotspot, and indoor para…
araujoUnb Apr 24, 2024
ddf5258
sharc constant definitions
araujoUnb Apr 24, 2024
91f8842
imp(parameters): Parameters refactoring for FSS_ES, FSS_SS, HAPS, RAS…
brunohcfaria Apr 25, 2024
6214fc8
imp(parameters): Added physical constants
brunohcfaria Apr 25, 2024
f4fc106
tests: Added ParameterIMT unit tests.
brunohcfaria Apr 30, 2024
fc0f7fe
tests(parameters): Added unit tests for all parameter handlers
brunohcfaria Apr 30, 2024
868e598
Merge branch 'parameter_handling_refactoring' of https://github.com/R…
araujoUnb May 8, 2024
86b4a8d
Added tuple handler in ParameterBase
brunohcfaria May 9, 2024
46793c1
Merge pull request #9 from Radio-Spectrum/parameter_handling_refactoring
brunohcfaria May 14, 2024
0770727
Added the option to set satellite height in footprint class.
alvimpaulo Jun 17, 2024
b3d809d
Added sigma to the initializer.
alvimpaulo Jun 20, 2024
a402eb1
Fixed wrong call to calc_beta.
alvimpaulo Jun 20, 2024
189f224
Fixed error related to hardcoded maxima.
alvimpaulo Jun 20, 2024
15646e9
Adds script to convert between .ini and .yaml.
alvimpaulo Jul 4, 2024
80a677d
Changes parameters file to yaml.
alvimpaulo Jul 4, 2024
da234f7
Merge pull request #18 from alvimpaulo/issue-16-height-parameter
brunohcfaria Jul 23, 2024
e53b9fa
Updated Issue33
Jul 29, 2024
ce4a5ce
Merge pull request #42 from TenTemujin/Issue33_Suggestion
TenTemujin Aug 18, 2024
9554796
Removed figure files from tests folder
brunohcfaria Aug 19, 2024
2c2813d
Improvement: propagation refactoring (#12)
brunohcfaria Aug 20, 2024
5e640b4
Feature - IMT Mobile Satellite Service (former NTN) (#49)
brunohcfaria Aug 20, 2024
9f7e509
Added debug configuration to VScode
brunohcfaria Aug 21, 2024
2dfb493
feat(antenna): Added antenna RS2043 from dev_eess_active branch
brunohcfaria May 7, 2024
13f09af
Added EESS for active sensors
brunohcfaria May 7, 2024
fcb37a3
Added INR plot script
brunohcfaria May 8, 2024
fa7144e
Added example input parameter for IMT MACRO to EESS Active sharing study
brunohcfaria May 8, 2024
51c67da
Added frequency check for EESS parameters
brunohcfaria May 8, 2024
909b3ca
Added vscode settings for SHARC workspace
brunohcfaria Aug 21, 2024
d1a1e0b
Updated parameters input example for EESS active simulation
brunohcfaria May 14, 2024
44e8f7b
Fixed missing atribute in ParametersEessPassive
brunohcfaria Aug 21, 2024
e3fccf4
Added example campaign for IMT TN to EESS Active studies
brunohcfaria Aug 21, 2024
73e5081
Fixed Spectral Mask IMT script
brunohcfaria Aug 21, 2024
7f31f2b
Added missing Parameters452.py file
brunohcfaria Aug 21, 2024
2d7ffc2
fix: requirements txt
artistrea Aug 22, 2024
d12d10a
fix: requirements.txt for footprint
artistrea Aug 22, 2024
7767ef5
fixed eess parameters file
Aug 22, 2024
db3a7d2
Merge remote-tracking branch 'origin' into feat_eess_active
Aug 22, 2024
c1b56e2
Manually fixed simple typos
vitorbborges Aug 23, 2024
ee56d53
Revert "Manually fixed simple typos"
vitorbborges Aug 23, 2024
203289e
GitHub Actions Unittest and Linting
vitorbborges Aug 23, 2024
bb809f9
GitHub Actions Dependenncy Review (Security)
vitorbborges Aug 23, 2024
ab1970f
Merge remote-tracking branch 'parameters/issue-20-parameters-file-yam…
RaulMyron Aug 23, 2024
4476d3d
adding all .yaml
RaulMyron Aug 23, 2024
c4ab0f5
update: requirements.txt back to alphabetic order
artistrea Aug 26, 2024
5f47152
Merge branch 'master' into feat_eess_active
TenTemujin Aug 28, 2024
79497ce
Refactored the function calculate_gains to not depend on the
brunohcfaria Sep 5, 2024
37ba597
Merge pull request #59 from Radio-Spectrum/fix/requirements_txt
brunohcfaria Sep 6, 2024
635fd78
ITU-2108 Update / propagation_clutter_loss.py Update
RaulMyron Sep 6, 2024
f45d1f5
Merge pull request #63 from Radio-Spectrum/refactor_calculate_gains
brunohcfaria Sep 6, 2024
8cade57
adding yaml params
RaulMyron Sep 6, 2024
1a59efa
fixcing parameters_base
RaulMyron Sep 6, 2024
4724334
adding yaml files
RaulMyron Sep 6, 2024
00ce615
fix: StationFactory.generate_imt_base_stations typo for macrocell and…
artistrea Sep 6, 2024
8930a77
wip: space station generic
artistrea Sep 9, 2024
c30c33d
fix(test): footprint test at least passes
artistrea Sep 10, 2024
7bca64f
update(test): footprint test will not plot anymore
artistrea Sep 10, 2024
97ffa4c
update(test): footprint test now tests for different sat heights
artistrea Sep 10, 2024
2a34635
update(tests): removed legacy footprint tests
artistrea Sep 10, 2024
f75f469
update(test): footprint non passing test for setting sat height
artistrea Sep 10, 2024
382ddb4
fix: footprint sat_height not setting if not initializing with `eleva…
artistrea Sep 10, 2024
d09adb8
Refactored the function calculate_gains to not depend on the
brunohcfaria Sep 5, 2024
2b9170a
update: eess passive to eess ss
artistrea Sep 11, 2024
c15e92f
fix: generic space station sanitization
artistrea Sep 11, 2024
4870503
update: default metsat ss parameters
artistrea Sep 11, 2024
2e3b6bb
feat: imt metsat earth to space campaign init
artistrea Sep 11, 2024
42168e4
hotfix(sharc): parameters space station & eess_ss station
artistrea Sep 13, 2024
ed7c7c1
feat(campaign): imt eess passive c7 sensor
artistrea Sep 13, 2024
3e554a2
feat: alternative imt spectral mask
artistrea Sep 16, 2024
56db804
feat: alternative imt spectral mask
artistrea Sep 16, 2024
5eda860
update(campaign): macro eess parameters
artistrea Sep 16, 2024
c2ebfa2
fix: using alternative mask
artistrea Sep 16, 2024
aa8b096
fix: using alternative mask
artistrea Sep 16, 2024
64de6c4
Merge branch 'development' into yaml-params
brunohcfaria Sep 18, 2024
8b2256d
Merge pull request #68 from RaulMyron/yaml-params
brunohcfaria Sep 18, 2024
4c1f1bf
Merge pull request #69 from Radio-Spectrum/update/footprint_tests
brunohcfaria Sep 18, 2024
fad8452
Merge pull request #65 from Radio-Spectrum/fix/station_factory_typo
brunohcfaria Sep 18, 2024
5bac692
wip: comparing to luciano results
artistrea Sep 19, 2024
fcc7e1c
refactor: alternative imt spectral mask
artistrea Sep 19, 2024
bd069f1
fix: alternative spectral mask interval
artistrea Sep 19, 2024
5f21f1b
update(tests): added alternative mask tests
artistrea Sep 19, 2024
4e73abd
refactor: spectral mask imt alternative
artistrea Sep 20, 2024
15bd189
update: stuff to compare results
artistrea Sep 20, 2024
e128bf6
fix: alternative imt spectral mask working for all outdoor scenarios
artistrea Sep 20, 2024
2d906ec
Merge pull request #74 from Radio-Spectrum/feat/alternative_imt_spect…
brunohcfaria Sep 20, 2024
2d1806c
adding changes to propagatin clutter loss, correction extra imports a…
RaulMyron Sep 24, 2024
11cb240
Merge branch 'development' of https://github.com/RaulMyron/SHARC into…
RaulMyron Sep 24, 2024
eec290f
fixing error with f-string in parameters_ntn.py
RaulMyron Sep 24, 2024
7876fec
update: luciano campaig
artistrea Sep 24, 2024
50b6a3b
Readding requirements.txt
RaulMyron Sep 25, 2024
feb7ff2
readding requirements.txt, ops
RaulMyron Sep 25, 2024
6e47faf
fixing the same sintaxe error with fstring but in propagation_p619.py
RaulMyron Sep 25, 2024
d61fc80
update: imt macro eess passive analysis
artistrea Sep 26, 2024
e2c2cc4
update: station factory
artistrea Sep 26, 2024
814eea8
update: spectral mask imt to be same as development
artistrea Sep 26, 2024
89ad1d0
feat: eduardo hiroshi results comparison campaign
artistrea Sep 26, 2024
d3bdacc
update: station factory
artistrea Sep 26, 2024
dd5ccd4
update: spectral mask imt to be same as development
artistrea Sep 26, 2024
9123fd3
removed: unused campaigns
artistrea Sep 26, 2024
626ba8d
feat: interference power from imt ul on plots
artistrea Sep 26, 2024
ff405fe
Merge branch 'development' into feat/space_station_generic
artistrea Sep 26, 2024
268119d
update: yaml for metsat & stuff
artistrea Sep 26, 2024
66487f3
Merge branch 'feat/space_station_generic' into feat/eess_contrib21_co…
artistrea Sep 26, 2024
c73a8d9
changed 'ini' to 'yaml'
RaulMyron Sep 26, 2024
fc2e1ab
removing extra yaml files on output
RaulMyron Sep 26, 2024
9adf6f0
gitignore and readme for campaign files updated
RaulMyron Sep 26, 2024
4ecd349
updated pytest for .yaml parameters instead of .ini
RaulMyron Sep 26, 2024
71b9a64
Add parameter UNIFORM_IN_CELL
anollba Sep 29, 2024
c873383
update: readme and .vscode/settings back to development
artistrea Oct 1, 2024
ededa4a
feat: eess campaigns
artistrea Oct 1, 2024
ddffc73
hotfix: parameters yml and run multiple campaigns
artistrea Oct 1, 2024
7c8ef68
update: readme and .vscode/settings back to development
artistrea Oct 1, 2024
c8a5e5a
removed: useless campaign
artistrea Oct 1, 2024
f4b3f31
Merge branch 'feat/space_station_generic' into feat/eess_contrib21_co…
artistrea Oct 1, 2024
e9ff127
update: better eess active campaign scripts & readme
artistrea Oct 1, 2024
04d78ca
update: some stuff back to be eq to development
artistrea Oct 1, 2024
78513f7
fix: station factory rayleigh scale
artistrea Oct 1, 2024
2add4bf
hotfix: station factory & parameters for eess_ss
artistrea Oct 1, 2024
b8beb6a
Merge branch 'feat/space_station_generic' into feat/eess_contrib21_co…
artistrea Oct 1, 2024
276e5bd
update: eess passive campaign generate_aggregate_cdf with other used …
artistrea Oct 2, 2024
08d032a
fix(test): parameters
artistrea Oct 11, 2024
c3d38ed
feat: nest parameters capability on parameters_base
artistrea Oct 11, 2024
193b5ca
feat: single earth station
artistrea Oct 11, 2024
7462b22
hotfix: parameters after parameters_base change
artistrea Oct 11, 2024
f097f03
feat(tests): single earth station tests
artistrea Oct 11, 2024
77aecfa
Merge pull request #82 from Radio-Spectrum/fix/parameters_test
brunohcfaria Oct 11, 2024
347da00
update: deprecate earth stations that aren't the generic one
artistrea Oct 11, 2024
bac570b
hotfix: parameters after parameters_base change
artistrea Oct 11, 2024
6e86a7f
Fixed campaing run script to accept new yaml format
brunohcfaria Oct 15, 2024
0d1ccf0
Merge remote-tracking branch 'origin/development' into pr/RaulMyron/75
brunohcfaria Oct 15, 2024
9186cfe
Updated gitignore with csv result files
brunohcfaria Oct 15, 2024
f623f50
Merge pull request #75 from RaulMyron/yaml-params
brunohcfaria Oct 15, 2024
e3925c5
Merge remote-tracking branch 'origin/development' into feat/space_sta…
brunohcfaria Oct 15, 2024
555dfcd
Removed ini files from campaigns folder
brunohcfaria Oct 15, 2024
95dfdbc
Removed old scrips/post_processing/plot_inr_cdf.py script
brunohcfaria Oct 15, 2024
d672229
Merge pull request #80 from Radio-Spectrum/feat/space_station_generic
brunohcfaria Oct 15, 2024
91c33aa
Merge pull request #83 from Radio-Spectrum/feat/nested_parameters
brunohcfaria Oct 15, 2024
3b3e47d
Merge remote-tracking branch 'origin/development' into feat/earth_sta…
brunohcfaria Oct 15, 2024
8c03c66
removed output files generated by the simulator
brunohcfaria Oct 15, 2024
b50829c
Merge remote-tracking branch 'origin/development' into feat/earth_sta…
brunohcfaria Oct 15, 2024
c2285d9
Merge pull request #84 from Radio-Spectrum/feat/earth_station_generic
brunohcfaria Oct 15, 2024
8ed8084
Merge remote-tracking branch 'origin/development' into feat/eess_cont…
brunohcfaria Oct 15, 2024
abc1b24
Merge remote-tracking branch 'origin/development' into pr/vitorbborge…
brunohcfaria Oct 15, 2024
867815c
Fixed antenna f1245 file formatting
brunohcfaria Oct 15, 2024
20e7e34
Fixed antenna R.122 file formatting
brunohcfaria Oct 15, 2024
ea1302b
Merge pull request #86 from Radio-Spectrum/fix/antenna_f1245
brunohcfaria Oct 15, 2024
19f3703
Merge remote-tracking branch 'origin/development' into pr/vitorbborge…
brunohcfaria Oct 15, 2024
f9d2b12
Fixed flake8 errors.
brunohcfaria Oct 15, 2024
e3d8fb7
chore: removed useless comments from parameters.py
artistrea Oct 15, 2024
bb28c70
update(campaign): added TODO to eess_passive plot_comparison
artistrea Oct 15, 2024
c68f04a
revert: antenna_rs1813 chart back to development chart
artistrea Oct 15, 2024
5c9775d
Merge branch 'feat/eess_contrib21_comparison' of github.com:Radio-Spe…
artistrea Oct 15, 2024
a4e56e6
WIP: Fixing unittest errors
brunohcfaria Oct 16, 2024
cf02827
Merge branch 'development' into pr/RaulMyron/76-2
brunohcfaria Oct 17, 2024
dd0ffd7
Merge pull request #76 from RaulMyron/development
brunohcfaria Oct 17, 2024
12165e8
Merge remote-tracking branch 'origin/development' into fix/flake8_errors
brunohcfaria Oct 17, 2024
415b17b
Updated workspace settings with flake8 arguments
brunohcfaria Oct 17, 2024
8067054
Adding recommended extensions for sharc workspace
brunohcfaria Oct 17, 2024
e85b42f
Add UNIFORM_IN_CELL
anollba Oct 18, 2024
f3d9f84
Fix UE generation with minimum distance
anollba Oct 18, 2024
81d98cf
Merge remote-tracking branch 'origin/development' into pr/vitorbborge…
brunohcfaria Oct 18, 2024
7e98997
Updated flake8 selected errors and warnings to workflow
brunohcfaria Oct 18, 2024
604481d
Merge pull request #57 from vitorbborges/issue-1-flake8-errors-opinio…
brunohcfaria Oct 18, 2024
5b1889b
Merge remote-tracking branch 'origin/development' into fix/flake8_errors
brunohcfaria Oct 18, 2024
5f45e8a
Fixed linter errors
brunohcfaria Oct 18, 2024
7b5f1a4
Removed depenecy-review workflow
brunohcfaria Oct 18, 2024
7345503
Updated lint options to ignore E266
brunohcfaria Oct 18, 2024
d02f6f8
Updaded unittest-link workflow
brunohcfaria Oct 18, 2024
de6c464
Fixing more linting errors
brunohcfaria Oct 18, 2024
9fa392e
Fallback unittest workflow
brunohcfaria Oct 18, 2024
1bd9984
Added the quiet option for ParamtersBase to prevent default verbose o…
brunohcfaria Oct 18, 2024
522adba
Fixed paramter name error in test_spectral_mask_3gpp.py
brunohcfaria Oct 18, 2024
366f7ba
WIP: Temporarily disabled bogus tests.
brunohcfaria Oct 18, 2024
53205cf
Added missing module area to requirements.txt
brunohcfaria Oct 18, 2024
016c0c3
Merge pull request #88 from Radio-Spectrum/fix/flake8_errors
brunohcfaria Oct 18, 2024
6253406
Merge remote-tracking branch 'origin/development' into fix_ue_generation
brunohcfaria Oct 21, 2024
32db1c8
Added get_random_position docstring
brunohcfaria Oct 21, 2024
9b9325c
Merge pull request #93 from Radio-Spectrum/fix_ue_generation
brunohcfaria Oct 21, 2024
2940892
Fixed wrong section names preventing from parsing the paramters file.
brunohcfaria Oct 21, 2024
6ffec91
update: poc of nested imt parameters
artistrea Oct 21, 2024
91e023a
update: better separated imt topology parameters
artistrea Oct 22, 2024
3312a73
update: simulator to use new imt nested params
artistrea Oct 22, 2024
afa1846
fix: unit tests using nested parameters
artistrea Oct 22, 2024
dd0a636
update: campaign imt_mss_ras using imt nested params
artistrea Oct 22, 2024
3aee7ec
Changed intra-imt coupling loss calculation array shape.
brunohcfaria Oct 21, 2024
75d20a2
update: campaign imt mss ras using new nested imt params
artistrea Oct 24, 2024
70ca698
update: campaign hibs ras using imt nested attributes
artistrea Oct 24, 2024
dac92bb
update: reference parameters to new imt modeling
artistrea Oct 24, 2024
e016c09
update: ras to use single earth station model
artistrea Oct 24, 2024
55f4493
Merge branch 'development' into feat/imt_nested_parameters
artistrea Oct 24, 2024
37e784a
fix: lint errors
artistrea Oct 24, 2024
c5c52ba
update: use actual ras in campaigns
artistrea Oct 24, 2024
423f264
up
Oct 30, 2024
1610fdf
Merge pull request #99 from Radio-Spectrum/71-generate-path-loss-vect…
brunohcfaria Oct 30, 2024
3e30c28
feat: post processor and updated results
artistrea Oct 30, 2024
1685d35
chore: ran formatter on changed files
artistrea Oct 30, 2024
9b71e2c
feat: some tests for results and post processor & update aggregate_re…
artistrea Oct 31, 2024
e94a961
fix: some post_processor commented usage details
artistrea Oct 31, 2024
1437ab5
hotfix: results overwrite results
artistrea Oct 31, 2024
58bfcda
Merge branch 'development' into update/results-and-postprocessing
artistrea Oct 31, 2024
6b3c3d6
Merge branch 'development' into feat/imt_nested_parameters
artistrea Oct 31, 2024
56e3004
Merge pull request #102 from Radio-Spectrum/feat/imt_nested_parameters
brunohcfaria Oct 31, 2024
d4f91ef
Adicionando os parametros para a utilização do padrão de antena ITU_R…
Oct 31, 2024
04dae50
update: better PostProcessor.aggregate_results
artistrea Oct 31, 2024
e26af0a
update: added more funcionality to statistics class
artistrea Oct 31, 2024
f8d55bc
Consetando alguns erros ao tentar realizar o debbug e adicionando os …
joaocabeca2 Nov 1, 2024
ad943f7
Merge pull request #105 from Radio-Spectrum/update/results-and-postpr…
brunohcfaria Nov 1, 2024
3436311
Added ue azimuth as a parameter
brunohcfaria Oct 22, 2024
86537b6
hotfix: propagation p619 path loss shape
artistrea Nov 4, 2024
e1639ef
Merge pull request #107 from Radio-Spectrum/hotfix/p619_propagation_loss
brunohcfaria Nov 4, 2024
cb913d8
Merge pull request #104 from Radio-Spectrum/70-stationfactorygenerate…
brunohcfaria Nov 6, 2024
c8fa609
Merge branch 'development' into feat/eess_contrib21_comparison
artistrea Nov 6, 2024
9852737
Merge branch 'fix_ue_generation' into fix_ue_generation
joaocabeca2 Nov 6, 2024
9268b06
hotfix: hotspot topology
artistrea Nov 6, 2024
61f6f22
update: better campaign imt hotspot eess active
artistrea Nov 6, 2024
684bf09
update: gitignore ignores output dirs and .venv more completely
artistrea Nov 6, 2024
aa35d7d
fix: campaign imt hotspot eess active bs antenna from bad update
artistrea Nov 6, 2024
63a7d7c
hotfix: post processor confidence interval and plot legend pattern ma…
artistrea Nov 6, 2024
7e484e0
feat: post processor may generate any sample statistics
artistrea Nov 6, 2024
112f3b6
update: campaign eess contrib 21
artistrea Nov 6, 2024
917fa09
update: campaigns simulating eess readme
artistrea Nov 6, 2024
d4eabfc
update: readme campaigns eess
artistrea Nov 6, 2024
86fa455
Merge pull request #81 from Radio-Spectrum/feat/eess_contrib21_compar…
brunohcfaria Nov 7, 2024
c1ea255
Fixing lint and code styling errors.
brunohcfaria Nov 7, 2024
17e818e
Merge remote-tracking branch 'origin/development' into pr/joaocabeca2…
brunohcfaria Nov 7, 2024
1d8c480
Fixing lint errors
brunohcfaria Nov 7, 2024
d44c31f
Added ParamtersAntennaS1528
brunohcfaria Nov 7, 2024
828c783
Integration of ParamatersAntennaS1528
brunohcfaria Nov 7, 2024
799c2a7
update 1411
Nov 11, 2024
76f8511
update
joaocabeca2 Nov 12, 2024
d6d4128
up
Nov 12, 2024
412604b
Merge branch 'fix_ue_generation' of https://github.com/joaocabeca2/SH…
Nov 12, 2024
cbf401c
beggining shf and ehf implementation
joaocabeca2 Nov 13, 2024
8547721
The implementation of SHF and fixing frequency to be considered ghz f…
Nov 13, 2024
09ea9a3
savee changes
joaocabeca2 Nov 14, 2024
5e37b65
update
joaocabeca2 Nov 21, 2024
3c62b8e
update on ehf
Nov 21, 2024
01d7347
Implements the propagation general model described in ITU-R P.1411-12
joaocabeca2 Nov 22, 2024
4149f0b
implementing a class for calculating millimetre-wave propagation loss…
joaocabeca2 Nov 25, 2024
d94d617
parameters for 1411 itu recomendation
Nov 25, 2024
ec410f3
Implementing the nlos situation for ehf propagation
Nov 26, 2024
2e070f7
Implementing the nlos situation for ehf propagation
Nov 27, 2024
43c7eea
update
Nov 27, 2024
071a0a6
plots for los and nlos cases on ehf propagation
Nov 28, 2024
fb801e7
deleting unfinished shf propagation
Nov 28, 2024
69e244a
up
Nov 28, 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
45 changes: 45 additions & 0 deletions .github/workflows/unittest-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Python application

on:
push:
branches:
- master
- development
- 'v1.*'
pull_request:
branches:
- master
- development
- 'v1.*'
types:
- opened
- reopened
- synchronize

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82,W191,W291,W292,W293,W391,E131,E2,E3,E266 --ignore=E266 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with unittest
run: |
python -m unittest discover -s tests
31 changes: 30 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/sharc/logfile.log
/sharc/output/*.txt
/sharc/output/*.png
/sharc/output_*/*
/sharc/campaigns/*/output/


__pycache__
.spyproject
Expand All @@ -17,6 +18,7 @@ __pycache__/

# Distribution / packaging
.Python
venv/
env/
build/
develop-eggs/
Expand Down Expand Up @@ -70,3 +72,30 @@ target/
# pyenv python configuration file
.python-version
/sharc/antenna/figs
/sharc/.venv/
.DS_Store
.venv/
venv/
myenv/pyvenv.cfg
myenv/Scripts/activate
myenv/Scripts/activate.bat
myenv/Scripts/Activate.ps1
myenv/Scripts/deactivate.bat
myenv/Scripts/pip.exe
myenv/Scripts/pip3.12.exe
myenv/Scripts/pip3.exe
myenv/Scripts/python.exe
myenv/Scripts/pythonw.exe

# Ignore output files
[IMT]*.txt
[SYS]*.txt
IMT_*.txt
SYS_*.txt


# Ignores campaigns output

/sharc/campaigns/imt_*/output/output_imt*/*.csv
/sharc/campaigns/imt_*/output/output_imt*/*.ini
/sharc/campaigns/imt_*/output/Figs/*.png
16 changes: 16 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"ms-python.python",
"ms-python.debugpy",
"ms-python.flake8",
"ms-python.autopep8"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [

]
}
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: SHARC main_cli.py",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/sharc/main_cli.py",
"console": "integratedTerminal",
"args": [
"-p",
"${workspaceFolder}/sharc/input/parameters.yaml"
]
}
]
}
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.rulers": [
120
]
},
"flake8.args": [
"--count",
"--max-line-length=127",
"--statistics",
"--ignore=W605,W504,E266,F811,E131,C0209,C0103,C0115,C0115,C0116,C0201"
],
"autopep8.args": [
"--max-line-length 120",
"--agressive"
]
}
202 changes: 202 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
# Contributing

Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.

You can contribute in many ways:

## Types of Contributions

### Report Bugs

Report bugs at https://github.com/Radio-Spectrum/SHARC/issues

If you are reporting a bug, please include:

* Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.

### Fix Bugs
Look through the GitHub issues for bugs. Anything tagged with "bug"
and "help wanted" is open to whoever wants to implement it.

### Implement Features
Look through the GitHub issues for features. Anything tagged with "enhancement"
and "help wanted" is open to whoever wants to implement it.

### Write Documentation
SHARC could always use more documentation, whether as part of the
official SHARC docs, in docstrings, or even on the web in blog posts,
articles, and such.

When implementing a new feature such as a new propagation model or a new antenna model,
add the documentation to the Wiki.

### Submit Feedback
The best way to send feedback is to file an issue at https://github.com/Radio-Spectrum/SHARC/issues.

If you are proposing a feature:

* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
* Remember that this is a volunteer-driven project, and that contributions
are welcome :)

## Branching model

The branching model is based on this excelent post written by Vincent Driessen.

A Successful Git Branching Model - https://nvie.com/posts/a-successful-git-branching-model/

### The main branches
The central repo holds two main branches with an infinite lifetime:

* `master` - main branch where the source code of HEAD always reflects a production-ready state.
* `development` - the main branch where the source code of HEAD always reflects a state with the latest
delivered development changes for the next release

When the source code in the `development` branch reaches a stable point and is ready to be released,
all of the changes should be merged back into `master` and then tagged with a release number.

### supporting branches
The supporting porting branches to aid parallel development between team members, ease tracking of features,
prepare for production releases and to assist in quickly fixing live production problems.
Unlike the main branches, these branches always have a limited life time, since they will be removed eventually.

* `feature` branches
* `release` branches
* `hotfix` branches

### feature branches
Feature branches are used to develop new features. For example, an addidion of a new antenna model or
a new propagation model.

May branch off from:
`develop`
Must merge back into:
`develop`
Branch naming convention:
anything except `master`, `development`, `release-*`, or `hotfix-*`. For example, `feature-propagation-619`.

### release branches
Release branches support preparation of a new production release. They allow for minor bug fixes and
preparing meta-data for a release (version number, build dates, etc.)

May branch off from:
`develop`
Must merge back into:
`develop` and `master``
Branch naming convention:
`release-*`

### hotfix branches
Used when a critical bug in a production version must be resolved immediately.

May branch off from:
`master`
Must merge back into:
`develop` and `master`
Branch naming convention:
`hotfix-*`

## Languages

### Python

The [PEP8 style guide](https://www.python.org/dev/peps/pep-0008/) is authoritative.

#### Type annotations
All new code should be fully type-annotated.
For reference, please look at this [type hints cheat sheet for Python 3](https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html).

#### Documentation
* Document all public functions and keep those docs up to date when you make changes
* We use [Google style docstrings](https://google.github.io/styleguide/pyguide.html#383-functions-and-methods) in our codebase (if you find a docstring missing or in the wrong format you're welcome to fix it.)
* For VSCode users, [Python Docstring Generator](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring) plugin is recommended
Example:

```
def foo(arg1: str) -> int:
"""Returns the length of arg1.

Args:
arg1 (str): string to calculate the length of

Returns: the length of the provided parameter
"""
return len(arg1)
```


## Get Started!
Ready to contribute? Here's how to set up `sharc` for local development.

1. Fork the `sharc` repo on GitHub.
2. Clone your fork locally:

`$ git clone git@github.com:your_name_here/sharc.git`

`$ cd SHARC/`

3. Install any version of python 3 and the virutalenv module in your system (SHARC has been tested from versions 3.8 and above).
4. Install your local copy into a virtualenv.

`$ cd sharc`

`$ python3 -m venv .venv`

`$ source .venv/bin/activate`

You shall see (.venv) in the begining of your command prompt indicating that the virutalenv has been activated.
Now, instalal the dependencies for development.
`$ pip install -r requirements.txt`

Install sharc on your local enviroment.
Run from the source code directory root:
`$ pip install -e .`

4. Create a branch for local development::

`$ git checkout -b name-of-your-bugfix-or-feature`

Now you can make your changes locally.

5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox:

`$ flake8 sharc tests`

`$ python setup.py test or py.test`


To get flake8 and tox, just pip install them into your virtualenv.

6. Commit your changes and push your branch to GitHub::

`$ git add .`

`$ git commit -m "Your detailed description of your changes."`

`$ git push origin name-of-your-bugfix-or-feature`

7. Submit a pull request through the GitHub website.

# Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

1. The pull request should include tests.
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 2.6, 2.7, 3.3, 3.4 and 3.5, and for PyPy. Check
https://travis-ci.org/edgar-souza/sharc/pull_requests
and make sure that the tests pass for all supported Python versions.

Tips
----

To run a subset of tests::

$ py.test tests.test_sharc

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SHARC
Simulator for use in sharing and compatibility studies of radio communication systems
Welcome to SHARC, a simulator for use in SHARing and Compatibility studies of radiocommunication systems. The development of this software is being lead by the Telecommunications Regulatory Authority (TRA) of Brazil, ANATEL, and it implements the framework proposed by Recommendation ITU-R M.2101 for "modelling and simulation of IMT networks and systems for use in sharing and compatibility studies".

Please refer to `CONTRIBUTING.md` for contribution guidelines and how to setup your environment.
Loading