Comments (12)
In any case, one could consider deleting old G4data when downloading new data upon the import statement after an update.
from opengate.
yes indeed! The way the g4 data is managed is not optimal.
However, a warning: the check is performed during the import, so if the check takes time, it may delay the starting phase of all scripts (currently, the import phase is already "slow", mainly due to itk I think).
Please, go with the PR ;) !
from opengate.
Agree, but don't think the check takes time. Downloading data is slow, but that only occurs once in a while after an update. I'll implement and check.
from opengate.
Is there any reason not to get the data from the Geant4 installation which is required anyhow? Does it need to be downloaded separately? By looking up the Geant4 install, one would automatically align G4 and opengate in terms of G4 data.
Opinions?
from opengate.
Hi @nkrah
You're right when you compile opengate. But when you install opengate on your compute with pip install opengate
, Geant4 is not installed on your computer. You need to download the data.
from opengate.
I see. But don't you need Geant4 even if you install opengate via pip? Opengate uses Geant4 to run the simulation. Or does pip pull a pre-compiled Geant4?
from opengate.
Inside the wheel of opengate_core, you can find the compiled g4 librairies. But we cannot insert the data into the wheel because they are too big. This is why we prefer to download them at first import of opengate_core. It's not perfect because, the data are not removed correctly with pip uninstall opengate
from opengate.
OK, now I got the full picture.
Is it possible to write a "hook" for the uninstall to remove the data? Possibly also when running an update via pip?
from opengate.
I have a look and it seems not, eg:
https://stackoverflow.com/questions/70321823/deleting-associated-data-from-a-pip-package-when-uninstalling
The data has to be removed manually
from opengate.
I am finalizing a PR to solve this issue.
from opengate.
Done with #132
from opengate.
Sorry, I re-open this because I created another PR with some improvements over the previous one. Thomas was too efficient ... ;-)
from opengate.
Related Issues (20)
- Process dies simulating high activity over more than 10 s - std::out_of_range - The queue is empty HOT 11
- Paths HOT 1
- Is there any way to use the default `opengate/contrib/GateMaterials.db` in my simulation?
- Qt6 support HOT 1
- Projection Exception HOT 4
- Memory leaks HOT 5
- Automatic installation of pytorch HOT 1
- Edep distribution between F18 and Ga68 HOT 1
- Add a test with GenericSource and "histogram" option
- Attributes of DigitizerHitsCollectionActor HOT 1
- DigitizerProjectionActor does not work on parallel world
- how to change pet scanner HOT 1
- Make user limit particles a keyword argument of setter functions
- Test for very long decay time HOT 1
- source energy spectrum
- Beta- emitters
- Statistics entries with ?
- Check Region.associate_volume()
- np.float_ or np.double ? HOT 2
- Coincidence sorter
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 opengate.