Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] how to export as vtk .ts? #135

Closed
GeoMattB opened this issue Nov 25, 2022 · 10 comments
Closed

[Question] how to export as vtk .ts? #135

GeoMattB opened this issue Nov 25, 2022 · 10 comments

Comments

@GeoMattB
Copy link

Hi again,
I searched the loop Structural docs and couldn't find anything obvious that allows me to export the fault surfaces I'm generating.
I can get it from vtk to .ts by myself if there isn't already a .ts output built.

Thanks
Matt

@markjessell
Copy link

markjessell commented Nov 25, 2022 via email

@lachlangrose
Copy link
Member

Hi Matt,

I haven't written a ts exporter yet but there is #100 that I need to integrate into LoopStructural. I personally don't use external visualization so it hasn't been a priority but I will aim to do it in the near future. It will follow a similar pattern to the vtk exporter.

Cheers

@GeoMattB
Copy link
Author

Thank Lachlan,
I'm just using LoopStructural from a pip install and I'm getting

ModuleNotFoundError: No module named 'LoopStructural.export'

This is the same docker container I'm able to build the faults in, something is off with my install I think

@lachlangrose
Copy link
Member

Umm that may be because there is no init.py file in the module, can you directly import the files

from LoopStructural.export.exporters import write_feat_surfs

I haven't actually used this module but I'll take a look and see if I can workout what is going on.

@GeoMattB
Copy link
Author

GeoMattB commented Nov 25, 2022

Hi Lachlan, I can see 'export' in the directory structure but LoopStructural doesn't have export available anywhere I can find it.
I may be doing something wrong??? Trying to directly import it gives me the same error

image

@lachlangrose
Copy link
Member

Does this work

from LoopStructural.export.exporters import write_feat_surfs

For me it gives an error needing pyevtk but if you have the dependencies it should work. I haven't merged the TS code into the master branch currently so you'll have to wait for that.

@GeoMattB
Copy link
Author

image

@lachlangrose
Copy link
Member

That is odd, you'll have to leave that with me and I'll try to fix it up.

@GeoMattB
Copy link
Author

Hi Lachlan,
Had another look at it a few minutes ago and I was able to get it working after a reinstall. I'm not sure if it was adding the init file to that export directory or installing surfe but that line just started working.

image
Also... there's a typo in exporters.py

image

@lachlangrose
Copy link
Member

Thanks Matt, I'll fix that up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants