Giter Site home page Giter Site logo

simulator-wg / sharc Goto Github PK

View Code? Open in Web Editor NEW
15.0 14.0 15.0 5.45 MB

Simulator for use in sharing and compatibility studies of wireless communication systems

License: GNU Affero General Public License v3.0

telecommunications wireless-communications simulator imt-2020 sharing compatibility

sharc's People

Contributors

edgar-souza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sharc's Issues

Improve the calculation of the spot beam coverage area

When the satellite elevation angle is 90 deg, the coverage area of a circular beam is given by the curved surface area of the spherical cap. This is not the case for other elevation angles and this calculation has to be improved.

Tkinter is not thread safe

Expected behavior

GUI should run without any problem.

Actual behavior

User interface is based on tkinter, which is not thread safe. Actual simulation flow is started by a separated thread and application crashes when simulation sends update messages to GUI from a thread other than the main one.

Steps to reproduce the problem

Run simulator in Linux environment (Anaconda with Python 3.5). For some reason, simulation runs fine in Windows.

Review all unit tests

All unit tests must be reviewed.

  • There is a gap to improve the coverage of unit tests;
  • Running unit tests must be fast

Error using the math.inf in atmosphere.py

  • SHARC version: (development branch) at commit aba88b7
  • Python version: Python 3.4.2
  • Operating System: Debian 3.16.43

Description

Trying to run through main_cli.py with parameter.ini

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

~/SHARC/sharc$ python3 main_cli.py parameters/parameters.ini 
Traceback (most recent call last):
  File "main_cli.py", line 54, in <module>
    main(sys.argv[1:])
  File "main_cli.py", line 49, in main
    view_cli.initialize(param_file)
  File "../sharc/gui/view_cli.py", line 27, in initialize
    param_file = param_file)
  File "../sharc/controller.py", line 49, in action
    self.simulation_thread.run()        
  File "/home/ssk/SHARC/sharc/thread_simulation.py", line 53, in run
    self.model.initialize()
  File "../sharc/model.py", line 48, in initialize
    self.simulation = SimulationDownlink(self.parameters)
  File "../sharc/simulation_downlink.py", line 21, in __init__
    super().__init__(parameters)
  File "../sharc/simulation.py", line 48, in __init__
    self.propagation_system = PropagationFactory.createPropagation(self.param_system.channel_model, self.parameters)
  File "../sharc/propagation/propagation_factory.py", line 41, in createPropagation
    return PropagationP619()
  File "../sharc/propagation/propagation_p619.py", line 32, in __init__
    self.scintillation = Scintillation()
  File "../sharc/propagation/scintillation.py", line 21, in __init__
    self.atmosphere = ReferenceAtmosphere()
  File "../sharc/propagation/atmosphere.py", line 17, in __init__
    self.ref_atmosphere_altitude_km = [-math.inf, 11, 20, 32, 47, 51, 71]
AttributeError: 'module' object has no attribute 'inf'

I was able to run by this fix though

@@ -14,7 +14,7 @@ class ReferenceAtmosphere:
     """
     def __init__(self):
         # Table C.1 of ITU-R P619 - Constants for the reference dry atmosphere
-        self.ref_atmosphere_altitude_km = [-math.inf, 11, 20, 32, 47, 51, 71]
+        self.ref_atmosphere_altitude_km = [-float('inf'), 11, 20, 32, 47, 51, 71]

Implement antenna beamforming

Feature should be implemented according to the document that defines the simulation guidelines and IMT characteristics.

Parameters clean up

Remove unused input parameters. Check if all parameter names are meaningful; consider renaming the ones which are not meaningful. Clean up should consider the following points:

  • remove tx and rx IMT antenna parameters (only one parameters should be kept);
  • create the [OUTDOOR] section;
  • create the [P619] section;
  • create the [P452] section.

#Feature dumping co-ordinates of BS,hotspots & other sytems

SHARC version: (development branch) at commit aba88b7
Python version: Python 3.4.2
Operating System: Debian 3.16.43

Description

I am trying to run a the sharing studies between IMT & FSS_ES. Using the cli (running on a remote machine). Though the output folder creates the relevant CDF values. Is there a way to have the dump of the BS, Hotspot, ES locations dumped ? So that it can be used on Matlab to plot.

Icon formats not supported

  • SHARC version: 0.0.1
  • Python version: 3.5
  • Operating System: MAC OS / Linux

Description

Tkinter Photoimage class supports only GIF/PGM/PPM image formats. For some some reason, this problem does not apperar on Windows

What I Did

TclError: couldn’t recognize data in image file “img/app_icon.png”

Satellite positioning and antenna pointing are not working properly

Users are able to define satellite's absolute position (long) and coordinates of IMT network (lat-long). The problem is that pointing of satellite's antenna is not working as it should be. For example, it is possible to correctly point the antenna towards an IMT network only if the later has latitude equals to 0 deg.

Unit conversion in P452 propagation model

  • SHARC version: 0.0.1
  • Python version: 3.5
  • Operating System: Windows

Description

Frequency and distance units should be stored in MHz and meters, respectively, in order to keep consistency with other parts of simulator. This is not necessarily a bug (since code is working fine), but it has to be fixed in the whole P.452 implementation.

What I Did

This issue was found after code reviewing. Examples: lines 19 and 20 of file propagation_gases_attenuation.py:

d = np.asarray(kwargs["distance"]) #Km
f = np.asarray(kwargs["frequency"]) #GHz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.