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)
- nan in test041_dose_actor
- Repeated volume : warning needed ? HOT 1
- Implement a MaterialManager HOT 7
- Polyenergetic Source HOT 1
- Unify output directory HOT 1
- Implement a special WorldVolume class HOT 1
- Implement GateException
- no json output per default HOT 2
- Implement setSecBiasing in Region/PhysicsManager
- Remove destructors from classes in python HOT 3
- overflow encountered in exp in test022_half_life_ion.py
- Naming convention: actor.mother HOT 3
- Implement DigitizerProjectionActor.plane = 'XY' option HOT 2
- Find a way so that opengate.image.voxelize_volume() does not require a simulation engine as input HOT 1
- Implement dynamic properties for actor with multiple outputs
- Improve the user interface for repeated volumes HOT 2
- Could not load the Qt platform plugin "xcb" HOT 5
- Replace itk with SimpleITK to gain time during import HOT 1
- Simulation of PET scan example? HOT 1
- Process dies simulating high activity over more than 10 s - std::out_of_range - The queue is empty HOT 11
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.