Comments (4)
hi Pavadol,
thanks for reporting, indeed, example_actions_nbody.py needs a small modification – will do in the next commit.
as for f-strings, they are not available in older versions of Python, and I am determined to maintain compatibility with Python 2 as long as there is at least one user of it (i.e. myself), so this won't fly. The other option is to use the "%s".format(x)
syntax, which is universally supported, but since the %-operator for strings is not going to be deprecated any time soon, I'd consider this conversion a low-priority task.
More pressing is the forthcoming deprecation of distutils
, which are heavily used in the setup script – will need to check if setuptools
can do the same job..
from agama.
Thanks for responding. Just curious, when do you think the next commit will be pushed?
It makes sense to keep compatibility with Python 2 especially if you are using it.
Should I close this issue now or close it when the commit gets pushed?
from agama.
fair enough, the last commit was more than 7 months ago! I was waiting for something more substantial to come up, but then recalled that I already had a new example script to be included in the repo, as well as a few minor changes elsewhere. So the corrected example_actions_nbody.py is now in.
from agama.
Thanks! I'll close the issue now.
from agama.
Related Issues (20)
- explicitly including G in the calculation of Toomre Q in the example? HOT 1
- Generating rotating star clusters HOT 10
- Sampling refinement procedure error HOT 3
- Discrepancy with Galpy when using agama.GalpyPotential HOT 2
- central density of King profile HOT 2
- Gadget-4 plugin HOT 1
- document of Einasto profile HOT 2
- Versioned tag or release plan HOT 3
- Logarithmic potential energy HOT 7
- GOMP version issue via python 3.9.8 (agama 1.0) HOT 3
- Kernel dies when using AGAMA after importing sklearn HOT 5
- About the tolerance of the Torus Mapper fitting HOT 2
- Windows Installation not working HOT 2
- compilation fails on CentOS HOT 1
- Error in ActionFinder initialization: Interpolator: energy or angular momentum of a circular orbit are not monotonic HOT 3
- "NumPy is not present" when installing via 'pip' HOT 4
- Issue with Mac OS installation HOT 14
- Update `setup.py` to remove deprecated `distutils` dependency HOT 4
- Compilation error of test_fortran on Apple Sequoia 15.0 Apple M3 Pro HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agama.