This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_admin import Admin | |
from flask_security import Security, SQLAlchemyUserDatastore | |
from config import Config | |
from app.views import MyModelView | |
db = SQLAlchemy() | |
admin = Admin() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from astropy.io.votable import parse | |
import pandas as pd | |
def votable_to_pandas(votable_file): | |
votable = parse(votable_file) | |
table = votable.get_first_table().to_table(use_names_over_ids=True) | |
return table.to_pandas() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.6.2</version> | |
<configuration> | |
<release>9</release> | |
</configuration> | |
</plugin> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void visitArchive(String zipFile) { | |
URI zipUri = URI.create("jar:file:" + zipFile); | |
try (FileSystem zipfs = FileSystems.newFileSystem(zipUri, new HashMap<>())) { | |
Files.walkFileTree(zipfs.getPath("/"), new SimpleFileVisitor<Path>() { | |
@Override | |
public FileVisitResult visitFile( Path file, BasicFileAttributes attrs ) throws IOException { | |
// visiting inside the archive | |
return FileVisitResult.CONTINUE; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class[] argTypes = new Class[1]; | |
argTypes[0] = Object[].class; | |
Object[] argObj = new Object[1]; | |
argObj[0] = objs; | |
Method n = null; | |
try { | |
n = g.getDeclaredMethod("processData", argTypes); | |
} catch (NoSuchMethodException | SecurityException e1) { | |
e1.printStackTrace(); | |
} |