hust-diangroup / ns3-ai

Enable the interaction between ns-3 and popular frameworks using Python, which mean you can train and test your AI algorithms in ns-3 without changing any frameworks you are using now!
GNU General Public License v2.0
220 stars 80 forks source link

Various bugfixes #124

Open Kakadus opened 2 months ago

Kakadus commented 2 months ago

The first very small patch makes sure to forward the ns3 settings variable to the simulation upon subsequent resets.

Then, we replace all invalid uses of self.aciton_space to spaceDesc instead. We guarantee correct implementation by declaring _pack_data a classmethod.

Lastly, we set the dtypes of the numpy arrays specifically. Alternativly, it is not correctly set: e.g. float32 gets converted to float64